-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (79 loc) · 2.57 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.8'
# ---------------------------------------------------------------------------- #
services:
# -------------------------------------------------------------------------- #
go: &go
image: jancajthaml/go
tty: true
volumes:
- .:/project:delegated
- ./services/fio-bco-rest:/go/src/github.com/jancajthaml-openbank/fio-bco-rest:delegated
- ./services/fio-bco-import:/go/src/github.com/jancajthaml-openbank/fio-bco-import:delegated
working_dir: /project
environment:
- GOOS
- GOARCH
- GOPATH=/go
- COMPOSE_PROJECT_NAME
# -------------------------------------------------------------------------- #
debian: &debian
image: jancajthaml/debian-packager
tty: true
volumes:
- .:/project:delegated
working_dir: /project
# -------------------------------------------------------------------------- #
sync:
<<: *go
entrypoint:
- /project/dev/lifecycle/sync
# -------------------------------------------------------------------------- #
update:
<<: *go
entrypoint:
- /project/dev/lifecycle/update
# -------------------------------------------------------------------------- #
lint:
<<: *go
entrypoint:
- /project/dev/lifecycle/lint
# -------------------------------------------------------------------------- #
sec:
<<: *go
entrypoint:
- /project/dev/lifecycle/sec
# -------------------------------------------------------------------------- #
package:
<<: *go
entrypoint:
- /project/dev/lifecycle/package
# -------------------------------------------------------------------------- #
release:
<<: *debian
entrypoint:
- /project/dev/lifecycle/release
# -------------------------------------------------------------------------- #
debian-package:
<<: *debian
entrypoint:
- /project/dev/lifecycle/debian
# -------------------------------------------------------------------------- #
test:
<<: *go
entrypoint:
- /project/dev/lifecycle/test
# -------------------------------------------------------------------------- #
bbtest:
image: jancajthaml/bbtest:${ARCH}
tty: true
environment:
VERSION: ${VERSION}
META: ${META}
CI: ${CI:-false}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw
- /var/lib/docker/containers:/var/lib/docker/containers:rw
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- .:/opt/app:delegated
working_dir: /opt/app
# ---------------------------------------------------------------------------- #