File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
examples/ddb-docker-compose Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ services:
1616 # In this case, lambda function container have to call dynamodb api to `ddb` host.
1717 ddb:
1818 image: amazon/dynamodb-local:latest
19+ container_name: ddb_local
1920 ports:
2021 - 8000:8000
2122 networks:
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ version: '3'
33services :
44 ddb :
55 image : amazon/dynamodb-local:latest
6+ container_name : ddb_local
67 ports :
78 - 8000:8000
89 networks :
Original file line number Diff line number Diff line change 2424docker-compose up -d
2525
2626echo " wait until dynamodb-local is running"
27+ # We have to specify container name because default nameing rule is defferent from mac and linux. See: https://github.com/docker/for-mac/issues/6035
28+ CONTAINER_NAME=ddb_local # defined in docker-compose.yml
2729RETRY=30
28- CONTAINER_NAME=ddb-docker-compose-ddb-1
2930until [ " $( docker container inspect -f ' {{.State.Running}}' $CONTAINER_NAME ) " == " true" ]
3031do
3132 if [ $RETRY -ge 0 ]
You can’t perform that action at this time.
0 commit comments