Need a way to pass ARGs to OCI image builds

Bug #1892351 reported by Tom Haddon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Thiago F. Pappacena
launchpad-buildd
Fix Released
High
Thiago F. Pappacena

Bug Description

Currently there's no way to pass arguments to OCI image builds. We use them extensively, and up til now have been populating them by running a Makefile target. This allows us to specify a default but override if we want to fairly easily. We could set defaults in the Dockerfile itself, but this would mean duplication with the Makefile.

Tags: feature lp-oci

Related branches

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
tags: added: feature lp-oci
Revision history for this message
Stuart Bishop (stub) wrote :

Programmatic arguments would be nice, allowing arguments such as:
 - formatted 'git describe' of the branch
 - formatted current timestamp

This allows us to continue attaching useful build-time labels, such as the standard ones defined at http://label-schema.org/rc1/

Changed in launchpad:
assignee: nobody → Thiago F. Pappacena (pappacena)
Revision history for this message
Kristian Glass (doismellburning) wrote :

@stub Agreed, but as a first pass I'd like us to simply treat them as opaque static strings - @mthaddon I trust this will be sufficient for your use-case?

Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Thiago F. Pappacena (pappacena)
Changed in launchpad:
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: Fix Committed → Fix Released
Changed in launchpad:
status: In Progress → Fix Committed
Tom Wardill (twom)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Barry Price (barryprice) wrote :

> Programmatic arguments would be nice, allowing arguments such as:
> - formatted 'git describe' of the branch
> - formatted current timestamp

> This allows us to continue attaching useful build-time labels, such as the standard ones defined at http://label-schema.org/rc1/

I've filed a bug requesting programmatic arguments here:

https://bugs.launchpad.net/launchpad/+bug/1902010

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.