fix(ci): Docker build for issue 1837 (#2095)

* fix: Docker build for issue 1837

* fix: Linting
This commit is contained in:
Gabriel Nützi 2022-05-17 20:21:57 +02:00 committed by GitHub
parent 7b50fc8a57
commit 28432d3c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
FROM registry.access.redhat.com/ubi8/ubi:8.2 AS BASE FROM registry.access.redhat.com/ubi8/ubi:8.2 AS base
# Install ping # Install ping
RUN yum --disableplugin=subscription-manager install -y iputils RUN yum --disableplugin=subscription-manager install -y iputils
RUN setcap cap_net_raw+ep /bin/ping || exit 1
FROM BASE FROM base
RUN set -e && [ ! -z "$(getcap /bin/ping)" ] || exit 1 RUN [ ! -z "$(getcap /bin/ping)" ] || exit 1