Skip to content

loicbaron/myslice2

Repository files navigation

MySlice Web Frontend

MySlice Web Frontend python module, for more information: https://myslice.info

Requirement

Install MySliceLib Module: http://gitlab.noc.onelab.eu/onelab/myslicelib

Install

    git clone [email protected]:onelab/myslice.git
    sudo pip3.5 install --upgrade pip
    sudo pip3 install -r requirements.txt
    sudo python3.5 setup.py develop
    cd ~/myslice/myslice/web/static/js/src
    sudo npm install
    webpack

Configure

	sudo mkdir /etc/myslice
	sudo cp myslice/dist/config/* /etc/myslice/
	sudo rename 's/.dist$//' /etc/myslice/*.dist
  • Setup Endpoints: Registry and AMs
    myslicelibsetup.endpoints = [
            Endpoint(url="https://sfa3.planet-lab.eu:12346",type="AM", timeout=30, name="PLE"),
            Endpoint(url="https://localhost:6080",type="Reg", timeout=10, name="OneLab Registry"),
    ]
  • Setup Admin account
    path = "/var/myslice/"
    pkey = path + "myslice.pkey"
    hrn = "onelab.myslice"
    email = "[email protected]"
    cert = path + "myslice.cert"
  • Setup the RethinkDB connection
    class db(object):
        host = "localhost"
        port = 28015
        name = "myslice"
  • Setup the email server connection
    class email(object):
        dirpath = '/myslice/myslice/web/templates/email'
        theme = 'onelab'
        domain = 'onelan.eu'
        host = 'smtp.gmail.com'
        port = 587
        ssl = True
        user = '[email protected]'
        password = 'pass'
  • Setup the Web server URL and Port
    class web(object):
        url = 'http://<hostname>'
        port = '8111'

Run MySlice

    ~/myslice/myslice/bin/myslice-web
    ~/myslice/myslice/bin/myslice-server
    ~/myslice/myslice/bin/myslice-monitor

RethinkDB Admin

    http://<hostname>:8080/

MySlice Web

    http://<hostname>:8111/