Browse Source

add run-gui

master
zeus 3 years ago
parent
commit
7b0a0a92cb
  1. 10
      install/usr/share/swarmlab.io/sec/setup.sh
  2. 13
      install/usr/share/swarmlab.io/sec/swarmlab-sec

10
install/usr/share/swarmlab.io/sec/setup.sh

@ -6,9 +6,9 @@ set -o pipefail
scheme="$1" scheme="$1"
echo "==> Install system packages" echo "==> Install system packages"
apk update #apk update
apk --no-cache add \ #apk --no-cache add \
okular # okular
# make \ # make \
# xz # xz
# #
@ -20,7 +20,7 @@ if [ "$scheme" != "full" ]; then
echo "==> extra packages" echo "==> extra packages"
i#extrap=/extrapackages #extrap=/extrapackages
if [ -f $extrap ]; then if [ -f $extrap ]; then
echo "no" echo "no"
@ -43,7 +43,7 @@ fi
# fc-cache -f # fc-cache -f
fi fi
texhash #texhash
echo "==> Clean up" echo "==> Clean up"
rm -rf \ rm -rf \

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

@ -40,7 +40,7 @@ IMAGE_local="microservice-xelatexthesis"
HYBRID_NETWORK="microservice-xelatexthesis" HYBRID_NETWORK="microservice-xelatexthesis"
# dont edit # dont edit
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy" #IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy"
IMAGE_origin="hub.swarmlab.io:5480/xelatex-base" IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui"
bootstrap="sec_bootstrap" bootstrap="sec_bootstrap"
hostnames="auto_update_hosts" hostnames="auto_update_hosts"
hostnames_get="get_hosts" hostnames_get="get_hosts"
@ -170,10 +170,6 @@ if [ -d "$Wdir/project" ]; then
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY .vimrc /home/docker COPY .vimrc /home/docker
COPY \
setup.sh \
/
RUN /setup.sh
EOF EOF
fi fi
@ -256,13 +252,6 @@ if [ "$Wdir" == "$HOME" ]; then
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY .vimrc /home/docker COPY .vimrc /home/docker
COPY \
setup.sh \
extrapackages \
/
COPY fonts-extra/ /usr/share/fonts
COPY cls/ /usr/local/texlive/texmf-local/tex/latex/local
RUN /setup.sh
EOF EOF
fi fi

Loading…
Cancel
Save