name | common ports | description |
---|---|---|
Apache | 80, 443 | Basic Webserver |
nginx | 80, 443 | Webserver, Reverse Proxy |
Postgres | 5432 | Database |
RStudio Server | 8787 | RStudio made available through a web browser |
Shiny Server | 3838 | A webserver for shiny apps |
Block 3, Session 1: A Glimpse of DevOps
name | common ports | description |
---|---|---|
Apache | 80, 443 | Basic Webserver |
nginx | 80, 443 | Webserver, Reverse Proxy |
Postgres | 5432 | Database |
RStudio Server | 8787 | RStudio made available through a web browser |
Shiny Server | 3838 | A webserver for shiny apps |
Do not forget that hosting requires a development strategy.
e.g., Google Compute Engine, Microsoft Azure Cloud VMs
Docker hosts, e.g., Google Kubernetes Engine, Azure Kubernetes Service (AKS)
AI & machine learning products, e.g., Google Cloud AutoML, SQL Cloud Hosting
A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another
–docker.com, what is a container ?
FROM rocker/r-ver:4.2.0 as deps
RUN apt-get update && apt-get install -y \
libpq-dev \
libcurl4-openssl-dev \
libxml2-dev \
libssl1.0-dev \
libssh-dev
Start and log into the container…
docker run --rm -p 1234:3838 rocker/shiny
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=postgres -d -p 1111:5432
-v local/path:/var/lib/postgresql/data postgres:11
-d: run as daemon, i.e., terminal window available
-e: pass on an environment parameter, in this case a password
-p: port forwarding: host port:docker port
-v: Mount for persistent storage
(!): To make the two containers talk to each other, consider docker compose.
Hacking for Science by Dr. Matthias Bannert is licensed under CC BY-NC-SA 4.0