generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (32 loc) · 945 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (32 loc) · 945 Bytes
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
x-mount-app-and-user-git-config: &mount-app-and-user-git-config
volumes:
- "./:/app"
- "~/.gitconfig:/home/pyterraformer/.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: "pyterraformer-devbox"
volumes:
- "./:/app"
# Run the test & lint suite in a dedicated container
test:
<<: *devbox
command: "docker/run_tests.sh --format-code"
lock-requirements:
<<: *devbox
user: root
entrypoint: "/bin/bash"
command: "docker/lock_requirements.sh"
# generate and serve the project documentation locally
mkdocs: &mkdocs
<<: *devbox
entrypoint: "mkdocs"
ports:
- "8000:8000"
command: [ "serve", "--dev-addr=0.0.0.0:8000" ]
mike:
<<: [ *mkdocs, *mount-app-and-user-git-config ]
entrypoint: "mike"