From 8817d25f78f40d4de55a9579a8cbe399ae83bfb1 Mon Sep 17 00:00:00 2001 From: qiangxuhui Date: Thu, 5 Dec 2024 16:08:34 +0800 Subject: [PATCH] add sig-storage csi-attacher --- sig-storage/csi-attacher/v4.6.1/Dockerfile | 14 +++++++++++ sig-storage/csi-attacher/v4.6.1/Makefile | 28 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 sig-storage/csi-attacher/v4.6.1/Dockerfile create mode 100644 sig-storage/csi-attacher/v4.6.1/Makefile diff --git a/sig-storage/csi-attacher/v4.6.1/Dockerfile b/sig-storage/csi-attacher/v4.6.1/Dockerfile new file mode 100644 index 0000000..00afd12 --- /dev/null +++ b/sig-storage/csi-attacher/v4.6.1/Dockerfile @@ -0,0 +1,14 @@ +FROM lcr.loongnix.cn/library/debian:sid as downloader + +RUN apt update -y && apt install wget -y +RUN wget -q -O /csi-attacher https://github.com/Loongson-Cloud-Community/external-attacher/releases/download/v4.6.1/csi-attacher-v4.6.1-abi2.0 && chmod +x /csi-attacher +RUN /csi-attacher -version + +FROM lcr.loongnix.cn/distroless/static-debian10:latest +LABEL maintainers="Kubernetes Authors" +LABEL description="CSI External Attacher" + +COPY --from=downloader /csi-attacher /csi-attacher + + +ENTRYPOINT ["/csi-attacher"] diff --git a/sig-storage/csi-attacher/v4.6.1/Makefile b/sig-storage/csi-attacher/v4.6.1/Makefile new file mode 100644 index 0000000..131bef1 --- /dev/null +++ b/sig-storage/csi-attacher/v4.6.1/Makefile @@ -0,0 +1,28 @@ +# This file is generated by the template. + +REGISTRY ?=lcr.loongnix.cn +ORGANIZATION ?=sig-storage +REPOSITORY ?=csi-attacher +TAG ?=v4.6.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