odo
odo copied to clipboard
Build images on CI for e2e tests
/area testing
What needs to be added?
As a quality engineer, I want to add functionality for e2e tests to actually build images for odo deploy
and odo builld-image
on CI (prow / IBMCloud).
Why is this needed?
With this, we will be able to completely cover the e2e scenarios.
Related: https://github.com/redhat-developer/odo/pull/5778#discussion_r887828990
For IBM Cloud pipeline, I created a Dockerfile that contains podman and golang for executing test, to build Dockerfile present in test/example/nodejs
- when running the image with normal user (tester) fails with
Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:12 for /var/spool/mail): Check /etc/subuid and /etc/subgid if configured locally and run podman-system-migrate: lchown /var/spool/mail: invalid argument
- when running the same image with root user fails due to SELinux
error running container: error from /usr/bin/crun creating container for [/bin/sh -c npm install]: mount `proc` to `/proc`: Operation not permitted
For prow/OpenShift-ci
Created a test on prow building a simple alpine image with a podman image, link to test It fails with
potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured locally: lchown /etc/shadow: invalid argument