The Ulissi group has a moderate Docker swarm of desktops/GPUs available for data science and ML development. This repository is an example of how you can use this Docker swarm for daily development. It has two helpful services:
but you are welcome to try other things!
Dockerfile
ARG USERNAME=* in Dockerfile to your Portainer usernamejupyter/Dockerfile the same way you modified the root Dockerfile.
start-notebook.sh script. You may also need to modify/remove the configurable settings in that script, depending on how you configure the image.default_authorized_keys
ssh-keygen -t rsa -b 4096, then copy the line in your ~/.ssh/id_rsa.pub to replace the line in default_authorized_keysdocker-compose.yml file by replacing the corresponding contents on each line
services.ssh.image argument should point to the image you built from the root Dockerfile in this repository.services.ssh.ports.published argument should be populated with the ssh port number Zack reserved for you.services.jupyter.image argument should point to the image you built from the Jupyter Dockerfile in this repository.services.jupyter.ports.published argument should be populated with the Jupyter port number Zack reserved for you.docker-compose.yml into the web editor, then deploy!That's it!
You have both an ssh account and a Jupyter notebook that should stay alive.
They will both have access to your home folder on the host you specified in the services.*.deploy.placement.constraints.node.hostname argument of the docker-compose.yml file.
The home folder will be mounted to the /home/volume folder in the Docker container, which means that any files you save outside of this /home/volume folder will be deleted if you close the container/stack!
ssh -p $YOUR_SSH_PORT [email protected]http://laikapack.cheme.cmu.edu:$YOUR_JUPYTER_PORT
The Jupyter server may ask you for a token.
You can find the token by doing the following:
stack_name_jupyter.Tasks section, find the running Jupyter task. Then clik on the "logs" button under the "Action" column.stdout of the container, which should include the Jupyter token.Content type
Image
Digest
Size
3.9 GB
Last updated
about 6 years ago
docker pull ktran9891/env_ulissi