The kubernaut-agent
is easy and straightforward to build.
There are two processes for development builds depending on the desired artifact. The first process is designed for quick development is a standard Python source install. The second is a slightly more involved process that creates a standalone binary.
-
Create a new Python 3.6 virtualenv at the root of the project.
virtualenv venv --python python3`
-
Activate the virtualenv
Bash
source venv/bin/activate
Fish
source venv/bin/activate.fish
- Run
pip install -e .
- Test it works by executing
kubernaut-agent --help
Single executable builds are platform dependent. In the below instructions the following variables need to be determined by the user.
Variable | Description |
---|---|
$COMMIT | The short git commit |
$OS | The operating system (darwin or linux ) |
$PLATFORM | The CPU platform (almost certainly x86_64 ) |
- Run
./build.sh
- Test it works by executing
build/dist/$COMMIT/$OS/$PLATFORM/kubernaut-agent --help
Follow the single executable build process.