forked from PRBonn/puma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 845 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
.PHONY: container run check-env check-config
.DEFAULT_GOAL:= container
export USER_ID:=$(shell id -u)
export GROUP_ID:=$(shell id -g)
container: check-env check-config
@echo Building apps container with user_id=${USER_ID} group_id=${GROUP_ID}...
@docker-compose build apps
@echo You can run \"make run\" to test the docker installation now.
run: check-env
@echo Mounting\(read-write \) ${DATASETS} to /data.
@echo Mounting\(read-write\) $(shell realpath apps/) to /apps/
@docker-compose run --rm apps
check-config:
@echo Using the following docker configuration:
@docker-compose config
clean:
@echo Removing docker images...
-docker image rm ignaciovizzo/puma:latest
-docker image rm ignaciovizzo/puma_apps:latest
check-env:
ifndef DATASETS
$(error Please specify where your datasets are located, export DATASETS=<path>)
endif