-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM sdal/mro-c7sd_auth
MAINTAINER "Daniel Chen" <chend@vt.edu>
## Add RStudio binaries to PATH
ENV PATH /usr/lib/rstudio-server/bin/:$PATH
## Install Download Prerequisites
RUN yum install -y initscripts && \
cp /etc/pam.d/login /etc/pam.d/rstudio
## Download and Install Rstudio-server
RUN curl -O https://s3.amazonaws.com/rstudio-ide-build/server/centos6/x86_64/rstudio-server-rhel-1.2.637-x86_64.rpm && \
yum install -y --nogpgcheck rstudio-server-rhel-*.rpm
RUN systemctl enable rstudio-server
# Add default rstudio user with pass rstudio
RUN useradd -m -d /home/rstudio rstudio && echo rstudio:rstudio | chpasswd
# Get the Rprofile.site file
# RUN wget -O /usr/lib64/R/etc/Rprofile.site https://raw.githubusercontent.com/bi-sdal/mro-ldap-ssh-c7/master/Rprofile.site
RUN yum install -y htop nano emacs vim && \
yum install -y openssh openssh-server openssh-clients openssl-libs && \
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.orig && \
systemctl enable sshd.service
EXPOSE 8787
CMD ["/lib/systemd/systemd"]
#CMD ["/usr/sbin/init"]