-
Notifications
You must be signed in to change notification settings - Fork 279
/
Makefile
28 lines (20 loc) · 972 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
include dev/.help.mk
SHELL := /bin/bash
CURR_DIR := $(CURDIR)
START_COMMAND := jupyter-lab --allow-root
JUPYTER_LIST := jupyter-lab list
PIPINSTALLE := pip install -e .
build: # Command to build Docker file [optional]
@docker build -t statsforecast -f dev/Dockerfile .
run: build # Run jupyter notebook using Docker image
@docker run --name statsforecast --rm -d --network host -v $(CURR_DIR):/workdir/ statsforecast $(START_COMMAND)
@docker exec statsforecast $(PIPINSTALLE)
buildless: # Run jupyter notebook using Docker image without building the image
@docker run --name statsforecast --rm -d --network host -v $(CURR_DIR):/workdir/ statsforecast $(START_COMMAND)
@docker exec statsforecast $(PIPINSTALLE)
address: # Show the ipaddress and port of Jupyter Notebook
@docker exec statsforecast $(JUPYTER_LIST)
stop: # Stops statsforecast container
@docker stop statsforecast
remove: # Deletes statsforecast Docker image
@docker image rm statsforecast