Browse Source

add jupyter

master
zeus 4 years ago
parent
commit
c15c97148b
  1. 3
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  2. 21
      install/usr/share/swarmlab.io/sec/swarmlab-sec

3
install/usr/share/swarmlab.io/sec/sec_bootstrap

@ -47,7 +47,8 @@ case $ROLE in
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 &
# Start ssh server # Start ssh server
/usr/sbin/sshd -D #/usr/sbin/sshd -D
start-notebook.sh
;; ;;

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

@ -272,27 +272,6 @@ services:
- $Wdir/project:/home/docker/project - $Wdir/project:/home/docker/project
- /tmp/work:/tmp/work - /tmp/work:/tmp/work
workerservice:
image: $IMAGE_NAME
privileged: true
environment:
- NODENAME=${NODENAME}
- NODENETWORK=${NODENETWORK}
- DISPLAY=\${DISPLAY}
- JUPYTER_ENABLE_LAB='yes'
restart: unless-stopped
cap_add:
- NET_ADMIN
user: root
entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
ports:
- "\${SSH_PORT}:8888"
networks:
- ${HYBRID_NETWORK}
volumes:
- $Wdir/project:/home/docker/project
- /tmp/work:/tmp/work
networks: networks:
${HYBRID_NETWORK}: ${HYBRID_NETWORK}:

Loading…
Cancel
Save