Skip to content
Snippets Groups Projects
Commit ef6371bf authored by Guido Sterbini's avatar Guido Sterbini
Browse files

Adding sshuttle and JAVA 8

parent 88f97933
No related branches found
No related tags found
No related merge requests found
Pipeline #2537325 passed
......@@ -63,7 +63,7 @@ RUN echo "deb [arch=$(dpkg --print-architecture)] \
###############################################################################
RUN apt-get -qq update \
&& apt-get -yqq install x11-apps sudo wget git tmux vim meld openssh-server\
build-essential cmake python-dev python3-dev \
build-essential cmake python-dev python3-dev sshuttle openjdk-8-jdk\
&& apt-get -yqq clean
###############################################################################
......@@ -165,6 +165,7 @@ RUN conda activate $ENV_PREFIX \
COPY docker_start.sh $HOME/docker_start.sh
COPY run_sshuttle.sh $HOME/run_sshuttle.sh
RUN echo "source /home/"$USER"/local_host_home/docker_start.sh" >> ~/.bashrc
USER $USER
......
......@@ -15,4 +15,3 @@ seaborn
bokeh
awkward
numba
cupy
#!/bin/sh
# From https://codimd.web.cern.ch/vjC8BHbTS7etHwJve-K2Uw
case $1 in
connect)
sshuttle --dns -vr sterbini@lxplus.cern.ch 188.0.0.0/8 137.138.0.0/16 172.18.0.0/16 128.141.0.0/16 128.142.0.0/16 188.184.0.0/15 --daemon --pidfile /tmp/sshuttle.pid
shift
;;
disconnect)
kill `cat /tmp/sshuttle.pid`
shift
;;
*)
# unknown option
echo "Unknown option\nUsage:"
echo "\t $0 connect : to start VPN-like connection to CERN"
echo "\t $0 disconnect : to stop it"
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment