Sal - sortable image tags to use with automation

Bug #2064918 reported by Jan Marchel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NebulOuS
Fix Committed
High
Jan Marchel

Bug Description

What is needed from activeeon to enable cd process to pull newest images and redeploy the latest version is to introduce sortable image tags.

For instance, in zuul we use pattern:
'^master-[a-f0-9]+-(?P<ts>[0-9]{14})$'

Example how to do it in github:
https://fluxcd.io/flux/guides/sortable-image-tags/

Tags: sal
Revision history for this message
Ankica Barisic (akki55) wrote :

Our latest image is always the same: activeeon/sal:dev

Meaning that will always pull the latest version available for NebulOuS

We will have just a dedicated image for release versions.

https://openproject.nebulouscloud.eu/projects/nebulous-collaboration-hub/wiki/sal-deployment-info#latest-image-httpshubdockercomractiveeonsal

I believe that in this case, you do not need sortable image tags as we have just two (dev and latest)

Changed in nebulous:
status: New → In Progress
Revision history for this message
Jan Marchel (janmarchel7bulls) wrote :

Flux does not support selecting the latest image by build time.
Instead, it relies on image tags (e.g. v1.0, v1.1, etc.) to identify different versions of the image.

So to let flux-cd "know" if image is updated we need to create images like:

dev-2021-01-28.133158

then flux-cd track your dockerhub and looking for latest image with pattern 'dev-(?P<ts>[0-9]+)'
can update sal deployment with new image when it is builded

Revision history for this message
Benguigui (mbenguig) wrote :

We finally set up a dedicated jenkins job, triggered after each new commit to the sal master branch, and triggering a build of sal before building a sam docker image and pushing it under a sepcific tag (dev-<date>). Waiting for any new update to sal (on activeeon side) before checking on your side if you managed to consider the new pushed image.

Ankica Barisic (akki55)
Changed in nebulous:
status: In Progress → Fix Committed
assignee: Ankica Barisic (akki55) → Benguigui (mbenguig)
Changed in nebulous:
assignee: Benguigui (mbenguig) → Jan Marchel (janmarchel7bulls)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.