Browse Source

swarmlab-gen

master
zeus 3 years ago
parent
commit
d3cc191c71
  1. 14
      install/usr/share/swarmlab.io/sec/swarmlab-gen.sh

14
install/usr/share/swarmlab.io/sec/swarmlab-gen.sh

@ -30,8 +30,11 @@ cwdir=$PWD
cat << EOF > $SRPATH/swarmlab-template-image cat << EOF > $SRPATH/swarmlab-template-image
IMAGE_local="microservice-xelatexthesis" IMAGE_local="microservice-xelatexthesis"
IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui" 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" GIT_origin="https://git.swarmlab.io:3000/swarmlab/swarmlab-microservice-example.git"
# true if service have a GUI
service_GUI=true service_GUI=true
# true if service have a web interface
service_WEB=true service_WEB=true
service_URL=http service_URL=http
EOF EOF
@ -120,8 +123,17 @@ echo "edit $SRPATH/extrapackages"
# EDIT step 7 # 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 # cd in base directory

Loading…
Cancel
Save