Skip to content

Commit

Permalink
Added tasks for starting and stopping the Shiny server, starting a sh…
Browse files Browse the repository at this point in the history
…ell inside the container and for building a Singularity image
  • Loading branch information
eldrid01 committed May 21, 2022
1 parent 28ff955 commit 76f1c60
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,37 @@ release: build
singularity: build
singularity build shiny-base-${version}.sif docker-daemon://crukcibioinformatics/shiny-base:${version}

shell:
mkdir -p logs lib/bookmarks/shiny apps
chmod -R ugo+rwx lib logs
docker run \
--user shiny \
--interactive \
--tty \
--rm \
--entrypoint=bash \
--volume ${PWD}/shiny-server.conf:/etc/shiny-server/shiny-server.conf \
--volume ${PWD}/lib:/var/lib/shiny-server \
--volume ${PWD}/logs:/var/log/shiny-server \
--volume ${PWD}/apps:/srv/shiny-server/apps \
crukcibioinformatics/shiny-base:${version}

start:
rm -rf logs
mkdir -p logs lib/bookmarks/shiny apps
chmod -R ugo+rwx lib logs
docker run \
--user shiny \
--detach \
--rm \
--name shiny_server \
--publish 8080:3838 \
--volume ${PWD}/shiny-server.conf:/etc/shiny-server/shiny-server.conf \
--volume ${PWD}/lib:/var/lib/shiny-server \
--volume ${PWD}/logs:/var/log/shiny-server \
--volume ${PWD}/apps:/srv/shiny-server/apps \
crukcibioinformatics/shiny-base:${version}

stop:
docker stop shiny_server

0 comments on commit 76f1c60

Please sign in to comment.