forked from JaakkoL/firebase-scrypt-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.14 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
version: "3.1"
name: "${PACKAGE_NAME}"
services:
python-common: &pythonBase
image: "${PACKAGE_NAME}-python-general:${GIT_COMMIT}"
build:
context: .
dockerfile: lib/python/common.Dockerfile
args: &pythonBaseBuildArgs
- "SOURCE_UID=${SOURCE_UID}"
- "SOURCE_GID=${SOURCE_GID}"
- "SOURCE_UID_GID=${SOURCE_UID_GID}"
user: devuser
working_dir: /code
env_file:
- .tmp/env
environment:
- "PATH=/home/devuser/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
volumes:
- .:/code
python-build:
<<: *pythonBase
image: "${PACKAGE_NAME}-python-build:${GIT_COMMIT}"
build:
context: .
dockerfile: lib/python/build.Dockerfile
args: *pythonBaseBuildArgs
command: "/code/lib/python/build.sh"
volumes:
- ./${BUILD_DIR}:/code/dist
python-tox:
<<: *pythonBase
image: "${PACKAGE_NAME}-python-tox:${GIT_COMMIT}"
build:
context: .
dockerfile: lib/python/tox.Dockerfile
args: *pythonBaseBuildArgs
volumes:
- ./${BUILD_DIR}:/code/dist
- ./tests:/code/tests
- ./tox.ini:/code/tox.ini