Skip to content

Commit

Permalink
FROM scratch will fail when koji_parent_build is provided
Browse files Browse the repository at this point in the history
* STONEBLD-1070

Signed-off-by: Robert Cerven <rcerven@redhat.com>
  • Loading branch information
rcerven committed Mar 30, 2023
1 parent ef93e3b commit fd14aee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/users.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,11 @@ image instead. The same source registry restrictions apply. For multi-stage
builds, the ``koji_parent_build`` parameter will only override the final
``FROM`` instruction.

If the ``FROM`` instruction on last stage of the Dockerfile is set to either
``scratch`` or ``koji/image-build``, the ``koji_parent_build`` parameter will
be ignored.
If the ``FROM`` instruction on last stage of the Dockerfile is set
to ``scratch`` build will fail if you specify the ``koji_parent_build`` parameter.

If the ``FROM`` instruction on last stage of the Dockerfile is set
to ``koji/image-build`` the ``koji_parent_build`` parameter will be ignored.

This behavior requires koji integration to be enabled in the OSBS environment.

Expand Down

0 comments on commit fd14aee

Please sign in to comment.