Giter Site home page Giter Site logo

8-turi-02-containerized-docker-engine's Introduction

Example: containerized ShinyProxy with a docker engine

This example is similar to the example 'standalone ShinyProxy with a docker engine', with one exception: ShinyProxy runs in a container itself, in the same container manager (i.e. docker engine) that also hosts the containers for the users' Shiny apps.

Requirement

ShinyProxy expects relevant Docker images to be already available on the host. Before running this example, pull the Docker image used in this example with:

sudo docker pull openanalytics/shinyproxy-demo

How to run

  1. Download the Dockerfile from the folder where this README is located.
  2. Download the application.yml configuration file from the folder where this README is located.
  3. Place the files in the same directory, e.g. /home/user/sp
  4. Create a docker network that ShinyProxy will use to communicate with the Shiny containers.

sudo docker network create sp-example-net

  1. Open a terminal, go to the directory /home/user/sp, and run the following command to build the ShinyProxy image:

sudo docker build . -t shinyproxy-example

  1. Run the following command to launch the ShinyProxy container:

sudo docker run -d -v /var/run/docker.sock:/var/run/docker.sock --net sp-example-net -p 8080:8080 shinyproxy-example

Notes on the configuration

  • ShinyProxy will listen for HTTP traffic on port 8080.

  • The custom bridge network sp-example-net is needed to allow the containers to access each other using the container ID as hostname.

8-turi-02-containerized-docker-engine's People

Contributors

jplaclau avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.