-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
76 lines (71 loc) · 2 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.7"
x-build-client-env: &build-client-env
PLACEOS_BUILD_HOST: ${PLACEOS_BUILD_HOST:-build}
PLACEOS_BUILD_PORT: ${PLACEOS_BUILD_PORT:-3000}
services:
# Driver test harness
drivers:
image: placeos/drivers-spec:latest
restart: always
container_name: placeos-drivers
hostname: drivers
depends_on:
- build
- redis
- install-shards
ports:
- 127.0.0.1:8085:8080
- 127.0.0.1:4444:4444
volumes:
- ${PWD}/.logs:/app/report_failures
- ${PWD}/repositories:/app/repositories
- ${PWD}:/app/repositories/local
environment:
<<: *build-client-env
CI: ${CI:-}
CRYSTAL_PATH: lib:/lib/local-shards:/usr/share/crystal/src
REDIS_URL: redis://redis:6379
TZ: $TZ
cap_add:
- "SYS_PTRACE"
security_opt:
- "seccomp:unconfined"
build:
image: placeos/build:${PLACE_BUILD_TAG:-nightly}
restart: always
hostname: build
volumes:
- ${PWD}/repositories:/app/repositories
- ${PWD}:/app/repositories/local
- ${PWD}/binaries:/app/bin/drivers
environment:
AWS_REGION: ${AWS_REGION:-ap-southeast-2}
AWS_S3_BUCKET: ${AWS_S3_BUCKET:-placeos-drivers}
AWS_KEY: ${AWS_KEY}
AWS_SECRET: ${AWS_SECRET}
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1
PLACEOS_BUILD_LOCAL: 1
PLACEOS_ENABLE_TRACE: 1
TZ: $TZ
BUILD_SERVICE_DISABLED: ${BUILD_SERVICE_DISABLED:-true}
redis:
image: eqalpha/keydb
restart: always
hostname: redis
environment:
TZ: $TZ
# Ensures shards are installed.
install-shards:
image: placeos/crystal:${CRYSTAL_VERSION:-latest}
restart: "no"
working_dir: /wd
entrypoint: ''
command: sh -c 'shards check -q || shards install'
environment:
SHARDS_OPTS: "--ignore-crystal-version"
volumes:
- ${PWD}/shard.lock:/wd/shard.lock
- ${PWD}/shard.yml:/wd/shard.yml
- ${PWD}/shard.override.yml:/wd/shard.override.yml
- ${PWD}/.shards:/wd/.shards
- ${PWD}/lib:/wd/lib