-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
76 lines (69 loc) · 1.84 KB
/
docker-compose.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
services:
try-it-bash:
build:
context: .
args:
IMAGE: alpine
DEP_INSTALL_CMD: apk add --update curl bash jq
image: try-it-bash:latest
volumes:
- .:/opt/app
command: bash -c "cd content-by-language/bash && bash ./run.sh"
try-it-go:
build:
context: .
args:
IMAGE: golang:latest
DEP_INSTALL_CMD: cd content-by-language/go && env GOARCH=amd64 go build inbound-integration.go && env GOARCH=amd64 go build outbound-integration.go
image: try-it-go:latest
volumes:
- .:/opt/app
command: bash -c "cd content-by-language/go && bash ./run.sh"
try-it-java:
build:
context: .
args:
IMAGE: openjdk:11
image: try-it-java:latest
volumes:
- .:/opt/app
command: bash -c "cd content-by-language/java && bash ./run.sh"
try-it-node:
build:
context: .
args:
IMAGE: node:latest
DEP_INSTALL_CMD: cd content-by-language/node && npm install
volumes:
- .:/opt/app
image: try-it-node:latest
command: bash -c "cd content-by-language/node && bash ./run.sh"
try-it-php:
build:
context: .
args:
IMAGE: php:latest
volumes:
- .:/opt/app
image: try-it-php:latest
command: bash -c "cd content-by-language/php && bash ./run.sh"
try-it-python:
build:
context: .
args:
IMAGE: python:latest
DEP_INSTALL_CMD: cd content-by-language/python && pip install -r requirements.txt
volumes:
- .:/opt/app
image: try-it-python:latest
command: bash -c "cd content-by-language/python && bash ./run.sh"
try-it-ruby:
build:
context: .
args:
IMAGE: ruby:latest
volumes:
- .:/opt/app
image: try-it-ruby:latest
command: bash -c "cd content-by-language/ruby && bash ./run.sh"