-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
48 lines (41 loc) · 1014 Bytes
/
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
version: '3.5'
services:
test:
image: "buildkite/plugin-tester"
volumes:
- ".:/plugin"
lint:
image: "buildkite/plugin-linter"
command: ['--id', 'wayfair-incubator/bigquery']
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"
devbox: &devbox
build:
dockerfile: "./docker/devbox.dockerfile"
context: "."
image: "bigquery-plugin-devbox"
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"
lock-requirements:
<<: *devbox
entrypoint: "/bin/bash"
user: root
command: "docker/lock_requirements.sh"
volumes:
home:
env:
driver: local