-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from eddelbuettel/sandbox
Sandbox -- merge 2014-10-02
- Loading branch information
Showing
9 changed files
with
89 additions
and
44 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
## Start with the rocker image providing 'base R' using a small Debian testing installation and the current R release | ||
FROM eddelbuettel/debian-r-base | ||
|
||
MAINTAINER Carl Boettiger cboettig@ropensci.org | ||
ENV DEBIAN-FRONTEND noninteractive | ||
## This handle reaches Carl and Dirk | ||
MAINTAINER "Carl Boettiger and Dirk Eddelbuettel" rocker-maintainers@eddelbuettel.com | ||
|
||
## Stay up-to-date (modulo caching) | ||
RUN apt-get update -q && apt-get dist-upgrade -yq | ||
## discourage apt from prompting the user for input | ||
ENV DEBIAN-FRONTEND noninteractive | ||
ENV PATH /usr/lib/rstudio-server/bin/:$PATH | ||
|
||
## Download and install RStudio server | ||
RUN apt-get install -yq supervisor sudo libcurl4-openssl-dev \ | ||
git locales psmisc && dpkg-reconfigure locales \ | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
locales \ | ||
libcurl4-openssl-dev \ | ||
psmisc \ | ||
supervisor \ | ||
sudo \ | ||
&& dpkg-reconfigure locales \ | ||
&& wget -q http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8o-4squeeze14_amd64.deb \ | ||
&& dpkg -i libssl0.9.8_0.9.8o-4squeeze14_amd64.deb && rm libssl0.9.8_0.9.8o-4squeeze14_amd64.deb \ | ||
&& wget -q http://download2.rstudio.org/rstudio-server-0.98.1062-amd64.deb \ | ||
&& dpkg -i rstudio-server-0.98.1062-amd64.deb && rm rstudio-server-*-amd64.deb | ||
&& (wget -q https://s3.amazonaws.com/rstudio-server/current.ver -O currentVersion.txt \ | ||
&& ver=$(cat currentVersion.txt) \ | ||
&& wget -q http://download2.rstudio.org/rstudio-server-${ver}-amd64.deb \ | ||
&& dpkg -i rstudio-server-${ver}-amd64.deb \ | ||
&& rm rstudio-server-*-amd64.deb currentVersion.txt ) | ||
|
||
## This shell script is executed by supervisord when it is run by CMD, configures env variables | ||
ADD userconf.sh /usr/bin/userconf.sh | ||
COPY userconf.sh /usr/bin/userconf.sh | ||
|
||
## Configure persistent daemon serving RStudio-server on (container) port 8787 | ||
RUN mkdir -p /var/log/supervisor | ||
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
|
||
EXPOSE 8787 | ||
|
||
## To have a container run multiple & persistent tasks, we use the very simple supervisord as recommended in Docker documentation. | ||
## To have a container run a persistent task, we use the very simple supervisord as recommended in Docker documentation. | ||
CMD ["/usr/bin/supervisord"] | ||
|
||
|
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
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
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
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
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