25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastian Rieger 59a1322d59 added timeout for alerts 7 년 전
api added some install documentation, added debug output for cron job 7 년 전
app GER->ENG; better error messages, README update 7 년 전
css Paket-Verwaltung; Alert-Z-Index behoben 7 년 전
fonts Initial commit 7 년 전
js Initial commit 7 년 전
partials GER->ENG; better error messages, README update 7 년 전
.gitignore GER->ENG; better error messages, README update 7 년 전
README.md readme fixes 7 년 전
bower.json Paket-Verwaltung; Alert-Z-Index behoben 7 년 전
composer.json Initial commit 7 년 전
composer.lock GER->ENG; better error messages, README update 7 년 전
index.html added timeout for alerts 7 년 전
package.json Paket-Verwaltung; Alert-Z-Index behoben 7 년 전

README.md

virl-scheduler

Setup instructions

  • make sure bower, composer and npm are available on command line

    • e.g. for Ubuntu 16.04 (VIRL 1.3.156 host):
      • "sudo apt-get install npm"
      • "sudo apt-get install nodejs-legacy"
      • "sudo npm install -g bower"
      • "sudo apt install libapache2-mod-php7.0 php7.0-sqlite3 php-xml php-curl"
      • "curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer"
  • run npm update in virl-scheduler root directory (only if you want to test in devmodes, apache is enough otherwise)

  • run bower update in virl-scheduler root directory, afterwards verify bower_components directory was created

  • run composer update in virl-scheduler root directory, afterwards verify vendor directory was created

  • configure apache to use virl-scheduler and index.html as webroot (make sure rewrite engine is on and .htaccess files are parsed by apache)

    • e.g. for Ubuntu 16.04 (VIRL 1.3.156 host):
      • copy virl-scheduler to your webroot: "sudo cp -a virl-scheduler /var/www/html/"
      • add "ProxyPass /virl-scheduler !" to the ProxyPass directives in /etc/apache2/sites-available/000-default.conf
      • allow .htaccess in virl-scheduler api directory, e.g., by appending the following lines to /etc/apache2/sites-available/000-default.conf
    <Directory /var/www/html/virl-scheduler/api>
       AllowOverride All
    </Directory>
  • give the Apache2 process write permissions to the sqlite3 db by running "sudo chown www-data:www-data api/db.sqlite3" and "sudo chown www-data:www-data api" in the virl-scheduler directory

  • run service apache2 restart

  • Change hostname for VIRLRestangular factory in app/topologyManager.js and api/cron.php to your VIRL-API-Hostname or IP-Address.

  • Add a cron job to run the scheduler, e.g., every five minutes and start planned simulations

  • Have fun using the scheduler to start VIRL simulations automatically, by accessing /virl-scheduler on your VIRL host. Login using a VIRL username and password, be sure to add a Session name (simulation name) and a VIRL topology (XML source of a topology file)

  • output of the cron job can be seen in /var/log/virl-scheduler-cron.log or by accessing http://VIRL-Host/virl-scheduler/api/cron.php manually in your browser