-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 635 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
DOCKERPORT=8787
HOSTPORT=8787
VERSION=1.0
CONTAINER=jannetta/rstudioserver
NAME=rstudioserver
HOSTVOLUME=jupyterlab
DOCKERVOLUME=/home
build:
docker build --force-rm -t $(CONTAINER):$(VERSION) .
run:
docker run -d --rm --name $(NAME) -p $(HOSTPORT):$(DOCKERPORT) -p 3838:3838 -e PASSWORD=mypassword -e ROOT=TRUE -v $(HOSTVOLUME):$(DOCKERVOLUME) $(CONTAINER):$(VERSION)
stop:
docker stop $(NAME)
start:
docker start $(NAME)
exec:
docker exec -ti $(NAME) bash
tar:
docker save -o $(NAME)$(VERSION).tar $(CONTAINER):$(VERSION)
install:
docker load -i $(NAME)$(VERSION).tar
push:
git push --atomic origin master $(VERSION)