This repository was archived by the owner on Dec 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (44 loc) · 1.24 KB
/
Makefile
File metadata and controls
52 lines (44 loc) · 1.24 KB
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
run: jupyter
build-and-run:
$(MAKE) jupyter-image
$(MAKE) jupyter
stop:
docker stop devfest_jupyter devfest_gitbase devfest_bblfshd \
> /dev/null 2>&1 || true
bblfshd:
docker start devfest_bblfshd > /dev/null 2>&1 \
|| docker run \
--detach \
--rm \
--name devfest_bblfshd \
--privileged \
--publish 9432:9432 \
--memory 2G \
bblfsh/bblfshd:v2.15.0-drivers \
--log-level DEBUG
gitbase: bblfshd
docker start devfest_gitbase > /dev/null 2>&1 \
|| docker run \
--detach \
--rm \
--name devfest_gitbase \
--publish 3306:3306 \
--link devfest_bblfshd:devfest_bblfshd \
--env BBLFSH_ENDPOINT=devfest_bblfshd:9432 \
--env MAX_MEMORY=1024 \
--volume $(PWD)/repos/git-data:/opt/repos \
srcd/gitbase:v0.24.0-rc2
jupyter-image:
docker build -t mloncode/devfest .
jupyter: gitbase bblfshd
docker start devfest_jupyter > /dev/null 2>&1 \
|| docker run \
--rm \
--name devfest_jupyter \
--publish 8888:8888 \
--link devfest_bblfshd:devfest_bblfshd \
--link devfest_gitbase:devfest_gitbase \
--volume $(PWD)/notebooks:/devfest/notebooks \
--volume $(PWD)/repos:/devfest/repos \
mloncode/devfest
.PHONY: run build-and-run stop bblfshd gitbase jupyter-image jupyter