Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyson-swetnam committed Jun 17, 2019
1 parent d0983c8 commit 8e57097
Show file tree
Hide file tree
Showing 43 changed files with 593 additions and 1 deletion.
46 changes: 46 additions & 0 deletions 3.5.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM rocker/verse:3.5.0
MAINTAINER "Tyson Lee Swetnam [email protected]"
# This image uses the Rocker verse RStudio image - thanks R OpenSci!

# Add additional R libraries beyond Rocker verse which fit our specific project needs.
RUN install2.r --error \
# Added Packages
PerformanceAnalytics \
boot \
devtools \
dlm \
dplyr \
foreign \
lubridate \
plotly \
truncreg \
ggridges

## Install CyVerse VICE Depends
RUN apt-get update && apt-get install -y lsb wget apt-transport-https python2.7 python-requests curl supervisor nginx gnupg2

RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add - \
&& echo "deb [arch=amd64] https://packages.irods.org/apt/ xenial main" > /etc/apt/sources.list.d/renci-irods.list \
&& apt-get update \
&& apt-get install -y irods-icommands

ADD https://github.com/hairyhenderson/gomplate/releases/download/v2.5.0/gomplate_linux-amd64 /usr/bin/gomplate
RUN chmod a+x /usr/bin/gomplate

# provide read and write access to Rstudio users for default R library location
RUN chmod -R 777 /usr/local/lib/R/site-library

ENV PASSWORD "rstudio1"
RUN bash /etc/cont-init.d/userconf

COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh

COPY nginx.conf.tmpl /nginx.conf.tmpl
COPY rserver.conf /etc/rstudio/rserver.conf
COPY supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf
COPY supervisor-rstudio.conf /etc/supervisor/conf.d/rstudio.conf

ENV REDIRECT_URL "http://localhost/"

ENTRYPOINT ["/usr/local/bin/run.sh"]
1 change: 1 addition & 0 deletions 3.5.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3.5.0
32 changes: 32 additions & 0 deletions 3.5.0/nginx.conf.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
daemon off;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;

location / {
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787 {{.Env.REDIRECT_URL}};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
}
}
4 changes: 4 additions & 0 deletions 3.5.0/rserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Server Configuration File

www-address=127.0.0.1
rsession-which-r=/usr/local/bin/R
4 changes: 4 additions & 0 deletions 3.5.0/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

gomplate -f /nginx.conf.tmpl -o /etc/nginx/nginx.conf
supervisord -c /etc/supervisor/supervisord.conf -n
2 changes: 2 additions & 0 deletions 3.5.0/supervisor-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:nginx]
command=nginx
2 changes: 2 additions & 0 deletions 3.5.0/supervisor-rstudio.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:rstudio]
command=/usr/lib/rstudio-server/bin/rserver --server-daemonize 0
46 changes: 46 additions & 0 deletions 3.5.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM rocker/verse:3.5.1
MAINTAINER "Tyson Lee Swetnam [email protected]"
# This image uses the Rocker verse RStudio image - thanks R OpenSci!

# Add additional R libraries beyond Rocker verse which fit our specific project needs.
RUN install2.r --error \
# Added Packages
PerformanceAnalytics \
boot \
devtools \
dlm \
dplyr \
foreign \
lubridate \
plotly \
truncreg \
ggridges

## Install CyVerse VICE Depends
RUN apt-get update && apt-get install -y lsb wget apt-transport-https python2.7 python-requests curl supervisor nginx gnupg2

RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add - \
&& echo "deb [arch=amd64] https://packages.irods.org/apt/ xenial main" > /etc/apt/sources.list.d/renci-irods.list \
&& apt-get update \
&& apt-get install -y irods-icommands

ADD https://github.com/hairyhenderson/gomplate/releases/download/v2.5.0/gomplate_linux-amd64 /usr/bin/gomplate
RUN chmod a+x /usr/bin/gomplate

# provide read and write access to Rstudio users for default R library location
RUN chmod -R 777 /usr/local/lib/R/site-library

ENV PASSWORD "rstudio1"
RUN bash /etc/cont-init.d/userconf

COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh

COPY nginx.conf.tmpl /nginx.conf.tmpl
COPY rserver.conf /etc/rstudio/rserver.conf
COPY supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf
COPY supervisor-rstudio.conf /etc/supervisor/conf.d/rstudio.conf

ENV REDIRECT_URL "http://localhost/"

ENTRYPOINT ["/usr/local/bin/run.sh"]
1 change: 1 addition & 0 deletions 3.5.1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3.5.1
32 changes: 32 additions & 0 deletions 3.5.1/nginx.conf.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
daemon off;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;

location / {
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787 {{.Env.REDIRECT_URL}};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
}
}
4 changes: 4 additions & 0 deletions 3.5.1/rserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Server Configuration File

www-address=127.0.0.1
rsession-which-r=/usr/local/bin/R
4 changes: 4 additions & 0 deletions 3.5.1/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

gomplate -f /nginx.conf.tmpl -o /etc/nginx/nginx.conf
supervisord -c /etc/supervisor/supervisord.conf -n
2 changes: 2 additions & 0 deletions 3.5.1/supervisor-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:nginx]
command=nginx
2 changes: 2 additions & 0 deletions 3.5.1/supervisor-rstudio.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:rstudio]
command=/usr/lib/rstudio-server/bin/rserver --server-daemonize 0
46 changes: 46 additions & 0 deletions 3.5.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
yFROM rocker/verse:3.5.2
MAINTAINER "Tyson Lee Swetnam [email protected]"
# This image uses the Rocker verse RStudio image - thanks R OpenSci!

