-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.test.yaml
44 lines (42 loc) · 1.03 KB
/
compose.test.yaml
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
version: '3'
services:
ta_example:
tty: true
build: ./docker
network_mode: host
volumes:
- ./ta:/ta
- ./core:/core
- ./test:/test
- /dev:/dev
working_dir: /ta/example
command: bash -c 'mount -o remount,exec /dev && ego-go build -buildvcs=false -trimpath=true && ego sign example && source /test/issue_service.sh && ego run example'
privileged: true
environment:
- OE_SIMULATION=0
env_file:
- test/env/ta.env
- test/env/common.env
profiles:
- ta
verifier:
build: ./docker
volumes:
- ./verifier:/verifier
- ./core:/core
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /verifier/serv
command: bash -c 'go mod tidy && go run main.go'
env_file:
- test/env/verifier.env
- test/env/common.env
privileged: true
tty: true
profiles:
- verifier
tunnel:
restart: unless-stopped
image: cloudflare/cloudflared
command: tunnel --url http://verifier:8080
profiles:
- verifier