bb26131ce2
- enhanced logging - created base structure - updated docs - PasteDeploy auth - Oslo Policy Closes #107 Change-Id: I805863c57f17fcfb26dac5d03efb165e4be49a4e
84 lines
1.6 KiB
ReStructuredText
84 lines
1.6 KiB
ReStructuredText
***********
|
|
Development
|
|
***********
|
|
|
|
Docker
|
|
######
|
|
|
|
To use the docker containter to develop:
|
|
|
|
1. Fork the `Repository <http://github.com/att-comdev/armada>`_
|
|
2. Clone the forked repo
|
|
3. Change to the directory of the cloned repo
|
|
|
|
.. code-block:: bash
|
|
|
|
git clone http://github.com/att-comdev/armada.git
|
|
cd armada
|
|
|
|
pip install tox
|
|
|
|
tox -e genconfig
|
|
tox -e genpolicy
|
|
|
|
docker build . -t armada/latest
|
|
|
|
docker run -d --name armada -v ~/.kube/config:/armada/.kube/config -v $(pwd)/etc:/armada/etc armada:local
|
|
|
|
.. note::
|
|
|
|
The first build will take a little while. Afterwords, it will build much
|
|
faster.
|
|
|
|
Virtualenv
|
|
##########
|
|
|
|
How to set up armada in your local using virtualenv:
|
|
|
|
.. note::
|
|
|
|
Suggest that you use a Ubuntu 16.04 VM
|
|
|
|
From the directory of the forked repository:
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
git clone http://github.com/att-comdev/armada.git && cd armada
|
|
virtualenv venv
|
|
|
|
pip install -r requirements.txt -r test-requirements.txt
|
|
|
|
pip install .
|
|
|
|
# Testing your armada code
|
|
# The tox command will execute lint, bandit, cover
|
|
tox
|
|
|
|
# For targeted test
|
|
tox -e pep8
|
|
tox -e bandit
|
|
tox -e cover
|
|
|
|
|
|
# policy and config are used in order to use and configure Armada API
|
|
tox -e genconfig
|
|
tox -e genpolicy
|
|
|
|
|
|
.. note::
|
|
|
|
If building from source, Armada requires that git be installed on
|
|
the system.
|
|
|
|
Kubernetes
|
|
##########
|
|
|
|
To test your armada fixes/features you will need to set-up a Kubernetes cluster.
|
|
|
|
We recommend:
|
|
|
|
`Kubeadm <https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/>`_
|
|
|
|
`Kubeadm-AIO <https://github.com/openstack/openstack-helm/tree/master/tools/kubeadm-aio>`_
|