generated from francnascimento/data-science-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 885 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
35
36
37
38
39
40
41
42
BUILD = docker-compose build
RUN = docker-compose run
help:
@echo ""
@echo "USAGE"
@echo
@echo " make <command>"
@echo " Include 'sudo' when necessary."
@echo " To avoid using sudo, follow the steps in"
@echo " https://docs.docker.com/engine/install/linux-postinstall/"
@echo
@echo
@echo "COMMANDS"
@echo
@echo " base-image build image using cache"
@echo " base-image-no-cache build image from scratch"
@echo " bash container bash, suitable for debugging"
@echo " python3 access Python inside container"
@echo " jupyter starts Jupyterlab inside container"
@echo ""
#################
# User Commands #
#################
base-image:
$(BUILD) base
base-image-no-cache:
$(BUILD) --no-cache base
bash:
$(RUN) bash
python3:
$(RUN) python3
jupyter:
$(RUN) --service-ports jupyter