From b5b19c641ebd122474a6fbaa5e22fcb583ef740b Mon Sep 17 00:00:00 2001 From: qiangxuhui Date: Mon, 2 Dec 2024 17:35:00 +0800 Subject: [PATCH] add cephcsi/cephcsi:v3.12.2 --- cephcsi/cephcsi/v3.12.2/Dockerfile | 38 ++++++++++++++++++++++++++++++ cephcsi/cephcsi/v3.12.2/Makefile | 29 +++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 cephcsi/cephcsi/v3.12.2/Dockerfile create mode 100644 cephcsi/cephcsi/v3.12.2/Makefile diff --git a/cephcsi/cephcsi/v3.12.2/Dockerfile b/cephcsi/cephcsi/v3.12.2/Dockerfile new file mode 100644 index 0000000..1e9b385 --- /dev/null +++ b/cephcsi/cephcsi/v3.12.2/Dockerfile @@ -0,0 +1,38 @@ +#-- Downloader +FROM lcr.loongnix.cn/library/debian:sid as downloader +RUN apt update -y && apt install wget -y +RUN wget -q -O /cephcsi https://github.com/Loongson-Cloud-Community/ceph-csi/releases/download/v3.12.2/cephcsi-v3.12.2-abi2.0 +RUN chmod +x /cephcsi + +#-- Update base +FROM lcr.loongnix.cn/ceph/ceph:18.2.2 as updated_base + +# TODO: remove the following cmd, when issues +# https://github.com/ceph/ceph-container/issues/2034 +# https://github.com/ceph/ceph-container/issues/2141 are fixed. +RUN dnf config-manager --disable \ + tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true + +RUN mkdir /etc/selinux || true && touch /etc/selinux/config + +RUN dnf -y update --nobest \ + && dnf -y install nfs-utils \ + && dnf clean all \ + && rm -rf /var/cache/yum + + +#-- Final container +FROM updated_base + +LABEL maintainers="Ceph-CSI Authors" \ + version=${CSI_IMAGE_VERSION} \ + architecture=${GO_ARCH} \ + description="Ceph-CSI Plugin" + +COPY --from=downloader /cephcsi /usr/local/bin/cephcsi + +# verify that all dynamically linked libraries are available +RUN [ $(ldd /usr/local/bin/cephcsi | grep -c '=> not found') = '0' ] +RUN /usr/local/bin/cephcsi -version + +ENTRYPOINT ["/usr/local/bin/cephcsi"] diff --git a/cephcsi/cephcsi/v3.12.2/Makefile b/cephcsi/cephcsi/v3.12.2/Makefile new file mode 100644 index 0000000..52e3745 --- /dev/null +++ b/cephcsi/cephcsi/v3.12.2/Makefile @@ -0,0 +1,29 @@ +# This file is generated by the template. + +REGISTRY ?=lcr.loongnix.cn +ORGANIZATION ?=cephcsi +REPOSITORY ?=cephcsi +TAG ?=v3.12.2 +LATEST ?=true + +IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG) +LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest + +default: image + +image: + docker build \ + --build-arg http_proxy=$(http_proxy) \ + --build-arg https_proxy=$(https_proxy) \ + --build-arg NO_PROXY="localhost,127.0.0.1,10.130.0.6,mirrors.openeuler.org" \ + -t $(IMAGE) \ + . + +push: + docker push $(IMAGE) + #latest image + @if [ $(LATEST) = "true" ]; \ + then \ + docker tag $(IMAGE) $(LATEST_IMAGE); \ + docker push $(LATEST_IMAGE); \ + fi