-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3'
services:
step-functions:
image: amazon/aws-stepfunctions-local
volumes:
- ./test/fixtures:/home/StepFunctionsLocal/fixtures:ro
links:
- aws-sam-local
environment:
SFN_MOCK_CONFIG: "/home/StepFunctionsLocal/fixtures/fixtures.json"
WAIT_TIME_SCALE: 0
LAMBDA_ENDPOINT: http://aws-sam-local:3001
AWS_ACCESS_KEY_ID: AKIAXTTRUF7NU7KDMIED
AWS_SECRET_ACCESS_KEY: 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
aws-sam-local:
build:
dockerfile: Dockerfile.samlocal
context: .
volumes:
- .:/$PWD
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
working_dir: $PWD
command: bash -c "
A=`docker inspect $$HOSTNAME | jq -r .[0].NetworkSettings.Networks.stepFunctionIteratorNetwork.Gateway`;
echo $$A;
sam local start-lambda
--debug --host 0.0.0.0
--docker-network stepFunctionIteratorNetwork
--container-host $$A
--container-host-interface 0.0.0.0
--warm-containers EAGER
"
test-runner:
image: node:16-buster
volumes:
- .:/app
links:
- step-functions
working_dir: /app
user: node
command: npm run test
networks:
default:
name: stepFunctionIteratorNetwork