Skip to content

Commit

Permalink
deployment: Fix microdnf install inconsistencies
Browse files Browse the repository at this point in the history
The microdnf generates `/etc/yum.repos.d/redhat.repo` file which
contains redhat rpm repositories. It seems that the content of the file
isn't always the same for every possible environment, which might cause
problems with the installation.

This commit guarantee that the `microdnf install` command is consistent
across all environments simply by restraining microdnf to selected ubi
repos.

Signed-off-by: Lukas Krajicek <lkrajice@redhat.com>
  • Loading branch information
Lukas Krajicek committed Jul 21, 2021
1 parent 8d12890 commit c888a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN go build\
./cmd/clairctl

FROM registry.access.redhat.com/ubi8/ubi-minimal AS final
RUN microdnf install tar
RUN microdnf install --disablerepo=* --enablerepo=ubi-8-baseos --enablerepo=ubi-8-appstream tar
RUN curl -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 && chmod +x /usr/local/bin/dumb-init
ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "/bin/clair"]
VOLUME /config
Expand Down

0 comments on commit c888a3f

Please sign in to comment.