Skip to content

Commit

Permalink
Merge pull request #108 from qiangxuhui/main
Browse files Browse the repository at this point in the history
add cephcsi/cephcsi:v3.12.2
  • Loading branch information
qiangxuhui authored Dec 2, 2024
2 parents 0f8b1a4 + b5b19c6 commit 4274f64
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
38 changes: 38 additions & 0 deletions cephcsi/cephcsi/v3.12.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
29 changes: 29 additions & 0 deletions cephcsi/cephcsi/v3.12.2/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4274f64

Please sign in to comment.