UCIS4EQ provides the services needed for dealing with an urgent computing scenario.
This software solution was developed at BSC as part of the ChEESE-COE project.
It was later modified as part of the eFlows4HPC projects.
Authors: Josep de la Puente, Juan Esteban Rodríguez, Marisol Monterrubio,
Marta Pienkowska
Contributors: Jorge Ejarque, Cedric Bhihe
Contacts:
[email protected]
[email protected]
[email protected]
This program is free software: you can redistribute it and/or modify it under
the terms of the BSD 3-clause License , aka BSD NEW License, aka BSD REVISED
License, aka MODIFIED BSD License as published by the Regents of the
University of California.
This program is distributed as is, in the hope that it will be useful,
but WITHOUT ANY WARRANTY, without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MODIFIED BSD LICENSE for more details.
You should have received a copy of the MODIFIED BSD LICENSE
along with this program. If not, see <https://www.gnu.org/licenses/>.
-
Docker (Community Edition)
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh sudo usermod -aG docker $USER
Find more installation options in: https://docs.docker.com/install/linux/docker-ce/ubuntu/
-
Docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
Find more installation options in: https://docs.docker.com/compose/install/
Because the Docker images are registered on the GitLab repository, first step is login on it
docker login registry.gitlab.bsc.es
For obtaining docker-composer.yml, setup and test files, create a working directory, move there and then:
bash -c "$(curl --request GET --header 'PRIVATE-TOKEN: ER9nSBQo8xsiczs47pAn' 'https://gitlab.bsc.es/api/v4/projects/2703/repository/files/install.sh/raw?ref=migration-fixes')"
Follow the instructions
From working directory:
Open a terminal and be sure that both .env and docker-compose.yml are in the such directory. Then, run:
> SSH_PRV="$(cat ~/.ssh/<my_id_rsa>)" docker-compose up
IMPORTANT: During first deployment, some images will be created for adding user's ssh credentials.
curl -X POST -H 'Content-Type: application/json' -d @data/SAMOS_EQ_Event_DEMO.json http://127.0.0.1:5001/PyCOMPSsWM
Open a browser and go to http://127.0.0.1:8050/
Independently from the above, this repo contains a quickstart tutorial in PDF format to guide you step by step through basic installation and launch on the BSC infrastructure.
To build the services (no push, must be done manually):
docker-compose -f docker-compose-build.yml build
To debug just code (no changes in dependencies):
docker-compose -f docker-compose-debug.yml up
If you want to start only a service (DAL is started because of dependencies):
docker-compose -f docker-compose-debug.yml up <service>
To Run with PyCOMPSs in HPC Workflow run with this
HPC_RUN_PYCOMPSS=True docker-compose -f docker-compose-debug.yml up simulation workflowmanager slipgen microservices listener
By default the docker-compose files are prepared to forward the SSH Agent environment. Some OS distribution SSH agent do not store any SSH key. Check with command 'ssh-add -L' if there is any key added in the agent. If no keys are loaded load the key to access the supercomputer with the follwong command:
ssh-add <path/to/private-key>