-
Notifications
You must be signed in to change notification settings - Fork 9
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 #108 from qiangxuhui/main
add cephcsi/cephcsi:v3.12.2
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 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
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"] |
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,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 |