This is a docker compose virtual cluster for Kale dev/test scenarios where we want to simulate an HPC environment.
Containers
- Jupyter Notebook Server (using Jupyter docker scipy-notebook base image)
- Workers (scale up/down with docker-compose command)
- Torque (MOM daemons run on workers)
- SLURM
- Mongo (using docker mongo base image)
- Fireworks
# install requirements
pip install -r requirements.txt
# generate the ssh keys used for connecting machines in the cluster
python gen_sshkeys.py
# build the docker images
docker-compose build
# start the containers
docker-compose up -d
docker-compose down
# shut down before changing number of workers, will not be dynamically detected and handled by the cluster
docker-compose up --scale worker=4 -d
http://localhost:18888
docker-compose exec jupyter bash
export KALE_SRC=<full_path/to/your/git/clone>
docker-compose up -d
docker-compose exec jupyter bash
cd /opt/kale
pip install -e .
# OR after each code update
pip install . -U
docker-compose exec --index=1 worker bash