-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
53 lines (52 loc) · 1.39 KB
/
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
version: "3.2"
secrets:
CREDENTIALS_FILE:
file: ${HOME}/credentials
services:
shell:
image: ghcr.io/noaa-gsl/vxingest/ingest:main
volumes:
- ${data}:/opt/data
- ${public}:/public
secrets:
- CREDENTIALS_FILE
environment:
- CREDENTIALS=/run/secrets/CREDENTIALS_FILE
entrypoint: /bin/bash
test:
build: # build the image so we can specify the target
context: .
dockerfile: docker/ingest/Dockerfile
target: dev
volumes:
- ${data}:/opt/data
secrets:
- CREDENTIALS_FILE
environment:
- CREDENTIALS=/run/secrets/CREDENTIALS_FILE
command: poetry run pytest tests
# FIXME - add a way to specify unit & integration tests
ingest:
image: ghcr.io/noaa-gsl/vxingest/ingest:main
volumes:
- ${data}:/opt/data
- ${public}:/public
secrets:
- CREDENTIALS_FILE
command:
- "--credentials_file=/run/secrets/CREDENTIALS_FILE"
- "--output_dir=/opt/data/test/outdir"
- "--log_dir=/opt/data/test/logs"
- "--metrics_dir=/opt/data/test/metrics"
- "--transfer_dir=/opt/data/test/xfer"
import:
image: ghcr.io/noaa-gsl/vxingest/import:main
volumes:
- ${data}:/opt/data
secrets:
- CREDENTIALS_FILE
command:
- "-c /run/secrets/CREDENTIALS_FILE"
- "-l /opt/data/xfer"
- "-t /opt/data/temp_tar"
- "-m /opt/data/common/job_metrics"