# Add additional R libraries beyond Rocker verse which fit our specific project needs.
RUN install2.r --error \
# Added Packages
PerformanceAnalytics \
boot \
devtools \
dlm \
dplyr \
foreign \
lubridate \
plotly \
truncreg \
ggridges

## Install CyVerse VICE Depends
RUN apt-get update && apt-get install -y lsb wget apt-transport-https python2.7 python-requests curl supervisor nginx gnupg2

RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add - \
&& echo "deb [arch=amd64] https://packages.irods.org/apt/ xenial main" > /etc/apt/sources.list.d/renci-irods.list \
&& apt-get update \
&& apt-get install -y irods-icommands

ADD https://github.com/hairyhenderson/gomplate/releases/download/v2.5.0/gomplate_linux-amd64 /usr/bin/gomplate
RUN chmod a+x /usr/bin/gomplate

# provide read and write access to Rstudio users for default R library location
RUN chmod -R 777 /usr/local/lib/R/site-library

ENV PASSWORD "rstudio1"
RUN bash /etc/cont-init.d/userconf

COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh

COPY nginx.conf.tmpl /nginx.conf.tmpl
COPY rserver.conf /etc/rstudio/rserver.conf
COPY supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf
COPY supervisor-rstudio.conf /etc/supervisor/conf.d/rstudio.conf

ENV REDIRECT_URL "http://localhost/"

ENTRYPOINT ["/usr/local/bin/run.sh"]
1 change: 1 addition & 0 deletions 3.5.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3.5.2
32 changes: 32 additions & 0 deletions 3.5.2/nginx.conf.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
daemon off;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;

location / {
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787 {{.Env.REDIRECT_URL}};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
}
}
4 changes: 4 additions & 0 deletions 3.5.2/rserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Server Configuration File

www-address=127.0.0.1
rsession-which-r=/usr/local/bin/R
4 changes: 4 additions & 0 deletions 3.5.2/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

gomplate -f /nginx.conf.tmpl -o /etc/nginx/nginx.conf
supervisord -c /etc/supervisor/supervisord.conf -n
2 changes: 2 additions & 0 deletions 3.5.2/supervisor-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:nginx]
command=nginx
2 changes: 2 additions & 0 deletions 3.5.2/supervisor-rstudio.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:rstudio]
command=/usr/lib/rstudio-server/bin/rserver --server-daemonize 0
50 changes: 50 additions & 0 deletions 3.5.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM rocker/verse:3.5.3
MAINTAINER "Tyson Lee Swetnam [email protected]"
# This image uses the Rocker verse RStudio image - thanks R OpenSci!

# Add additional R libraries beyond Rocker verse which fit our specific project needs.
RUN install2.r --error \
# Added Packages
PerformanceAnalytics \
boot \
devtools \
dlm \
dplyr \
foreign \
lubridate \
plotly \
truncreg \
ggridges

USER root
# Install CyVerse VICE Depends
RUN apt-get update && apt-get install -y lsb wget apt-transport-https python2.7 python-requests curl supervisor nginx gnupg2

# install iCommands
RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add - \
&& echo "deb [arch=amd64] https://packages.irods.org/apt/ bionic main" > /etc/apt/sources.list.d/renci-irods.list \
&& apt-get update \
&& apt-get install -y irods-icommands \
&& apt-get clean \
&& rm -rf /usr/lib/apt/lists/*

ADD https://github.com/hairyhenderson/gomplate/releases/download/v2.5.0/gomplate_linux-amd64 /usr/bin/gomplate
RUN chmod a+x /usr/bin/gomplate

# provide read and write access to Rstudio users for default R library location
RUN chmod -R 777 /usr/local/lib/R/site-library

ENV PASSWORD "rstudio1"
RUN bash /etc/cont-init.d/userconf

COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh

COPY nginx.conf.tmpl /nginx.conf.tmpl
COPY rserver.conf /etc/rstudio/rserver.conf
COPY supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf
COPY supervisor-rstudio.conf /etc/supervisor/conf.d/rstudio.conf

ENV REDIRECT_URL "http://localhost/"

ENTRYPOINT ["/usr/local/bin/run.sh"]
1 change: 1 addition & 0 deletions 3.5.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3.5.3
32 changes: 32 additions & 0 deletions 3.5.3/nginx.conf.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
daemon off;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;

location / {
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787 {{.Env.REDIRECT_URL}};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
}
}
4 changes: 4 additions & 0 deletions 3.5.3/rserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Server Configuration File

www-address=127.0.0.1
rsession-which-r=/usr/local/bin/R
4 changes: 4 additions & 0 deletions 3.5.3/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

gomplate -f /nginx.conf.tmpl -o /etc/nginx/nginx.conf
supervisord -c /etc/supervisor/supervisord.conf -n
2 changes: 2 additions & 0 deletions 3.5.3/supervisor-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:nginx]
command=nginx
2 changes: 2 additions & 0 deletions 3.5.3/supervisor-rstudio.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[program:rstudio]
command=/usr/lib/rstudio-server/bin/rserver --server-daemonize 0
Loading

0 comments on commit 8e57097

Please sign in to comment.