s2i-thoth
Experimental Thoth container images:
- quay.io/thoth-station/s2i-thoth-ubi8-py38
- quay.io/thoth-station/s2i-thoth-ubi8-py36
- quay.io/thoth-station/s2i-thoth-f31-py37
- quay.io/thoth-station/s2i-thoth-f32-py38
Artifacts needed to build s2i-thoth-* container images.
These container images are complaint with OpenShift's s2i build process to build Python applications. They extend the functionality of base s2i Python container images so that applications using these container images benefit from Thoth's recommendations.
Configuration options
Configuration options for Thoth's s2i image:
THOTH_ADVISE
- always use the recommended stack by Thoth (even if the lock file is present in the repo)THOTH_CONFIG_CHECK
- verify values stated in the configuration file match the build environmentTHOTH_PROVENANCE_CHECK
- verify stack provenance - the provenance check is triggered only if the lock file is not comming from Thoth's recommendation engine (otherwise the stack has already verified provenance)THOTH_ASSEMBLE_DEBUG
- run s2i's assemble script in verbose modeTHOTH_DRY_RUN
- submit stack to Thoth's recommendation engine but do NOT use the recommended lock file, use the lock file present in the repo insteadTHOTH_FROM_MASTER
- Use Thamos from git instead of a PyPI release - handy if the released Thamos has a bug which was fixed in the master branchTHOTH_HOST
- Thoth's host to reach out to for recommendations (defaults to prod deployment at khemenu.thoth-station.ninja)THOTH_ERROR_FALLBACK
- fallback to the lock file present in the repository if the submitted Thoth analysis fails
See also configuration options for Thoth's client present in Thamos repository.
Building container images
Container images are automatically built in quay.io when pushed to master branch.
Updating and releasing new container images
This repository is managed by Kebechet so updates of all the Python packages it uses are performed automatically. If you wish to release a new version of Thoth's s2i, you can do so by performing:
find -iname Dockerfile -exec sed -i 's/THOTH_S2I_VERSION=0.23.0/THOTH_S2I_VERSION=0.24.0/g' {} \; && git commit -m "Version 0.24.0" . && git tag v0.24.0
A subsequent pull request to this repository is needed.
Importing image into OpenShift's registry
oc import-image quay.io/thoth-station/s2i-thoth-ubi8-py36 -n <your-namespace>
oc import-image quay.io/thoth-station/s2i-thoth-f31-py37 -n <your-namespace>