Skip to content

Commit

Permalink
add sig-storage/csi-node-driver-registrar:v2.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxuhui committed Nov 25, 2024
1 parent 469e5d5 commit 0b98c74
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sig-storage/csi-node-driver-registrar/2.11.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM lcr.loongnix.cn/library/debian:sid as downloader
RUN apt update -y && apt install wget -y
RUN wget -q -O /csi-node-driver-registrar https://github.com/Loongson-Cloud-Community/node-driver-registrar/releases/download/v2.11.1/csi-node-driver-registrar-v2.11.1-abi2.0
# 冒烟
RUN chmod +x /csi-node-driver-registrar && /csi-node-driver-registrar -version


FROM lcr.loongnix.cn/library/debian:sid
LABEL maintainers="Kubernetes Authors"
LABEL description="CSI External Attacher"
COPY --from=downloader /csi-node-driver-registrar /csi-node-driver-registrar
ENTRYPOINT ["/csi-node-driver-registrar"]
28 changes: 28 additions & 0 deletions sig-storage/csi-node-driver-registrar/2.11.1/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file is generated by the template.

REGISTRY ?=lcr.loongnix.cn
ORGANIZATION ?=sig-storage
REPOSITORY ?=csi-node-driver-registrar
TAG ?=2.11.1
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) \
-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 0b98c74

Please sign in to comment.