From d3cc191c7186f7580aaea7d272f400129101eaf6 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 17 Dec 2021 14:30:33 +0200 Subject: [PATCH] swarmlab-gen --- install/usr/share/swarmlab.io/sec/swarmlab-gen.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-gen.sh b/install/usr/share/swarmlab.io/sec/swarmlab-gen.sh index f7f5561..310064b 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-gen.sh +++ b/install/usr/share/swarmlab.io/sec/swarmlab-gen.sh @@ -30,8 +30,11 @@ cwdir=$PWD cat << EOF > $SRPATH/swarmlab-template-image IMAGE_local="microservice-xelatexthesis" IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui" +# Git url for created service GIT_origin="https://git.swarmlab.io:3000/swarmlab/swarmlab-microservice-example.git" +# true if service have a GUI service_GUI=true +# true if service have a web interface service_WEB=true service_URL=http EOF @@ -120,8 +123,17 @@ echo "edit $SRPATH/extrapackages" # EDIT step 7 + # if service_GUI=true + # + +cat << EOF > $SRPATH/run-gui.sh + # if service_GUI=true + # e.g. +xhost +local:docker +docker exec -e DISPLAY=$DISPLAY microservice-xelatexthesis_masterservice_1 /bin/sh -c "latex-all" + # +EOF -echo "edit $SRPATH/ROOT_PASSWORD" # cd in base directory