-
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.
- Loading branch information
1 parent
bd27aa9
commit 8817d25
Showing
2 changed files
with
42 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,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"] |
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,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 |