Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Dockerfile for a basic emulation of a computer with Torque scheduler and SSH

License

Notifications You must be signed in to change notification settings

giovannipizzi/torquessh_base-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE

This is an old package that used to be in the GitHub aiidateam organization, and is not maintained anymore.

Image for running simulations

This image has a basic environment with possibility to access via ssh to the user 'app', and a torque scheduler enabled.

How to start

You can run the image with the script ./start_container.sh.

Some notes (already present in the start_container.sh script):

  • you need to run the container with the --privileged option, because the mom component of torque needs to lock the memory

  • if you bind port 80 to the container to a port on the host, you can then ssh to the container with username app. To be able to ssh without password, run the container passing the environment variable AUTHORIZED_KEY, whose value should be the public SSH key you want to be able to connect with. When starting, this key will be added to the ~/.ssh/authorized_keys file of the 'app' user in the container (but only if the file is empty). If the file is not empty, nothing will be added (but you can always connect to the container with docker exec -it DOCKER_CONTAINER_ID bash, then, change the /home/app/.ssh/authorized_keys file.

What does the container contains

Beside the typical basic ubuntu system, and a SSH server, it contains:

  • the torque scheduler (you can e.g. submit with the qsub command), see the files in the folder submission_test for some examples

Dockerfile repository

https://github.com/aiidateam/torquessh_base-docker.

About

Dockerfile for a basic emulation of a computer with Torque scheduler and SSH

Resources

License

Stars

Watchers

Forks

Packages

No packages published