The NBIS rshiny server can be accessed at https://rshiny.nbis.se
Fork this github repo
1.1. Update the Dockfile to include dependencies (linux and R packages)
1.2. Add link entry in web/index.html like
<li><a href="/shiny-server-apps/awesome-app">Awesome App</a></li>
1.3. Add link entry in web/apps/index.html
<li><a href="/shiny-server-apps/awesome-app">Awesome App</a>
(Awesome App)
<a href="https://github.com/app-url">GitHub repo</a>
</li>
1.4. Send a pull request.
On the server, go to /media/storage/server/homepage_rshiny.nbis.se/shiny-server-apps and run git clone app-url to clone the app and place it inside a directory, say awesome-app.
The app should now be available through http://rshiny.nbis.se/shiny-server-apps/awesome-app/.
Clone this repository by
git clone https://github.com/NBISweden/homepage_rshiny.nbis.se
Change to the cloned folder and download apps by the script getapp.sh by running
src/getapp.sh <path-of-your-apps>
Define the ENV PATH_APPS for docker-compose by the following command
echo "PATH_APPS=<path-of-your-apps>" > .env
Deploy the web-server container using
docker-compose -f docker-compose-local.yml up -d
After success deployment, you should be able to access the server at http://localhost
Perform steps 1-3 the same as depolying locally and then depoly the web-server with the command
docker-compose up -d
Note that every time when you run docker-compose down and docker-compose up, the microservice letsencrypt-nginx-proxy-companion will try to obtain
a new token from LetsEncrypt. To ensure the certificate retrieval will not
exceeds the rate limits set by
LetsEncrypt. It is recommended to restart shiny services by the following
command if there are any updates
docker-compose stop shinymain shinymetamex && docker-compose up -d
Content type
Image
Digest
Size
1.3 GB
Last updated
over 4 years ago
docker pull nanjiang/shinynbis