forked from carlomazzaferro/scikit-hts-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (56 loc) · 2.17 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PHONY: help install clean docker-push docker-build
.DEFAULT_GOAL := help
SHELL := /bin/bash
PATH := ${PWD}/venv/bin:${PATH}
PYTHONPATH := ${PWD}:${PYTHONPATH}
export
BOLD=$(shell tput -T xterm bold)
RED=$(shell tput -T xterm setaf 1)
GREEN=$(shell tput -T xterm setaf 2)
YELLOW=$(shell tput -T xterm setaf 3)
RESET=$(shell tput -T xterm sgr0)
include .env
help:
@awk 'BEGIN {FS = ":.*?##-.*?local.*?- "} /^[a-zA-Z_-]+:.*?##-.*?local.*?- / \
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""
@echo "${YELLOW}ENV=data${RESET}"
@awk 'BEGIN {FS = ":.*?##-.*?data.*?- "} /^[a-zA-Z_-]+:.*?##-.*?data.*?- / \
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""
@echo "${YELLOW}ENV=sandbox${RESET}"
@awk 'BEGIN {FS = ":.*?##-.*?sandbox.*?- "} /^[a-zA-Z_-]+:.*?##-.*?sandbox.*?- / \
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ##-local- Setup project
install: clean
virtualenv -p python3.7 venv
pip3 install -r requirements.txt
install-geo: install
pip3 install -r requirements-geo.txt
install-prophet: install
pip3 install -r requirements-prophet.txt
install-auto-arima: install
pip3 install -r requirements-auto-arima.txt
install-distributed: install
pip3 install -r requirements-distributed.txt
install-all: install install-auto-arima install-geo install-prophet install-distributed
clean: ##-local- Cleanup project
rm -rf venv
# -------------------------------------------------------------------
# DOCKER
# -------------------------------------------------------------------
docker-build: ##-local- Build image
docker-build:
docker build -t scikit-hts-examples:${HTS_VERSION} .
docker tag scikit-hts-examples:${HTS_VERSION} carlomazzaferro/scikit-hts-examples:${HTS_VERSION}
docker-run:
docker run -p 8000:8888 -it scikit-hts-examples:${HTS_VERSION} .
docker-push: ##-sandbox- Build & push image to Dockerhub
docker-push: docker-build
docker push carlomazzaferro/scikit-hts-examples:${HTS_VERSION}
# -------------------------------------------------------------------
# DATA
# -------------------------------------------------------------------
m5-data: ##-local- make dataset
m5-data:
sh scripts/make_m5.sh