A wrapper to bonfire to run local repository on ephemeral cluster
- public repository in quay.io
- Install Openshift cli (get oc command here)
- log into VPN
- clone this(ephemeral) repository
- clone (koku repository if not already)
- Get config_yaml.template (see koku administrator)
- Add ephemeral to your path
export PATH=$PATH:~/github/ephemeral
- Set the required environment variables. (examples below)
export KOKU_HOME=~/github/koku export QUAY_REPO=quay.io/testuser/koku export AWS_ACCESS_KEY_ID_EPH="[YOUR AWS ACCESS KEY]" export AWS_SECRET_ACCESS_KEY_EPH="[YOUR SECRET ACCESS KEY]"
- Go to koku project directory
cd ${KOKU_HOME} pipenv install --dev pipenv shell "pre-commit install
- install Bonfire
pip install crc-bonfire
- Get your auth token.
HERE
- Save it to the following location(using your favorite editor or just echo it)
This command will overwrite(or create) the .eph_token file in your home directory echo [Your API Token] > ~/.eph_token
- log into the ephemeral environment
ephemeral login
- reserve a namespace (example of 48 hours (defaults to 24 hours if no hours are given)
ephemeral reserve 48h
- You can check your namespace
ephemeral list
- You can view the pods (you should not see any resources at this point)
ephemeral pods
- build image from local repository
ephemeral build-image
- deploy image built image
ephemeral deploy-image
- watch as pods come spin up(at this point you should start seeing koku specific pods, similar to running locally)
ephemeral pods
- port forward Koku
ephemeral port-forward-koku
- port forward Masu
ephemeral port-forward-masu
- port forward services
ephemeral port-forward-service
- port forward Koku
ephemeral release