2017-06-26 19:57:50 -04:00
|
|
|
Deckhand
|
|
|
|
========
|
|
|
|
A foundational python REST YAML processing engine providing data and secrets
|
|
|
|
management to other platform services.
|
2017-06-27 17:01:07 +01:00
|
|
|
|
2017-07-21 04:22:09 +01:00
|
|
|
To generate a configuration file automatically::
|
|
|
|
|
|
|
|
$ tox -e genconfig
|
|
|
|
|
|
|
|
Resulting deckhand.conf.sample file is output to
|
|
|
|
:path:etc/deckhand/deckhand.conf.sample
|
|
|
|
|
|
|
|
Copy the config file to a directory discoverably by ``oslo.conf``::
|
|
|
|
|
|
|
|
$ cp etc/deckhand/deckhand.conf.sample ~/deckhand.conf
|
|
|
|
|
|
|
|
To setup an in-memory database for testing:
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[database]
|
|
|
|
|
|
|
|
#
|
|
|
|
# From oslo.db
|
|
|
|
#
|
|
|
|
|
|
|
|
# The SQLAlchemy connection string to use to connect to the database.
|
|
|
|
# (string value)
|
|
|
|
connection = sqlite:///:memory:
|
|
|
|
|
|
|
|
To run locally in a development environment::
|
2017-06-27 17:01:07 +01:00
|
|
|
|
|
|
|
$ sudo pip install uwsgi
|
|
|
|
$ virtualenv -p python3 /var/tmp/deckhand
|
|
|
|
$ . /var/tmp/deckhand/bin/activate
|
2017-07-17 21:55:40 +01:00
|
|
|
$ sudo pip install .
|
2017-07-21 04:22:09 +01:00
|
|
|
$ sudo python setup.py install
|
2017-07-14 18:01:24 +01:00
|
|
|
$ uwsgi --http :9000 -w deckhand.cmd --callable deckhand_callable --enable-threads -L
|