Install ShinyProxy

How to install shiny proxy in Ubuntu

Andrea Spano andreaspano.github.io (Quantide)www.quantide.com
2020-09-24

You can have ShinyProxy container up and running on your Ubuntu machine bu following teh next four steps:

  1. Get shyproxy Dockerfile
  2. Write your own application.yml configuration file
  3. build the container
  4. Run the container

Dockerfile

You can download the Dockerfile for shinyServer at https://github.com/og-analytics.

Cloning this repository provides several files required to follow all the tutorials displayed at the page

Nevertheless, the only file you need to accomplish step (1) is text file named Dockerfile with the following content:


FROM openjdk:8-jre

RUN mkdir -p /opt/shinyproxy/
RUN wget https://www.shinyproxy.io/downloads/shinyproxy-2.3.1.jar -O /opt/shinyproxy/shinyproxy.jar
COPY application.yml /opt/shinyproxy/application.yml

WORKDIR /opt/shinyproxy/
CMD ["java", "-jar", "/opt/shinyproxy/shinyproxy.jar"]

This dockerfile contains the instructions for performing the next four tasks

  1. gets the basic jre container from dockerhub
  2. gets shinyproxy application and copy it inside the docker
  3. copies application.yml inside the docker
  4. starts ShinyProxy inside the container when the container starts

Tasks (c) requires application.yml that, in turn, require to be there and properly configured when building the container. This files basically tells the container how to interact with the surrounding environment including how to interact with any shiny application.

application.yml

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

Citation

For attribution, please cite this work as

Spano (2020, Sept. 24). andreaspano blog: Install ShinyProxy. Retrieved from https://andreaspano.github.io/posts/2020-09-24-install-shinyproxy/

BibTeX citation

@misc{spano2020install,
  author = {Spano, Andrea},
  title = {andreaspano blog: Install ShinyProxy},
  url = {https://andreaspano.github.io/posts/2020-09-24-install-shinyproxy/},
  year = {2020}
}