-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (30 loc) · 901 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (30 loc) · 901 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
---
# A docker-compose file to simplify image testing.
#
# NOTE: This file assumes docker-compose v1.27.0 or better.
#
# Use to build and test an image using the following environment variables:
#
# - DATASET_FILENAME (default 'dummy.txt')
# - IMAGE_NAME (default 'formatter')
# - TEST_DIR (default '1')
#
# See TESTING.md
services:
formatter:
build: .
image: ${IMAGE_NAME:-formatter}:latest
environment:
- DT_DATASET_FILENAME=${DATASET_FILENAME:-dummy.txt}
- DT_DATASET_INPUT_PATH=/dataset/input
- DT_DATASET_OUTPUT_PATH=/dataset/output
- DT_DATASET_EXTRA_VARIABLES=${DATASET_EXTRA_VARIABLES}
- DT_DATASET_OUTPUT_FORMAT=$DATASET_OUTPUT_FORMAT
- DT_DATASET_OUTPUT_FILENAME=$DATASET_OUTPUT_FILENAME
volumes:
- ${PWD}/test/${TEST_TYPE:-success}/${TEST_DIR:-1}:/dataset
deploy:
resources:
limits:
cpus: 1
memory: 1G