generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
60 lines (52 loc) · 1.34 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
version: '3.5'
services:
test:
image: "buildkite/plugin-tester"
volumes:
- ".:/plugin"
lint:
image: "buildkite/plugin-linter"
command: ['--id', 'wayfair-incubator/cloud-functions']
volumes:
- ".:/plugin"
shfmt:
build:
context: .
dockerfile: "docker/shfmt.dockerfile"
command: "-s -l -w ." # (s)implify, (l)ist changes, (w)rite changes to file
volumes:
- "./hooks:/plugin"
cloud-functions-buildkite-plugin: &cloud-functions-buildkite-plugin
build:
dockerfile: "docker/devbox.dockerfile"
context: .
image: wayfairossdev/cloud-functions-buildkite-plugin:${IMAGE_VERSION:-latest}
environment:
- gcp_project=wf-gcp-us-ae-ops-dev
- dataset_schema_directory=junk/test
volumes:
- "./:/app"
devbox: &devbox
build:
dockerfile: "./docker/devbox.dockerfile"
context: "."
stdin_open: true # docker run -i
tty: true # docker run -t
volumes:
- "./:/app"
# run all the tests and linting locally
# - black & isort will format code to address issues
py-test:
<<: *devbox
command: "docker/run_tests.sh --format-code"
volumes:
- "./:/app"
lock-requirements:
<<: *devbox
entrypoint: "/bin/bash"
user: root
command: "docker/lock_requirements.sh"
volumes:
home:
env:
driver: local