-
Notifications
You must be signed in to change notification settings - Fork 47
/
Dockerfile
44 lines (32 loc) · 1.45 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# eg: docker build --target huawei-csi-driver --platform linux/amd64 --build-arg VERSION=${VER} -f Dockerfile -t huawei-csi:${VER} .
ARG VERSION
FROM busybox:stable-glibc as huawei-csi-driver
LABEL version="${VERSION}"
LABEL maintainers="Huawei eSDK CSI development team"
LABEL description="Kubernetes CSI Driver for Huawei Storage: $VERSION"
ARG binary=./huawei-csi
COPY ${binary} huawei-csi
ENTRYPOINT ["/huawei-csi"]
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/base:latest as storage-backend-controller
LABEL version="${VERSION}"
LABEL maintainers="Huawei eSDK CSI development team"
LABEL description="Storage Backend Controller"
ARG binary=./storage-backend-controller
COPY ${binary} storage-backend-controller
ENTRYPOINT ["/storage-backend-controller"]
FROM gcr.io/distroless/base:latest as storage-backend-sidecar
LABEL version="${VERSION}"
LABEL maintainers="Huawei eSDK CSI development team"
LABEL description="Storage Backend Sidecar"
ARG binary=./storage-backend-sidecar
COPY ${binary} storage-backend-sidecar
ENTRYPOINT ["/storage-backend-sidecar"]
FROM gcr.io/distroless/base:latest as huawei-csi-extender
LABEL version="${VERSION}"
LABEL maintainers="Huawei eSDK CSI development team"
LABEL description="Huawei CSI Extender"
ARG binary=./huawei-csi-extender
COPY ${binary} huawei-csi-extender
ENTRYPOINT ["/huawei-csi-extender"]