-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRun_Plumber
executable file
·17 lines (12 loc) · 1.13 KB
/
Run_Plumber
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Executable file to start container with R Plumber API and RStudio
# This script is used to enable both R-Studio Environments
# our ecosystem will require connectivity among them
# see https://stackoverflow.com/a/27583220
# establish the network
docker network create -d bridge my-net
# Environment to develop [e.g. Open with Safari browser]
docker run -d --rm --network=my-net --net-alias=Dev -p 8787:8787 -e USER=myself -e PASSWORD=guest -v /Users/vladdsm/Documents/GitHub/docker-r-plumber:/home/myself/r-studio/docker-r-plumber -v /Users/vladdsm/Documents/GitHub/shiny-merkle-tree:/home/myself/r-studio/shiny-merkle-tree --name Dev vladdsm/docker-r-studio
# Environment to test [e.g. Open with Chrome browser]
docker run -d --rm --network=my-net --net-alias=Prod -p 8797:8787 -e USER=myself -e PASSWORD=guest -v /Users/vladdsm/Documents/GitHub/docker-r-plumber:/home/myself/r-studio/docker-r-plumber -v /Users/vladdsm/Documents/GitHub/shiny-merkle-tree:/home/myself/r-studio/shiny-merkle-tree --name Prod vladdsm/docker-r-studio
# API publisher
docker run -d --rm --network=my-net --net-alias=API -p 8777:8787 --name API vladdsm/docker-r-plumber