Skip to content

Commit

Permalink
fix: upgrade UBI image - fixes multiple CVEs
Browse files Browse the repository at this point in the history
Ref: LOG-18396
  • Loading branch information
dkhokhlov committed Oct 11, 2023
1 parent f1a4756 commit 5c44414
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1.0-experimental

ARG UBI_MAJOR_VERSION=8
ARG UBI_MINOR_VERSION=5
ARG UBI_MINOR_VERSION=8
ARG UBI_VERSION=${UBI_MAJOR_VERSION}.${UBI_MINOR_VERSION}

ARG TARGET_ARCH=x86_64
Expand Down
4 changes: 2 additions & 2 deletions scripts/ubi8-sysroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ ubi_packages="systemd-libs systemd-devel glibc glibc-devel gcc libstdc++-devel l

apt-get update 1>&2 && apt-get install --no-install-recommends -y dnf 1>&2
dnf install --releasever="${UBI_MAJOR_VERSION}" --forcearch="${TARGET_ARCH}" \
--installroot="$SYSROOT_PATH/" --repo="ubi-${UBI_MAJOR_VERSION}-baseos" \
--repo="ubi-${UBI_MAJOR_VERSION}-appstream" --repo="ubi-${UBI_MAJOR_VERSION}-codeready-builder" -y \
--installroot="$SYSROOT_PATH/" --repo="ubi-${UBI_MAJOR_VERSION}-baseos-rpms" \
--repo="ubi-${UBI_MAJOR_VERSION}-appstream-rpms" --repo="ubi-${UBI_MAJOR_VERSION}-codeready-builder-rpms" -y \
$ubi_packages 1>&2

# Linker file to hint where the linker can find libgcc_s as the packaged symlink is broken \
Expand Down

0 comments on commit 5c44414

Please sign in to comment.