Fix container test image

The test container is failing to execute ping on environments that
do not allow containers to run as root user (e.g. OpenShift 4.6).
This commit fixes the issue by ensuring iputils package from Alpine
is installed. Also, it upgrades packages versions.

Change-Id: I1f429110c888103734ce6657fea729529389eb1f
This commit is contained in:
Maysa Macedo 2020-10-09 16:37:26 +00:00
parent d8644b598a
commit f6deb3493d
4 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,7 @@
FROM scratch
FROM alpine:3.12
ADD rootfs.tar.xz /
RUN apk update && apk add iputils
RUN adduser -S kuryr
USER kuryr

View File

@ -1,4 +1,4 @@
FROM alpine:3.8
FROM alpine:3.12
RUN apk add --no-cache \
bash \
@ -13,7 +13,7 @@ RUN apk add --no-cache \
perl \
tzdata
ENV BUSYBOX_VERSION 1.29.0
ENV BUSYBOX_VERSION 1.31.1
RUN set -ex; \
tarball="busybox-${BUSYBOX_VERSION}.tar.bz2"; \

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash
# Names of latest versions of each package
export VERSION_MUSL=musl-1.1.18
export VERSION_MUSL=musl-1.2.0
export VERSION_ZLIB=zlib-1.2.11
export VERSION_LIBRESSL=libressl-2.6.3
export VERSION_CURL=curl-7.58.0
export VERSION_LIBRESSL=libressl-3.2.1
export VERSION_CURL=curl-7.72.0
# URLs to the source directories
export SOURCE_MUSL=http://www.musl-libc.org/releases/

Binary file not shown.