2015-10-28 20:25:23 +00:00
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
The stable version can be installed in three ways.
|
|
|
|
|
|
|
|
Through PIP
|
|
|
|
***********
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
pip install --user senpy
|
|
|
|
|
|
|
|
|
|
|
|
Alternatively, you can use the development version:
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
git clone git@github.com:gsi-upm/senpy
|
|
|
|
cd senpy
|
|
|
|
pip install --user .
|
|
|
|
|
|
|
|
If you want to install senpy globally, use sudo instead of the ``--user`` flag.
|
|
|
|
|
|
|
|
Docker Image
|
|
|
|
************
|
2017-03-28 10:34:39 +00:00
|
|
|
Build the image or use the pre-built one:
|
|
|
|
|
2017-04-03 16:18:35 +00:00
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
docker run -ti -p 5000:5000 gsiupm/senpy --host 0.0.0.0 --default-plugins
|
2017-03-28 10:34:39 +00:00
|
|
|
|
2017-04-03 16:18:35 +00:00
|
|
|
To add custom plugins, use a docker volume:
|
2017-03-28 10:34:39 +00:00
|
|
|
|
2017-04-03 16:18:35 +00:00
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
docker run -ti -p 5000:5000 -v <PATH OF PLUGINS>:/plugins gsiupm/senpy --host 0.0.0.0 --default-plugins -f /plugins
|
2017-03-28 10:34:39 +00:00
|
|
|
|
2017-04-03 16:18:35 +00:00
|
|
|
Alias
|
|
|
|
.....
|
|
|
|
|
|
|
|
If you are using the docker approach regularly, it is advisable to use a script or an alias to simplify your executions:
|
|
|
|
|
|
|
|
.. code:: bash
|
2017-03-28 10:34:39 +00:00
|
|
|
|
2017-04-03 16:18:35 +00:00
|
|
|
alias senpy='docker run --rm -ti -p 5000:5000 -v $PWD:/senpy-plugins gsiupm/senpy --default-plugins'
|
|
|
|
|
|
|
|
|
|
|
|
Python 2
|
|
|
|
........
|
|
|
|
|
|
|
|
There is a Senpy version for python2 too:
|
2017-03-28 10:34:39 +00:00
|
|
|
|
2017-04-03 16:18:35 +00:00
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
docker run -ti -p 5000:5000 gsiupm/senpy:python2.7 --host 0.0.0.0 --default-plugins
|
|
|
|
|
2015-10-28 20:25:23 +00:00
|
|
|
|