-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 905 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 905 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
34
35
36
37
38
39
# set user
user = 1000:1000
# docker image and container details
Docker_name = $(shell whoami)/dataset_collection_tool
container_name = dataset_collection_tool
# forwards ports
ports = --network host
# set volume directory
volume_dir = $(shell pwd):/app
dataset_dir = /media/$(shell whoami)/DATA/Datasets/:/Datasets
build:
@docker-compose -f docker-compose-deploy.yml build
no_cache:
@docker build . -t $(Docker_name) --no-cache
bash:
@docker run -it --rm $(ports) -v $(volume_dir) -v $(dataset_dir) --name $(container_name) $(Docker_name) bash || docker exec -it $(container_name) bash
run:
@docker-compose -f docker-compose-deploy.yml up -d
run_debug:
@docker-compose -f docker-compose.yml up
down:
@docker-compose -f docker-compose-deploy.yml down
restart:
@docker-compose -f docker-compose-deploy.yml restart
debug:
@docker-compose -f docker-compose.yml up