#!/bin/bash
docker run -u shiny -d --rm -p 80:3838 -v ${PWD}/data:/srv/shiny-server/bcape/data -v ${PWD}/analytics:/srv/shiny-server/bcape/analytics -v ${PWD}/logs:/var/log/shiny-server crukci-bioinformatics/bcape

#!/bin/bash
mkdir -p logs
chmod ugo+rx data analytics
chmod ugo+rwx logs
docker run -u shiny -d --rm -p 80:3838 \
  -v ${PWD}/data:/srv/shiny-server/bcape/data \
  -v ${PWD}/analytics:/srv/shiny-server/bcape/analytics \
  -v ${PWD}/logs:/var/log/shiny-server \
  crukci-bioinformatics/bcape

Change permissions of data, analytics and log directory so that shiny user can access
Change permissions of data, analytics and log directory so that shiny user can access
