forked from knights-analytics/hugot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-test.yaml
More file actions
33 lines (32 loc) · 798 Bytes
/
compose-test.yaml
File metadata and controls
33 lines (32 loc) · 798 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
33
services:
hugot:
image: hugot:latest
platform: linux/amd64
build:
context: .
dockerfile: ./Dockerfile
# This service is build-only and not started
entrypoint: ["/bin/true"]
hugot-test:
platform: linux/amd64
container_name: hugot-test
build:
context: .
dockerfile: ./test.Dockerfile
target: hugot-test
depends_on:
- hugot
volumes:
- $test_folder:/test
- $test_folder/../scripts/run-unit-tests-container.sh:/run-unit-tests-container.sh
environment:
- HOST_UID=$host_uid
- CI=$CI
command: /run-unit-tests-container.sh
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]