Hypgen is a tool for generating ISMOP experiments.
- Clone hypgen git repository
git clone https://github.com/ismop/hypgen.git
. Server certificate needs to be disabled since dice's gitlab certificate signed by terena is not added to default Ubuntu trusted certs store. - Enter
hypgen
directory - Intall required gems
bundle install --deployment
- Install redis
sudo apt-get install redis-server
- install foreman
gem install foreman
- Create configuration file:
cp config.yml.example config.yml
end customize it:
editor config.yml
To start both web frontend and worker type:
foreman start
To start only web frontend type:
export HFLOW_PATH=/path/to/hyperflow/
To connect to non standard amqp set following env variable:
export AMQP_URL=amqp://IP:PORT
foreman start web
# or
# bundle exec puma
To start only worker type:
foreman start worker
# or
# bundle exec ./bin/hypgen-worker
Create new experiment
curl -k -H "Content-Type: application/json" -d '{"experiment":{"name": "exp name", "profile_ids":[1,2], "start_date": "2014-11-21T09:45:42.025Z
", "end_date": "2014-11-22T09:45:42.025Z"}}' -u username:password http://localhost:9292/api/experiments
Where username
and password
are eqals to values set in config.yml
As a result new experiment will be created, new workflow with required dependencies
will be started. Service will response 303
status on success with Location
header poining to created experiment.
bundle exec rspec
- Fork it (https://gitlab.dev.cyfronet.pl/ismop/hypgen.git)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request