Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yutannihilation
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yutannihilation/4a00ab73d0864e30392f to your computer and use it in GitHub Desktop.
Save yutannihilation/4a00ab73d0864e30392f to your computer and use it in GitHub Desktop.
Run Rocker's Docker images on http://instantcloud.io
# Servers on scaleway are arm, where official Rocker images won't work.
# To make things work, we have to start with onlinelabs/armhf-debian and build Docker image by ourselves.
#
# $ wget -O - https://gist.github.com/yutannihilation/4a00ab73d0864e30392f/raw/armhf-rocker.sh | sh
#
set -xe
mkdir -p r-base rstudio
docker pull onlinelabs/armhf-debian:jessie
# r-base
cd r-base
rm -f Dockerfile
wget -O Dockerfile https://registry.hub.docker.com/u/rocker/r-base/dockerfile/raw
sed -i 's,FROM debian:jessie,FROM onlinelabs/armhf-debian:jessie,' Dockerfile
sed -i 's/^MAINTAINER/#MAINTAINER/' Dockerfile
docker build -t r-base .
# rstudio
cd ../rstudio
rm -f Dockerfile
wget -O Dockerfile https://registry.hub.docker.com/u/rocker/rstudio/dockerfile/raw
sed -i 's/^MAINTAINER/#MAINTAINER/' Dockerfile
docker build -t rstudio .
# Run Rstudio Server
cd ..
docker run -d rstudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment