Skip to content

Commit b3120e3

Browse files
authored
Fix docker-sanger network issue
1 parent 5db6cea commit b3120e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ RUN rm ${RSTUDIO_PKG}
7474
ENV PATH="${PATH}:/usr/lib/rstudio-server/bin"
7575
ENV LD_LIBRARY_PATH="/usr/lib/R/lib:/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server:/opt/conda/lib/R/lib"
7676

77-
# Shine Server
77+
# Shiny Server
7878
RUN wget -q "https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb" -O shiny-server-latest.deb
7979
RUN dpkg -i shiny-server-latest.deb
8080
RUN rm -f shiny-server-latest.deb
@@ -194,6 +194,10 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
194194
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
195195
RUN apt update
196196
RUN apt install -y docker-ce
197+
# Fix docker in sanger internal network
198+
# https://ssg-confluence.internal.sanger.ac.uk/display/OPENSTACK/Commonly+encountered+errors
199+
RUN mkdir -p /etc/default/
200+
RUN echo "DOCKER_OPTS=\"--dns 172.18.255.1 --dns 172.18.255.2 --bip=192.168.3.3/24 --mtu=1380\"" >> /etc/default/docker
197201

198202
# move kernelspec out of home
199203
RUN mv $HOME/.local/share/jupyter/kernels/julia* $CONDA_DIR/share/jupyter/kernels/ && \

0 commit comments

Comments
 (0)