-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the RedHat9 builder image to use pinned CMake
- Loading branch information
Showing
1 changed file
with
10 additions
and
3 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
FROM quay.io/rockylinux/rockylinux:9 | ||
ARG CMAKE_VERSION="3.22.3" | ||
|
||
LABEL org.opencontainers.image.authors="[email protected],[email protected]" | ||
FROM rockylinux:9 | ||
|
||
ARG CMAKE_VERSION | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
USER root | ||
WORKDIR /root/ | ||
|
@@ -28,7 +32,10 @@ RUN dnf install -y \ | |
git \ | ||
&& dnf clean all | ||
|
||
|
||
RUN curl -sSfL https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}-linux-$(uname -m).sh -o cmake.sh \ | ||
&& (bash cmake.sh --skip-license --prefix=/usr/local) \ | ||
&& rm cmake.sh | ||
|
||
WORKDIR /github/workspace | ||
COPY ./entrypoint.sh /root/ | ||
ENTRYPOINT [ "/root/entrypoint.sh" ] |