heavily inspired by https://github.com/PawseySC/rstudio-nginx
Create a server with the most recent Ubuntu and make sure that the ports 80, 443 and 22 are open. SSH into your server, change the password and update all packages:
sudo apt update && sudo apt -y dist-upgrade # might be blocked due to auto update... just be patient
sudo apt -y install curl gnupg2 apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt -y install docker-ce
Have a look at https://github.com/docker/compose/releases and see which is the most recent release. At the time of this writing, it is version 1.29.1
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod a+x /usr/local/bin/docker-compose
docker-compose --version # just checkin'
git clone https://github.com/ecomod-code/rstudio-docker.git
cd rstudio-docker
Either use my image (default, just skip this paragraph) or create your own local version of it. Adjust the Dockerfile to your needs and run the following command to build the image from that Dockerfile (this will take a while).
sudo docker build -t sebastianhanss/rstudio:latest .
If you use a different tag than sebastianhanss/rstudio:latest remember to adjust your docker-compose.yml accordingly.
nano .env
Server_URL is the domain name of your server (e.g. c10x-xxx.cloud.gwdg.de)RStudio_Username and RStudio_Password will be the user name and password for your RStudio Server. Choose a strong password as your server is available from the Internete_mail_address will be associated with the generated certificates for the encrypted connection to your server. It does not generate Spam you will just be notified when your certificate is about to expireROOT=false means that your RStudio user will have no admin rights in the container. This improves security, but you can change it to yes if you need admin rightsCtrl+O and exit the editor Strl+Xsudo docker-compose up -d to start the containersYou should now have a working RStudio server that you can access via a web browser at c10x-xxx.cloud.gwdg.de.
More explanations at https://github.com/PawseySC/rstudio-nginx
Content type
Image
Digest
sha256:bc49a91d5…
Size
3.3 GB
Last updated
24 days ago
docker pull ecomod/rstudio