Australian-Imaging-Service/charts

[STORY] Add regular updates of latest pipelines versions by running "metapackage" image

Opened this issue · 0 comments

Description

As a pipelines deployment framework developer, I want pipelines published by the framework to be automatically pulled down to each XNAT instance within the AIS network on a regular interval (daily), so that AIS users always have access to the latest pipelines and updates.

To facilitate this functionality the pipelines team will publish a "metapackage" alongside the built pipeline Docker images for every release of the pipelines library, which will be versioned by a datestamp (e.g. :20220930). The most recent metapackage will also be tagged as ":latest" at ghcr.io/australian-imaging-service/pipelines-metapackage:latest.

A script is installed at the entrypoint of the metapackage that pulls all the pipeline images included in the release down to a specified XNAT instance via the instance's REST API.

The script requires 3 args to be passed to it:

  • URI of the XNAT instance to update
  • Username (with admin rights)
  • Password for username

These args can either be passed via the '--server', '--user' and '--password' CLI flags or through the 'XNAT_HOST', 'XNAT_USER', and 'XNAT_PASS' environment variables, respectively.

Acceptance Criteria

  • ghcr.io/australian-imaging-service/pipelines-metapackage:latest image is updated (pulled) on a daily schedule
  • ghcr.io/australian-imaging-service/pipelines-metapackage:latest image is run on a daily schedule