-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (29 loc) · 950 Bytes
/
Makefile
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
# Input and output folders
CONF?=$(shell pwd)/conf
WEIGHTS?=$(shell pwd)/weights
# Default directive
default: run
# Building docker image for the submission
build:
docker build --tag javiervargas/veriff-submission .
# Running the docker image, input to the docker container will
# be the CONF folder with the configuration for the run, the outputs
# weights will be saved in the WEIGHTS volume for persistency
run: build
mkdir -p $(WEIGHTS)
docker run --rm -it \
-v $(CONF):/conf \
-v $(WEIGHTS):/weights \
javiervargas/veriff-submission:latest
# Running code tests
test:
docker run --rm -t --entrypoint pytest javiervargas/veriff-submission:latest -vv --color=yes ./src
# To develop inside the container
dev: build
docker run -d -it \
-v $$PWD:/veriff-submission/ \
-v $(CONF):/veriff-submission/conf \
-v $(WEIGHTS):/veriff-submission/weights \
--entrypoint /bin/bash \
--name dev \
javiervargas/veriff-submission:latest