-
Notifications
You must be signed in to change notification settings - Fork 50
/
docker-compose.yaml
101 lines (95 loc) · 2.82 KB
/
docker-compose.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
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
version: '3.5'
volumes:
amd64-ubuntu18.04-cache:
services:
conda-build:
# Usage:
# docker-compose build conda-build
# docker-compose run --rm conda-build
# Parameters:
# ARCH: amd64
image: ${REPO}:${ARCH}-conda-build
build:
context: .
dockerfile: ci/docker/conda-build.dockerfile
cache_from:
- ${REPO}:${ARCH}-conda-build
shm_size: &shm-size 2G
environment:
BUILD_TYPE: "Release"
volumes: &conda-volumes
- .:/arctern:delegated
command: &build-conda-command
["source /arctern/ci/scripts/conda/cpu/prebuild.sh &&
/arctern/ci/scripts/conda/cpu/build.sh"]
conda-cudagl-build:
# Usage:
# docker-compose build conda-cudagl-build
# docker-compose run --rm conda-cudagl-build
# Parameters:
# ARCH: amd64
# CUDA: 10.0
image: ${REPO}:${ARCH}-conda-cudagl-${CUDA}-build
build:
context: .
dockerfile: ci/docker/conda-cudagl-${CUDA}-build.dockerfile
cache_from:
- ${REPO}:${ARCH}-conda-cudagl-${CUDA}-build
shm_size: *shm-size
environment:
BUILD_TYPE: "Release"
volumes: &conda-cudagl-volumes
- .:/arctern:delegated
command: &build-conda-cudagl-command
["source /arctern/ci/scripts/conda/gpu/prebuild.sh &&
/arctern/ci/scripts/conda/gpu/build.sh"]
ubuntu-cpp:
# Usage:
# docker-compose build ubuntu-cpp
# docker-compose run --rm ubuntu-cpp
# Parameters:
# ARCH: amd64
# UBUNTU: 18.04
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-cpp
build:
context: .
dockerfile: ci/docker/ubuntu${UBUNTU}-cpp.dockerfile
cache_from:
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-cpp
args:
arch: ${ARCH}
ubuntu: ${UBUNTU}
shm_size: *shm-size
environment:
BUILD_TYPE: "Release"
CONDA_ENV: "arctern"
volumes: &ubuntu-volumes
- .:/arctern:delegated
- ${ARCH}-ubuntu${UBUNTU}-cache:/arctern/cpp/cmake_build:delegated
command: &ubuntu-cpp-command
["/arctern/ci/scripts/cpp_build.sh && \
/arctern/ci/scripts/run_unittest.sh"]
ubuntu-python:
# Usage:
# docker-compose build ubuntu-cpp
# docker-compose build ubuntu-python
# docker-compose run --rm ubuntu-python
# Parameters:
# ARCH: amd64
# UBUNTU: 18.04
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-python
build:
context: .
dockerfile: ci/docker/linux-apt-python.dockerfile
cache_from:
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-python
args:
base: ${REPO}:${ARCH}-ubuntu${UBUNTU}-cpp
shm_size: *shm-size
environment:
CONDA_ENV: "arctern"
volumes: *ubuntu-volumes
command: &ubuntu-python-command
["/arctern/ci/scripts/cpp_build.sh && \
/arctern/ci/scripts/python_build.sh && \
/arctern/ci/scripts/run_pytest.sh"]