Skip to content

Add support for docker buildx to liberty:devc #1589

Open
@edburns

Description

@edburns

My employer has a requirement that any public Dockerfile files we produce do not have FROM clauses that refer to images not produced or approved by my employer. This requirement is enforced with a security GitHub pipeline such as here. The output is similar to the following.

Container security analysis found 2 violations. This repo has one or more docker files having references to images from external
registries.

The Dockerfile in question has this FROM clause:

FROM icr.io/appcafe/open-liberty:kernel-java8-openj9-ubi

The recommended guidance is to use docker buildx build --build-context. This would allow us to change the Dockerfile FROM line to be:

FROM openliberty

And then invoke the build like this:

$  docker buildx build --build-context openliberty=docker-image://icr.io/appcafe/open-liberty:kernel-java8-openj9-ubi

There does not seem to be support for this in liberty:devc. There is support for a dockerBuildContext parameter but that's just a directory name.

Please consider this feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions