From 219e9f60c4c13b8ffc39cd30b9d0ba64588ccb49 Mon Sep 17 00:00:00 2001 From: Saylor Berman Date: Wed, 25 Oct 2017 19:53:48 +0000 Subject: [PATCH] Update microdnf packages during rhel build Problem: RedHat pushes security updates out and requires they be installed into all images in their catalog. Solution: Have microdnf update container packages to ensure that the latest security packages are installed when the RHEL image is built. --- build-tools/Dockerfile.rhel7.runtime | 1 + 1 file changed, 1 insertion(+) diff --git a/build-tools/Dockerfile.rhel7.runtime b/build-tools/Dockerfile.rhel7.runtime index b2156577b..36db9c2cc 100644 --- a/build-tools/Dockerfile.rhel7.runtime +++ b/build-tools/Dockerfile.rhel7.runtime @@ -26,6 +26,7 @@ COPY k8s-runtime-requirements.txt /tmp/k8s-runtime-requirements.txt RUN microdnf --enablerepo=rhel-7-server-rpms --enablerepo=rhel-7-server-optional-rpms \ --enablerepo=rhel-server-rhscl-7-rpms install --nodocs \ golang-github-cpuguy83-go-md2man python27-python-pip git && \ + microdnf update && \ go-md2man -in /tmp/help.md -out /help.1 && rm -f /tmp/help.md && \ source scl_source enable python27 && \ pip install --no-cache-dir --upgrade pip && \