Skip to content

Commit

Permalink
add sig-storage csi-attacher
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxuhui committed Dec 5, 2024
1 parent bd27aa9 commit 8817d25
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sig-storage/csi-attacher/v4.6.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
28 changes: 28 additions & 0 deletions sig-storage/csi-attacher/v4.6.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-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

0 comments on commit 8817d25

Please sign in to comment.