forked from kubean-io/kubean
-
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.
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
- Loading branch information
Showing
10 changed files
with
68 additions
and
18 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
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,22 @@ | ||
FROM rockylinux:8 as os-kylin-v10sp3 | ||
ARG OS_VERSION=10 | ||
ARG BUILD_TOOLS="dnf-utils dnf-plugins-core createrepo" | ||
|
||
WORKDIR /kylin/${OS_VERSION}/sp3/os | ||
COPY build/os-packages/repos/kylin.sp3.repo /etc/yum.repos.d/ | ||
COPY build/os-packages/packages.yml . | ||
COPY --from=mikefarah/yq:4.30.8 /usr/bin/yq /usr/bin/yq | ||
RUN yq eval '.common[],.yum[],.kylin[]' packages.yml > packages.list | ||
|
||
RUN ARCH=$(uname -m) \ | ||
&& dnf install -y ${BUILD_TOOLS} \ | ||
&& dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo \ | ||
&& rm -rf /etc/yum.repos.d/Rocky* && dnf clean all && dnf makecache \ | ||
&& while read -r line; do \ | ||
dnf install -y --downloadonly --downloaddir=${ARCH} ${line} \ | ||
--nobest --allowerasing --setopt=install_weak_deps=False; \ | ||
done <<<"$(sort -u packages.list)" \ | ||
&& createrepo -d ${ARCH} | ||
|
||
FROM scratch | ||
COPY --from=os-kylin-v10sp3 /kylin /resources/kylin |
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 |
---|---|---|
|
@@ -50,7 +50,7 @@ rocky9: | |
- container-selinux | ||
- socat | ||
|
||
kylinv10: | ||
kylin: | ||
- container-selinux | ||
- socat | ||
- libselinux-devel | ||
|
File renamed without changes.
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,22 @@ | ||
###Kylin Linux Advanced Server 10 - os repo### | ||
|
||
[ks10-adv-os] | ||
name = Kylin Linux Advanced Server 10 - Os | ||
baseurl = https://update.cs2c.com.cn/NS/V10/V10SP3-2403/os/adv/lic/base/$basearch/ | ||
enabled = 1 | ||
sslverify=0 | ||
gpgcheck = 0 | ||
|
||
[ks10-adv-updates] | ||
name = Kylin Linux Advanced Server 10 - Updates | ||
baseurl = https://update.cs2c.com.cn/NS/V10/V10SP3-2403/os/adv/lic/updates/$basearch/ | ||
enabled = 1 | ||
sslverify=0 | ||
gpgcheck = 0 | ||
|
||
[ks10-adv-addons] | ||
name = Kylin Linux Advanced Server 10 - Addons | ||
baseurl = https://update.cs2c.com.cn/NS/V10/V10SP3-2403/os/adv/lic/addons/$basearch/ | ||
enabled = 0 | ||
sslverify=0 | ||
gpgcheck = 0 |
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