To get started with development, you need to set up a Python environment with Poetry.
First of all, you need to launch the gateway locally:
docker compose up
Then from the root of the project, you can launch the CLI:
Inside your poetry shell, you can generate the config and launch the integration tests locally:
scwgw dev config
Updating the gateway
After making changes to the underlying containers, you can run the following to update your deployment:
scwgw dev update-containers
The settings for metrics collection can be configured using the following environment variables on your containers:
Time interval to scrape metrics.
Cockpit push metrics endpoint.
Cockpit metrics push token.
To release a new version of the CLI and gateway, we need to create an push a new tag. To do this:
# Bump the version
poetry version patch
# Commit and push
# Create and push the tag
This will trigger the Github Actions build that will build and push the container and the PyPI package.