zeus 3 years ago
parent
commit
c05685dd1c
  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. 15
      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

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

@ -173,6 +173,13 @@ if [ -d "$Wdir/project" ]; then
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ssl-cert \
&& a2enmod ssl
COPY custom /tmp/bin
RUN /tmp/bin/setup.sh
WORKDIR /var/www/html/
COPY .vimrc /home/docker
EXPOSE 3787
@ -262,6 +269,13 @@ if [ "$Wdir" == "$HOME" ]; then
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ssl-cert \
&& a2enmod ssl
COPY custom /tmp/bin
RUN /tmp/bin/setup.sh
COPY .vimrc /home/docker
WORKDIR /var/www/html/
EXPOSE 3787
@ -285,6 +299,7 @@ fi
/bin/cp -rf $DIR/.vimrc $Wdir/.vimrc
/bin/cp -rf $DIR/bin $Wdir
/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

Loading…
Cancel
Save