Skip to content

Commit

Permalink
Added tar and libselinux-python3 package
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeng committed Mar 17, 2024
1 parent 3b43696 commit c3d9b17
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
36 changes: 20 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
jobs:
build-branches-amd64:
environment:
KUBE_VERSION: '1.29.2'
KUBE_VERSION: '1.29.3'
DOCKER_VERSION: '25.0.3-1'
CRIO_MAJOR_VERSION: '1.29'
CRIO_VERSION: '1.29.2'
CRIO_VERSION: '1.29.3'
machine: true
steps:
- checkout
Expand All @@ -14,13 +14,14 @@ jobs:
sudo mkdir ${PWD}/rpms
docker run -t --rm -v ${PWD}/rpms:/rpms -v ${PWD}/kubernetes.repo:/root/kubernetes.repo -v ${PWD}/cri-o.repo:/root/cri-o.repo \
-v ${PWD}/CentOS8.repo:/root/CentOS8.repo -v ${PWD}/docker-ce.repo:/root/docker-ce.repo openeuler/openeuler:22.03-lts-sp3 bash -c \
"mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
"yum remove -y tar && \
mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
yum install -y createrepo && \
mkdir -p /rpms/base/centos8 && \
mkdir -p /rpms/k8s/centos8 && \
mkdir -p /rpms/crio/centos8 && \
mkdir -p /rpms/docker/centos8 && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar libselinux-python3 chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
cp /root/kubernetes.repo /etc/yum.repos.d/ && \
yum -y install --downloadonly --downloaddir=/rpms/k8s/centos8 kubectl-${KUBE_VERSION} kubelet-${KUBE_VERSION} kubeadm-${KUBE_VERSION} && \
rm -f /etc/yum.repos.d/*.repo && cp /root/cri-o.repo /root/default-repo/*.repo /etc/yum.repos.d/ && \
Expand All @@ -38,10 +39,10 @@ jobs:
build-tags-amd64:
environment:
KUBE_VERSION: '1.29.2'
KUBE_VERSION: '1.29.3'
DOCKER_VERSION: '25.0.3-1'
CRIO_MAJOR_VERSION: '1.29'
CRIO_VERSION: '1.29.2'
CRIO_VERSION: '1.29.3'
machine: true
steps:
- checkout
Expand All @@ -51,13 +52,14 @@ jobs:
sudo mkdir ${PWD}/rpms
docker run -t --rm -v ${PWD}/rpms:/rpms -v ${PWD}/kubernetes.repo:/root/kubernetes.repo -v ${PWD}/cri-o.repo:/root/cri-o.repo \
-v ${PWD}/CentOS8.repo:/root/CentOS8.repo -v ${PWD}/docker-ce.repo:/root/docker-ce.repo openeuler/openeuler:22.03-lts-sp3 bash -c \
"mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
"yum remove -y tar && \
mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
yum install -y createrepo && \
mkdir -p /rpms/base/centos8 && \
mkdir -p /rpms/k8s/centos8 && \
mkdir -p /rpms/crio/centos8 && \
mkdir -p /rpms/docker/centos8 && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar libselinux-python3 chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
cp /root/kubernetes.repo /etc/yum.repos.d/ && \
yum -y install --downloadonly --downloaddir=/rpms/k8s/centos8 kubectl-${KUBE_VERSION} kubelet-${KUBE_VERSION} kubeadm-${KUBE_VERSION} && \
rm -f /etc/yum.repos.d/*.repo && cp /root/cri-o.repo /root/default-repo/*.repo /etc/yum.repos.d/ && \
Expand All @@ -75,10 +77,10 @@ jobs:
build-branches-aarch64:
environment:
KUBE_VERSION: '1.29.2'
KUBE_VERSION: '1.29.3'
DOCKER_VERSION: '25.0.3-1'
CRIO_MAJOR_VERSION: '1.29'
CRIO_VERSION: '1.29.2'
CRIO_VERSION: '1.29.3'
machine: true
resource_class: arm.medium
steps:
Expand All @@ -89,13 +91,14 @@ jobs:
sudo mkdir ${PWD}/rpms
docker run -t --rm -v ${PWD}/rpms:/rpms -v ${PWD}/kubernetes.repo:/root/kubernetes.repo -v ${PWD}/cri-o.repo:/root/cri-o.repo \
-v ${PWD}/CentOS8.repo:/root/CentOS8.repo -v ${PWD}/docker-ce.repo:/root/docker-ce.repo openeuler/openeuler:22.03-lts-sp3 bash -c \
"mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
"yum remove -y tar && \
mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
yum install -y createrepo && \
mkdir -p /rpms/base/centos8 && \
mkdir -p /rpms/k8s/centos8 && \
mkdir -p /rpms/crio/centos8 && \
mkdir -p /rpms/docker/centos8 && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar libselinux-python3 chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
cp /root/kubernetes.repo /etc/yum.repos.d/ && \
yum -y install --downloadonly --downloaddir=/rpms/k8s/centos8 kubectl-${KUBE_VERSION} kubelet-${KUBE_VERSION} kubeadm-${KUBE_VERSION} && \
rm -f /etc/yum.repos.d/*.repo && cp /root/cri-o.repo /root/default-repo/*.repo /etc/yum.repos.d/ && \
Expand All @@ -113,10 +116,10 @@ jobs:
build-tags-aarch64:
environment:
KUBE_VERSION: '1.29.2'
KUBE_VERSION: '1.29.3'
DOCKER_VERSION: '25.0.3-1'
CRIO_MAJOR_VERSION: '1.29'
CRIO_VERSION: '1.29.2'
CRIO_VERSION: '1.29.3'
machine: true
resource_class: arm.medium
steps:
Expand All @@ -127,13 +130,14 @@ jobs:
sudo mkdir ${PWD}/rpms
docker run -t --rm -v ${PWD}/rpms:/rpms -v ${PWD}/kubernetes.repo:/root/kubernetes.repo -v ${PWD}/cri-o.repo:/root/cri-o.repo \
-v ${PWD}/CentOS8.repo:/root/CentOS8.repo -v ${PWD}/docker-ce.repo:/root/docker-ce.repo openeuler/openeuler:22.03-lts-sp3 bash -c \
"mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
"yum remove -y tar && \
mkdir /root/default-repo && cp /etc/yum.repos.d/*.repo /root/default-repo/ && \
yum install -y createrepo && \
mkdir -p /rpms/base/centos8 && \
mkdir -p /rpms/k8s/centos8 && \
mkdir -p /rpms/crio/centos8 && \
mkdir -p /rpms/docker/centos8 && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
yum -y install --downloadonly --downloaddir=/rpms/base/centos8 tar libselinux-python3 chrony audit rsync jq git tcpdump nc bind-utils net-tools ipvsadm graphviz nfs-utils && \
cp /root/kubernetes.repo /etc/yum.repos.d/ && \
yum -y install --downloadonly --downloaddir=/rpms/k8s/centos8 kubectl-${KUBE_VERSION} kubelet-${KUBE_VERSION} kubeadm-${KUBE_VERSION} && \
rm -f /etc/yum.repos.d/*.repo && cp /root/cri-o.repo /root/default-repo/*.repo /etc/yum.repos.d/ && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Wise2C Yum Repo for Docker/K8S/Ceph/NFS installation

YUM Repo服务器安装好docker,直接运行命令:

docker run -d -p 2009:2009 --name=yum-repo wise2c/yum-repo:v1.29.2-openeuler-2203
docker run -d -p 2009:2009 --name=yum-repo wise2c/yum-repo:v1.29.3-openeuler-2203

在需要安装docker/k8s/ceph/nfs的其它主机上:

Expand Down

0 comments on commit c3d9b17

Please sign in to comment.