File tree Expand file tree Collapse file tree 3 files changed +20
-7
lines changed Expand file tree Collapse file tree 3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 17
17
set -e
18
18
set -o pipefail
19
19
20
- LOCALSTACK_VERSION=0.12.2
21
- docker pull localstack/localstack:$LOCALSTACK_VERSION
22
- docker run -d --rm --net=host --name=tensorflow-io-aws localstack/localstack:$LOCALSTACK_VERSION
23
- echo " Waiting for 10 secs until localstack is up and running"
24
- sleep 10
20
+ export LOCALSTACK_VERSION=0.12.2
21
+ cd tests/test_aws
22
+ TMPDIR=/private$TMPDIR docker-compose up -d
23
+ cd -
24
+ echo " Waiting for 20 secs until localstack is up and running"
25
+ sleep 20
25
26
echo " Localstack up"
26
27
exit 0
Original file line number Diff line number Diff line change
1
+ version : ' 2.1'
2
+ services :
3
+ localstack :
4
+ image : " localstack/localstack:${LOCALSTACK_VERSION}"
5
+ container_name : tensorflow-io-aws
6
+ ports :
7
+ - " 4566:4566"
8
+ environment :
9
+ - SERVICES=${SERVICES- }
10
+ - DOCKER_HOST=unix:///var/run/docker.sock
11
+ volumes :
12
+ - " ${TMPDIR:-/tmp/localstack}:/tmp/localstack"
Original file line number Diff line number Diff line change 24
24
25
25
26
26
@pytest .mark .skipif (
27
- sys .platform in ("win32" , "darwin" ),
28
- reason = "TODO Localstack not setup properly on macOS/ Windows yet" ,
27
+ sys .platform in ("win32" ),
28
+ reason = "TODO Localstack not setup properly on Windows yet" ,
29
29
)
30
30
def test_read_file ():
31
31
"""Test case for reading S3"""
You can’t perform that action at this time.
0 commit comments