Skip to content

Commit 76f1c60

Browse files
committed
Added tasks for starting and stopping the Shiny server, starting a shell inside the container and for building a Singularity image
1 parent 28ff955 commit 76f1c60

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,37 @@ release: build
1010
singularity: build
1111
singularity build shiny-base-${version}.sif docker-daemon://crukcibioinformatics/shiny-base:${version}
1212

13+
shell:
14+
mkdir -p logs lib/bookmarks/shiny apps
15+
chmod -R ugo+rwx lib logs
16+
docker run \
17+
--user shiny \
18+
--interactive \
19+
--tty \
20+
--rm \
21+
--entrypoint=bash \
22+
--volume ${PWD}/shiny-server.conf:/etc/shiny-server/shiny-server.conf \
23+
--volume ${PWD}/lib:/var/lib/shiny-server \
24+
--volume ${PWD}/logs:/var/log/shiny-server \
25+
--volume ${PWD}/apps:/srv/shiny-server/apps \
26+
crukcibioinformatics/shiny-base:${version}
27+
28+
start:
29+
rm -rf logs
30+
mkdir -p logs lib/bookmarks/shiny apps
31+
chmod -R ugo+rwx lib logs
32+
docker run \
33+
--user shiny \
34+
--detach \
35+
--rm \
36+
--name shiny_server \
37+
--publish 8080:3838 \
38+
--volume ${PWD}/shiny-server.conf:/etc/shiny-server/shiny-server.conf \
39+
--volume ${PWD}/lib:/var/lib/shiny-server \
40+
--volume ${PWD}/logs:/var/log/shiny-server \
41+
--volume ${PWD}/apps:/srv/shiny-server/apps \
42+
crukcibioinformatics/shiny-base:${version}
43+
44+
stop:
45+
docker stop shiny_server
46+

0 commit comments

Comments
 (0)