-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcompose.yml
More file actions
58 lines (55 loc) · 1.65 KB
/
Copy pathcompose.yml
File metadata and controls
58 lines (55 loc) · 1.65 KB
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
services:
firefly:
image: ipac/firefly:${BUILD_TAG:-latest} # value taken from shell, or latest
build:
context: ../
dockerfile: firefly/docker/Dockerfile
args:
BUILDPLATFORM: ${BUILDPLATFORM:-linux/amd64}
ports:
- "8080:8080"
env_file:
- ./firefly-docker.env
test:
build:
context: ../
dockerfile: firefly/docker/Dockerfile
target: base
command: bash -c "cd firefly && gradle firefly:test"
volumes: &volInfo
- ../firefly_test_data:/opt/work/firefly_test_data
- ../firefly:/opt/work/firefly
- /opt/work/firefly/.gradle
- /opt/work/firefly/build
- /opt/work/firefly/jars/build
- /opt/work/firefly/node_modules
# Jest-only run, used by the GitHub Actions PR check.
test-js:
build:
context: ../
dockerfile: firefly/docker/Dockerfile
target: base
image: ipac/firefly-test-js:latest
environment:
# This makes src/firefly/jest.config.js drop the test suites
# that read a firefly_test_data checkout.
FIREFLY_SKIP_TESTDATA: ${FIREFLY_SKIP_TESTDATA:-true}
# Prevent OOM due to jsdom workers.
JEST_MAX_WORKERS: ${JEST_MAX_WORKERS:-2}
command: bash -c "cd firefly && gradle :firefly:jsTest"
# The reports reach the host through the bind, so CI can upload them.
volumes:
- ../firefly:/opt/work/firefly
- /opt/work/firefly/.gradle
- /opt/work/firefly/node_modules
dev:
build:
context: ../
dockerfile: firefly/docker/Dockerfile
target: dev_env
ports:
- "8080:8080"
- "5050:5050"
env_file:
- ./firefly-docker.env
volumes: *volInfo