-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathDockerfile.podman
35 lines (29 loc) · 1023 Bytes
/
Dockerfile.podman
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
ARG GOIMAGE
# Stage to build the driver
FROM $GOIMAGE as builder
RUN mkdir -p /go/src
COPY csi-unity/ /go/src/csi-unity
WORKDIR /go/src/csi-unity
RUN mkdir -p bin
RUN go generate
RUN GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o bin/csi-unity
# Print the version
RUN go run core/semver/semver.go -f mk
# Dockerfile to build Unity CSI Driver
# Fetching the base ubi micro image with the require packges committed using buildah
FROM localhost/csiunity-ubimicro as driver
COPY --from=builder /go/src/csi-unity/bin/csi-unity /
COPY csi-unity/scripts/run.sh /
RUN chmod 777 /run.sh
ENTRYPOINT ["/run.sh"]
# final stage
FROM driver as final
LABEL vendor="Dell Technologies" \
maintainer="Dell Technologies" \
name="csi-unity" \
summary="CSI Driver for Dell Unity XT" \
description="CSI Driver for provisioning persistent storage from Dell Unity XT" \
release="1.13.0" \
version="2.13.0" \
license="Apache-2.0"
COPY csi-unity/licenses /licenses