Difference between revisions of "Slurm-web Installation"
Line 2: | Line 2: | ||
<p><code>__NOTOC__</code></p> | <p><code>__NOTOC__</code></p> | ||
<p>Back to [[Job Scheduler Slurm]]</p> | <p>Back to [[Job Scheduler Slurm]]</p> | ||
+ | <p> </p> | ||
+ | <div class="btn btn-primary"><em class="fa fa-long-arrow-left"> </em> [[Cursos]]</div> | ||
+ | <p> </p> | ||
+ | <div class="column clearfix"> | ||
+ | <div class="col-md-14"> | ||
+ | <div class="well well-midnight"> | ||
<h1>Slurm-web installation</h1> | <h1>Slurm-web installation</h1> | ||
<p>First, let's review the pre-requisites:</p> | <p>First, let's review the pre-requisites:</p> | ||
Line 42: | Line 48: | ||
<h3>To do:</h3> | <h3>To do:</h3> | ||
<p>Figure out a distribution independent way of installation. Since it only uses javascript and python, it should be possible to install via "sources" and paths.</p> | <p>Figure out a distribution independent way of installation. Since it only uses javascript and python, it should be possible to install via "sources" and paths.</p> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> |
Revision as of 17:05, 15 October 2015
Back to Job Scheduler Slurm
Slurm-web installation
First, let's review the pre-requisites:
- python
- pyslurm (python module)
- Flask (python module)
- clusterShell (python module)
- bootstrap (javascript library)
- jQuery
- Flot (jQuery extension for graph drawing)
all python modules and javascript libraries ought to be installed via apt packages for the slurm-web installation to work
Installing pre-requisites
Some previous packages:
Flask:
ClusterShell:
PySlurm:
The slurm-web package require pyslurm to be provided by a package called python-pyslurm. In the debian release where this procedure was tested that package didn't exist, so it had to be provided by a dummy package.
First, install the real pyslurm using pip
Test it using the examples shown in http://www.gingergeeks.co.uk/pyslurm/
Then create a dummy package using equivs. First, install equivs if your system doesn't have it:
Section: misc
Priority: optional
Standards-Version: 3.5.10
Package: python-pyslurm
Provides: python-pyslurm
Architecture: all
Description: Dummy package whichs only purpose is to provide pyslurm
Now, build the package:
And, install it:
Bootstrap, jQuery y Float
Now, bootstrap must be activated using:
Installation of the main package
First, it is required to get the latest snapshot of slurm-web from github:
Finally, install using dpkg, first the REST api package then the dashboard:
Configuration and customisation
In /usr/share/slurm-web/ there is a folder called static. Put a custon logo there. In /etc/slurm-web/ there is a file called racks.xml. That file must be edited. The example for GUANE is presented below, but a more general version is shown in the oficial documentation of slurm-web [2]
To do:
Figure out a distribution independent way of installation. Since it only uses javascript and python, it should be possible to install via "sources" and paths.