tmforum-oda / oda-canvas

Apache License 2.0
17 stars 48 forks source link

operator: pipeline required to create official operator images #233

Open LesterThomas opened 2 months ago

LesterThomas commented 2 months ago

Description

At the moment, the process to create the Canvas operators in the https://hub.docker.com/u/tmforumodacanvas repository is manual. This issue is to create an automated pipeline to generate these images (this will also reduce the number of people with permissions to create images).

ferenc-hechler commented 2 months ago

Some remarks:

1) I thinkit is a gread idea to have an automation. So, there is no need for granting permissions to individuals.

2) For the two images affected by the DependentAPI PR we have a GitLab pipeline for automated build, which was also merged into the main branch:

https://github.com/tmforum-oda/oda-canvas/blob/master/TEMP/build/.gitlab-ci.yml

As a good practice we could keep the two environment variables

This helps to identify which image really is deployed. :-)

3) About the versioning I have no clear view, how to maintain this, because we have one repository for all dockerfiles. So, the normal process to create a TAG for a release version will not be possible. Maybe a discussion topic for Wednesdays Tech Meeting

LesterThomas commented 2 months ago

One further comment: When we build images, we should build for Arm as well as x86 architectures. The docker command for this is:

docker buildx build  --platform "linux/amd64,linux/arm64" -t <name>:<tag> <path>