1.7 KiB
1.7 KiB
Development
Docker
To use the docker containter to develop:
- Fork the Repository
- Clone the forked repo
cd armada
export repo="https://github.com/<forked-repo>/armada.git"
export branch="<branch>"
docker build . -t quay.io/attcomdev/armada:latest --build-arg REPO=$repo --build-arg VERSION=$branch
docker run -d --name armada -v ~/.kube/config:/root/.kube/config -v $(pwd)/examples/:/examples quay.io/attcomdev/armada:latest
Note
The first build will take a little while. Afterwards the it will much faster
- EZPZ :)
Virtualenv
To use VirtualEnv we will need to add some extra steps
- virtualenv venv
- source ./venv/bin/activate
- sudo sh ./tools/libgit2.sh
Test that it worked with:
python -c 'import pygit2'
From the directory of the forked repository:
pip install -r requirements.txt
pip install -r test-requirements.txt
Your env is now ready to go! :)
Note
this will install latest libgit2 library so you have to make sure you install the same version library with pip ( current version: 0.25.0 )
Kubernetes
To test your armada fixes/features you will need to set-up a Kubernetes cluster.
We recommend:
Note
When using Halcyon it will not generate a config file. Run the following commands to create one: get_k8s_creds.sh