Contains a Python JSON webservice for a SIM-CITY webserver. It uses the API from SIM-CITY client to create simulation tasks, start new pilot jobs on computing infrastructure and query the status of the simulations and jobs.
Following the SIM-CITY client API, a ./config.ini file should be created containing the configuration of the CouchDB service that will keep the administration of the tasks and jobs, and the type of simulations that can be served. The config.ini.dist file can be used as a template for this.
Install by calling make install and serve on port 9090 using make serve.
With docker, services are compartmentalized and installations standardized. First, configuration files need to be put in place. First run
./configure-docker.py
- Osmium: edit
docker/osmium/joblauncher.yml. See also docker-osmium repository. - SIM-CITY webservice: edit
docker/webservice/config.ini.
To run the docker components, run
. couchdb.env
make docker-run
The web-service is accessible from port 9090, the CouchDB server on port 5984.
Before running again, run
make docker-clean