zeus
3 years ago
14 changed files with 312 additions and 10 deletions
@ -1 +1 @@ |
|||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.b9ff8af2.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.b9ff8af2.js"></script></body></html> |
|||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.2cff4c14.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.2cff4c14.js"></script></body></html> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,76 @@ |
|||
#!/bin/sh |
|||
|
|||
ROLE="undefined" |
|||
MPI_MASTER_SERVICE_NAME="sec_masterservice" |
|||
MPI_WORKER_SERVICE_NAME="sec_workerservice" |
|||
HOSTNAMES="/etc/nethosts" |
|||
|
|||
####################### |
|||
# ARGUMENTS PARSER |
|||
|
|||
while [ "$1" != "" ]; |
|||
do |
|||
PARAM=$(echo "$1" | awk -F= '{print $1}') |
|||
VALUE=$(echo "$1" | awk -F= '{print $2}') |
|||
|
|||
case $PARAM in |
|||
role) |
|||
[ "$VALUE" ] && ROLE=$VALUE |
|||
;; |
|||
|
|||
sec_master_service_name) |
|||
[ "$VALUE" ] && MPI_MASTER_SERVICE_NAME=$VALUE |
|||
;; |
|||
|
|||
sec_worker_service_name) |
|||
[ "$VALUE" ] && MPI_WORKER_SERVICE_NAME=$VALUE |
|||
;; |
|||
*) |
|||
echo "ERROR: unknown parameter \"$PARAM\"" |
|||
exit 1 |
|||
;; |
|||
esac |
|||
shift |
|||
done |
|||
|
|||
|
|||
|
|||
cat > /etc/opt/service_names <<- EOF |
|||
MPI_MASTER_SERVICE_NAME=${MPI_MASTER_SERVICE_NAME} |
|||
MPI_WORKER_SERVICE_NAME=${MPI_WORKER_SERVICE_NAME} |
|||
EOF |
|||
|
|||
case $ROLE in |
|||
"masterservice") |
|||
|
|||
# Auto update default host file in background and dumb all output |
|||
#auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & |
|||
#tail -f /dev/null |
|||
ls / |
|||
#/root/start-nginx.sh |
|||
#python3 -m gns3server --port 8001 |
|||
# Start ssh server |
|||
#/usr/sbin/sshd -D |
|||
;; |
|||
|
|||
|
|||
"workerservice") |
|||
|
|||
# Start ssh server in background |
|||
#/usr/sbin/sshd -D & |
|||
|
|||
# Keep trying to connect to master node and stay there indefinitely so that master node can see |
|||
# the connected hosts that are ready for MPI work |
|||
#while sleep 1 |
|||
#do |
|||
# shellcheck disable=SC2086 |
|||
# ssh -T -o "StrictHostKeyChecking no" \ |
|||
# -i "${USER_HOME}/.ssh/id_rsa" \ |
|||
# ${USER}@${MPI_MASTER_SERVICE_NAME} \ |
|||
ls / |
|||
#tail -f /dev/null |
|||
#done |
|||
;; |
|||
*) |
|||
echo 'role argument only accepts "masterservice" or "workerservice"' |
|||
esac |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
|
|||
code-server --disable-update-check --bind-addr 0.0.0.0:8080 --user-data-dir /home --auth none & |
|||
firefox http://127.0.0.1:8080 |
@ -0,0 +1,49 @@ |
|||
#!/bin/bash |
|||
|
|||
|
|||
|
|||
SOURCE="${BASH_SOURCE[0]}" |
|||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink |
|||
TARGET="$(readlink "$SOURCE")" |
|||
if [[ $TARGET == /* ]]; then |
|||
SOURCE="$TARGET" |
|||
else |
|||
DIR="$( dirname "$SOURCE" )" |
|||
SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located |
|||
fi |
|||
done |
|||
|
|||
SRPATH="$( dirname "$SOURCE" )" |
|||
SFPATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )" |
|||
if [ "$SFPATH" != "$SRPATH" ]; then |
|||
RDIR=$SRPATH # relativ path directory |
|||
fi |
|||
|
|||
cwdir=$PWD |
|||
wdir=$SFPATH |
|||
|
|||
if [[ $# -eq 0 ]] ; then |
|||
echo 'no service' |
|||
exit 1 |
|||
fi |
|||
|
|||
|
|||
if [[ -z "$1" ]] ; then |
|||
echo 'no service' |
|||
exit 1 |
|||
fi |
|||
|
|||
service=$1 |
|||
servicebase=$(echo $service | cut -d'_' -f1) |
|||
|
|||
|
|||
#code-server --disable-update-check --bind-addr 0.0.0.0:8080 --user-data-dir /home --auth none & |
|||
#firefox http://127.0.0.1:8080 |
|||
xhost +local:docker |
|||
docker run --rm --volumes-from $service -e TZ=Europe/Athens -e DISPLAY=$DISPLAY -v $(pwd)/swarmlab_editor_service:/tmp/start -v /tmp/.X11-unix:/tmp/.X11-unix hub.swarmlab.io:5480/swarmlab-codeserver /bin/bash -c "/tmp/start" |
|||
#docker run --rm --volumes-from $service -e TZ=Europe/Athens -e DISPLAY=$DISPLAY --mount type=bind,source=$(pwd)/swarmlab_editor_service,target=/tmp/start -v /tmp/.X11-unix:/tmp/.X11-unix hub.swarmlab.io:5480/swarmlab-codeserver /bin/bash -c "/tmp/start" |
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,11 @@ |
|||
|
|||
|
|||
export const ApiConfigEDIT = [ |
|||
{ |
|||
"name": "microservice-xelatexthesis", |
|||
"automated": true, |
|||
"url": 'http', |
|||
"version": 0, |
|||
"port": 0 |
|||
} |
|||
]; |
Loading…
Reference in new issue