forked from Nixtla/statsforecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (17 loc) · 854 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
include dev/.help.mk
SHELL := /bin/bash
CURR_DIR := $(CURDIR)
START_COMMAND := jupyter-lab --allow-root
JUPYTER_LIST := jupyter-lab list
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)
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)
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