-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1354 from tu1h/support_rocky8
Support Rocky Linux 8
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG OS_NAME=rocky | ||
|
||
FROM rockylinux:8 as os-rocky8 | ||
ARG OS_NAME | ||
ARG OS_VERSION=8 | ||
ARG BUILD_TOOLS="yum-utils createrepo epel-release wget modulemd-tools findutils" | ||
|
||
WORKDIR /$OS_NAME/$OS_VERSION/os | ||
COPY build/os-packages/packages.yml . | ||
COPY build/os-packages/repos/centos8.repo /etc/yum.repos.d/ | ||
COPY --from=mikefarah/yq:4.30.8 /usr/bin/yq /usr/bin/yq | ||
RUN yq eval '.common[],.yum[],.rocky8[]' packages.yml > packages.list | ||
|
||
RUN ARCH=$(uname -m) \ | ||
&& dnf install -q -y ${BUILD_TOOLS} \ | ||
&& yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo \ | ||
&& dnf makecache \ | ||
&& sort -u packages.list | xargs repotrack --destdir ${ARCH} \ | ||
&& createrepo_c ${ARCH} \ | ||
&& repo2module -s stable ${ARCH} ${ARCH}/modules.yaml \ | ||
&& modifyrepo_c --mdtype=modules ${ARCH}/modules.yaml ${ARCH}/repodata | ||
|
||
FROM scratch | ||
ARG OS_NAME | ||
COPY --from=os-rocky8 /$OS_NAME /resources/$OS_NAME |
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
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