Hi,
I am looking for guidelines on how to use Rstudio-connect inside Docker.
I have met many issues and now, I am relying on this post of SO :
This is very dirty code but it works in some way.
- Is there better way of doing it?
My Dockerfile right now:
FROM ubuntu
RUN apt-get update
RUN apt-get install -y gdebi-core
RUN apt-get install -y build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
RUN apt-get install -y r-base
RUN apt-get autoclean
RUN apt-get clean
RUN apt-get install -y texlive-full
RUN apt-get install -y libgmp10-dev libgsl0-dev libnetcdf-dev netcdf-bin libdigest-hmac-perl libgmp-dev libgmp3-dev libgl1-mesa-dev libglu1
RUN apt-get install -y net-tools
RUN apt-get install -y procps
RUN apt-get install -y rrdtool
WORKDIR /root
# Install rstudio connect
COPY rstudio-connect_*.deb rstudio.deb
RUN gdebi -n rstudio.deb
# https://stackoverflow.com/questions/45918838/running-rstudio-connect-using-docker
RUN systemctl enable rstudio-connect.service
RUN cp /opt/rstudio-connect/packaging/init/upstart/rstudio-connect.conf /etc/init/rstudio-connect.conf
EXPOSE 3939
Run command:
docker run -it -p 3939:3939 --privileged --rm --name something imagename
And when it runs:
/opt/rstudio-connect/bin/connect --config /etc/rstudio-connect/rstudio-connect.gcfg
Related post on this forum:
Kind regards,
Michaël