-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (30 loc) · 1.2 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
# eg: docker build --target xxx --platform linux/amd64 --build-arg VER=${VER} -f Dockerfile -t xxx:${VER} .
ARG VER
FROM busybox:stable-glibc as csm-prometheus-collector
LABEL version="${VER}"
LABEL maintainers="Huawei CSM development team"
LABEL description="Kubernetes CSM(prometheus) for Huawei Storage"
ARG binary=./csm-prometheus-collector
COPY ${binary} csm-prometheus-collector
ENTRYPOINT ["/csm-prometheus-collector"]
FROM busybox:stable-glibc as csm-cmi
LABEL version="${VER}"
LABEL maintainers="Huawei CSM development team"
LABEL description="Kubernetes CSM(cmi) for Huawei Storage"
ARG binary=./csm-cmi
COPY ${binary} csm-cmi
ENTRYPOINT ["/csm-cmi"]
FROM busybox:stable-glibc as csm-topo-service
LABEL version="${VER}"
LABEL maintainers="Huawei CSM development team"
LABEL description="Kubernetes CSM(topo) for Huawei Storage"
ARG binary=./csm-topo-service
COPY ${binary} csm-topo-service
ENTRYPOINT ["/csm-topo-service"]
FROM busybox:stable-glibc as csm-liveness-probe
LABEL version="${VER}"
LABEL maintainers="Huawei CSM development team"
LABEL description="Kubernetes CSM(livenessprobe) for Huawei Storage"
ARG binary=./csm-liveness-probe
COPY ${binary} csm-liveness-probe
ENTRYPOINT ["/csm-liveness-probe"]