-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
41 lines (33 loc) · 1.01 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
version: '3.4'
x-mount-app-and-user-git-config: &mount-app-and-user-git-config
volumes:
- ./:/app
- ~/.gitconfig:/home/columbo/.gitconfig # allow script to commit as user
services:
# a fully loaded development environment to test new code
devbox: &devbox
build:
dockerfile: ./docker/devbox.dockerfile
context: .
image: "columbo/devbox"
volumes:
- ./:/app
# run all the tests and linting locally
# - black & isort will format code to address issues
check:
<<: *devbox
command: ["hatch", "run", "check"]
# test the documentation examples to make sure they can be run with Python
validateDocExamples:
<<: *devbox
command: ["hatch", "run", "test-docs-examples"]
# generate and serve the project documentation locally
mkdocs: &mkdocs
<<: *devbox
entrypoint: "mkdocs"
ports:
- "8000:8000"
command: ["hatch", "run", "docs:serve"]
mike:
<<: [*mkdocs, *mount-app-and-user-git-config]
entrypoint: ["hatch", "run", "docs:mike"]