OCI recipes do not allow setting a build path
Bug #1888257 reported by
Kristian Glass
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Tom Wardill |
Bug Description
I have a git repository containing multiple self-contained directories, each with an imported Dockerfile and associated data (e.g. `/traefik/
It seems like Launchpad always uses the repository root as the OCI build PATH, which requires me to modify the upstream Dockerfiles to change the source path of COPYed resources (e.g. `COPY entrypoint.sh /` in /traefik/Dockerfile needs to become `COPY traefik/
I would like to instead be able to configure the build path of the OCI recipe to be a subdirectory of the repository root, and thus minimise divergence from upstream
Related branches
~twom/launchpad:oci-build-path-ui
Merged
into
launchpad:master
- Ioana Lasc (community): Approve
-
Diff: 235 lines (+41/-7)9 files modifiedlib/lp/oci/browser/ocirecipe.py (+6/-1)
lib/lp/oci/interfaces/ocirecipe.py (+8/-0)
lib/lp/oci/model/ocirecipe.py (+8/-3)
lib/lp/oci/model/ocirecipebuildbehaviour.py (+1/-0)
lib/lp/oci/templates/ocirecipe-index.pt (+5/-0)
lib/lp/oci/templates/ocirecipe-new.pt (+3/-0)
lib/lp/oci/tests/test_ocirecipe.py (+4/-2)
lib/lp/oci/tests/test_ocirecipebuildbehaviour.py (+2/-0)
lib/lp/testing/factory.py (+4/-1)
~twom/launchpad-buildd:oci-build-path
- Colin Watson (community): Approve
-
Diff: 196 lines (+94/-10)4 files modifieddebian/changelog (+1/-0)
lpbuildd/oci.py (+3/-0)
lpbuildd/target/build_oci.py (+13/-5)
lpbuildd/target/tests/test_build_oci.py (+77/-5)
~twom/launchpad:oci-build-path
- Kristian Glass (community): Approve
- Thiago F. Pappacena (community): Approve
-
Diff: 159 lines (+27/-6)6 files modifiedlib/lp/oci/interfaces/ocirecipe.py (+8/-0)
lib/lp/oci/model/ocirecipe.py (+8/-3)
lib/lp/oci/model/ocirecipebuildbehaviour.py (+1/-0)
lib/lp/oci/tests/test_ocirecipe.py (+4/-2)
lib/lp/oci/tests/test_ocirecipebuildbehaviour.py (+2/-0)
lib/lp/testing/factory.py (+4/-1)
~twom/launchpad:db-oci-recipe-build-path
Merged
into
launchpad:db-devel
- William Grant: Approve (db)
- Colin Watson (community): Approve (db)
-
Diff: 16 lines (+10/-0)1 file modifieddatabase/schema/patch-2210-20-0.sql (+10/-0)
Changed in launchpad: | |
importance: | Undecided → Wishlist |
tags: | added: feature lp-oci |
Changed in launchpad: | |
importance: | Wishlist → High |
status: | New → Triaged |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Tom Wardill (twom) |
Changed in launchpad: | |
status: | In Progress → Fix Committed |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.