opendevstack / ods-pipeline

Alternative ODS CI/CD pipeline based on Tekton / OpenShift Pipelines
Apache License 2.0
13 stars 5 forks source link

Remove image wrappers #648

Closed michaelsauter closed 1 year ago

michaelsauter commented 1 year ago

With this change, images are not build in the cluster anymore. Instead, tasks use the prebuilt images on GitHub. In case of a private certificate, that is supplied via a secret volume to tasks.

Closes https://github.com/opendevstack/ods-pipeline/issues/621.

Tasks:

henrjk commented 1 year ago

Regarding the current state that python builds are using pypi and configuring nexus as a trusted host in:

https://github.com/opendevstack/ods-pipeline/blob/1ddfe84f60acdcf55020c234f765a05a54ff37f1/build/package/scripts/build-python.sh#L65-L66

To my recollection the reason this was introduced was ultimately needed due to work around cases where the pypi json api is needed. This surfaced as described in issue:

Recently PR Generate hashes for all available candidates #1723 was merged and the PR for https://github.com/jazzband/pip-tools/issues/1536#issuecomment-1321212364 which is a duplicate of 1412 mentioned is still in progress. Once that can be merged it should enable the python build to only use the configured nexus for python builds and remove the fallback of pypi.

We could consider to revisit this when the above PR 1723 gets addressed.

Just adding that I also submitted the related Dev - Nexus RepoNEXUS-22828 Support PyPI JSON API

michaelsauter commented 1 year ago

@kuebler @gerardcl I'll merge this now in order to push new images into the registry. With those, I'll do a manual test run in our cluster. I expect a few issues here and there so maybe there will be a follow-up PR. Therefore I would appreciate your review & feedback, maybe you detect some other things in the PR that needs attention.

In general, we could be a bit more cautious before merging this, but I'll just make it as easy and fast as possible for myself to give this a spin outside tests.

If manual testing works out fine, I would create a new release soon.