zeus 3 years ago
parent
commit
4e8c928672
  1. 1
      install/usr/share/swarmlab.io/sec/custom/custom.sh
  2. 0
      install/usr/share/swarmlab.io/sec/custom/extrapackages
  3. 15
      install/usr/share/swarmlab.io/sec/custom/setup.sh
  4. 11
      install/usr/share/swarmlab.io/sec/swarmlab-sec

1
install/usr/share/swarmlab.io/sec/custom/custom.sh

@ -0,0 +1 @@
#!/bin/sh

0
install/usr/share/swarmlab.io/sec/custom/extrapackages

15
install/usr/share/swarmlab.io/sec/custom/setup.sh

@ -0,0 +1,15 @@
#!/bin/sh
echo "==> extra packages"
extrap=/tmp/bin/extrapackages
if [ -f $extrap ]; then
sh $extrap
fi
echo "==> exec custom"
extrashell=/tmp/bin/custom.sh
if [ -f $extrashell ]; then
sh $extrashell
fi

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

@ -174,6 +174,11 @@ if [ -d "$Wdir/project" ]; then
&& chmod -R 600 \${SSHDIR}/* \ && chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY custom /tmp/bin
RUN /tmp/bin/setup.sh
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 3787 EXPOSE 3787
@ -257,6 +262,11 @@ if [ "$Wdir" == "$HOME" ]; then
&& chmod -R 600 \${SSHDIR}/* \ && chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY custom /tmp/bin
RUN /tmp/bin/setup.sh
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 3787 EXPOSE 3787
EOF EOF
@ -282,6 +292,7 @@ fi
/bin/cp -rf $DIR/run-gui.sh $Wdir/run-gui.sh /bin/cp -rf $DIR/run-gui.sh $Wdir/run-gui.sh
/bin/cp -rf $DIR/latex-all $Wdir/latex-all /bin/cp -rf $DIR/latex-all $Wdir/latex-all
/bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh /bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh
/bin/cp -rf $DIR/custom $Wdir
cat << EOF > $Wdir/docker-compose.yml cat << EOF > $Wdir/docker-compose.yml

Loading…
Cancel
Save