Browse Source

add jupyter

master
zeus 4 years ago
parent
commit
b08cebea6b
  1. 4
      install/usr/share/swarmlab.io/sec/swarmlab-sec

4
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -124,6 +124,7 @@ if [ -d "$Wdir/project" ]; then
ENV NOTVISIBLE "in users profile" ENV NOTVISIBLE "in users profile"
ENV USER1 docker ENV USER1 docker
ENV USER1_ID 1001
ENV USER_HOME /home/docker ENV USER_HOME /home/docker
ENV SSHDIR \${USER_HOME}/.ssh ENV SSHDIR \${USER_HOME}/.ssh
COPY ssh/ \${SSHDIR}/ COPY ssh/ \${SSHDIR}/
@ -133,6 +134,7 @@ if [ -d "$Wdir/project" ]; then
&& rm -rf /usr/share/man \ && rm -rf /usr/share/man \
&& rm -rf /usr/share/locale \ && rm -rf /usr/share/locale \
&& mkdir -p /var/run/sshd \ && mkdir -p /var/run/sshd \
&& useradd -m -s /bin/bash -N -u $USER1_UID $USER1 \
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ && echo 'root:$ROOT_PASSWORD' | chpasswd \
&& echo "export VISIBLE=now" >> /etc/profile \ && echo "export VISIBLE=now" >> /etc/profile \
&& mkdir -p /home/docker/project \ && mkdir -p /home/docker/project \
@ -200,6 +202,7 @@ if [ "$Wdir" == "$HOME" ]; then
ENV NOTVISIBLE "in users profile" ENV NOTVISIBLE "in users profile"
ENV USER1 docker ENV USER1 docker
ENV USER1_ID 1001
ENV USER_HOME /home/docker ENV USER_HOME /home/docker
ENV SSHDIR \${USER_HOME}/.ssh ENV SSHDIR \${USER_HOME}/.ssh
COPY ssh/ \${SSHDIR}/ COPY ssh/ \${SSHDIR}/
@ -209,6 +212,7 @@ if [ "$Wdir" == "$HOME" ]; then
&& rm -rf /usr/share/man \ && rm -rf /usr/share/man \
&& rm -rf /usr/share/locale \ && rm -rf /usr/share/locale \
&& mkdir -p /var/run/sshd \ && mkdir -p /var/run/sshd \
&& useradd -m -s /bin/bash -N -u $USER1_UID $USER1 \
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ && echo 'root:$ROOT_PASSWORD' | chpasswd \
&& echo "export VISIBLE=now" >> /etc/profile \ && echo "export VISIBLE=now" >> /etc/profile \
&& mkdir -p /home/docker/project \ && mkdir -p /home/docker/project \

Loading…
Cancel
Save