-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 896 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
#!make
PROJECT_VERSION := 0.9.5
SHELL := /bin/bash
IMAGE := tschm/cs
.PHONY: help build jupyter jupyterlab tag clean-notebooks
.DEFAULT: help
help:
@echo "make build"
@echo " Build the docker image."
@echo "make jupyter"
@echo " Start the Jupyter server."
@echo "make tag"
@echo " Make a tag on Github."
@echo "make hub"
@echo " Push Docker Image to DockerHub."
build:
docker-compose build jupyter
jupyter: build
echo "http://localhost:8888"
docker-compose up jupyter
jupyterlab: build
echo "http://localhost:8888/lab"
docker-compose up jupyter
# Any tag will automatically trigger the construction of a docker image and a push to dockerhub
# Github actions
tag:
git tag -a ${PROJECT_VERSION} -m "new tag"
git push --tags
clean-notebooks:
docker-compose exec jupyter jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace **/*.ipynb