forked from kubernetes-sigs/vsphere-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: run tdnf upgrade directly in images
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
ARG GOLANG_IMAGE=golang:1.21 | ||
|
||
# This build arg allows the specification of a custom base image. | ||
ARG BASE_IMAGE=gcr.io/cloud-provider-vsphere/extra/csi-driver-base:latest | ||
ARG BASE_IMAGE=photon:4.0 | ||
|
||
################################################################################ | ||
## BUILD STAGE ## | ||
|
@@ -50,10 +50,12 @@ FROM ${BASE_IMAGE} | |
# This build arg is the git commit to embed in the CSI binary | ||
ARG GIT_COMMIT | ||
|
||
# This label will be overridden from driver base image | ||
LABEL git_commit=$GIT_COMMIT | ||
LABEL "maintainers"="Divyen Patel <[email protected]>, Sandeep Pissay Srinivasa Rao <[email protected]>, Xing Yang <[email protected]>" | ||
|
||
# Upgrade installed packages to pick up CVE fixes | ||
RUN tdnf -y upgrade && tdnf clean all | ||
|
||
# install nfs-utils, util-linux and e2fsprogs | ||
# nfs-utils : The nfs-utils package contains simple nfs client service. | ||
# util-linux : Utilities for handling file systems, consoles, partitions. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
ARG GOLANG_IMAGE=golang:1.21 | ||
|
||
# This build arg allows the specification of a custom base image. | ||
ARG BASE_IMAGE=gcr.io/cloud-provider-vsphere/extra/csi-driver-base:latest | ||
ARG BASE_IMAGE=photon:4.0 | ||
|
||
################################################################################ | ||
## BUILD STAGE ## | ||
|
@@ -51,8 +51,11 @@ FROM ${BASE_IMAGE} | |
# This build arg is the git commit to embed in the CSI binary | ||
ARG GIT_COMMIT | ||
|
||
# This label will be overridden from driver base image | ||
LABEL git_commit=$GIT_COMMIT | ||
LABEL "maintainers"="Divyen Patel <[email protected]>, Sandeep Pissay Srinivasa Rao <[email protected]>, Xing Yang <[email protected]>" | ||
|
||
# Upgrade installed packages to pick up CVE fixes | ||
RUN tdnf -y upgrade && tdnf clean all | ||
|
||
COPY --from=builder /build/vsphere-syncer /bin/vsphere-syncer | ||
|
||
|