Running Kubitus commands
You can run Kubitus commands using one of the following methods:
- from source, recommended
- using an image, recommended in CI
From source, using hatch
Setup (once):
# clone repository
git clone https://gitlab.com/kubitus-project/python-kubitus.git
# go to repository dir
cd python-kubitus
# create virtualenv
virtualenv .venv
# load venv
. .venv/bin/activate # .venv/Scripts/activate on Windows
# install hatch
pip install hatch hatch-pip-compile
Go in up to date hatch environment:
# go to directory
cd .../python-kubitus
# update git repository
git pull --rebase --prune
# go in virtualenv
. .venv/bin/activate # .venv/Scripts/activate on Windows
# go in hatch env
hatch shell
Now you can run commands inside the environment:
kubitus-foobar --foobar-option
Depending on the command used, you'll need:
Using an image
tip
With Podman:
- use
alias docker=podman
before - ensure machine is root with
podman machine set --rootful
docker pull registry.gitlab.com/kubitus-project/python-kubitus/e2e
docker run \
--tty \
--interactive \
registry.gitlab.com/kubitus-project/python-kubitus/e2e \
kubitus-foobar \
--foobar-option
You can pass environment variables with --env
or -e
, for example:
export KUBITUS_GITLAB_PASSWORD=P@ss
docker run \
--tty \
--interactive \
--env KUBITUS_GITLAB_PASSWORD \
registry.gitlab.com/kubitus-project/python-kubitus/e2e \
kubitus-scaffold-app \
--author-name "$(git config user.name)" \
--author-email "$(git config user.email)" \
my-app