Last active
August 29, 2015 14:18
-
-
Save yutannihilation/4a00ab73d0864e30392f to your computer and use it in GitHub Desktop.
Run Rocker's Docker images on http://instantcloud.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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