|
|
@ -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 |
|
|
|