Skip to content

Commit 387c18b

Browse files
sseagooadp-maintainers
authored andcommitted
Include velero-restore-helper binary in velero image (openshift#374)
1 parent ee5c191 commit 387c18b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile.ubi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ COPY . /go/src/github.com/vmware-tanzu/velero
1010
WORKDIR /go/src/github.com/vmware-tanzu/velero
1111

1212
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -mod=mod -ldflags '-extldflags "-static" -X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=konveyor-dev' -o /go/src/velero github.com/vmware-tanzu/velero/cmd/velero
13+
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -mod=mod -ldflags '-extldflags "-static"' -o /go/src/velero-restore-helper github.com/vmware-tanzu/velero/cmd/velero-restore-helper
1314
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -mod=mod -ldflags '-extldflags "-static"' -o /go/src/velero-helper github.com/vmware-tanzu/velero/cmd/velero-helper
1415

1516
FROM --platform=$BUILDPLATFORM quay.io/konveyor/builder:ubi9-latest AS restic-builder
@@ -30,6 +31,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -mod=
3031
FROM registry.access.redhat.com/ubi9-minimal
3132
RUN microdnf -y update && microdnf -y install nmap-ncat && microdnf -y reinstall tzdata && microdnf clean all
3233
COPY --from=builder /go/src/velero velero
34+
COPY --from=builder /go/src/velero-restore-helper velero-restore-helper
3335
COPY --from=builder /go/src/velero-helper velero-helper
3436
COPY --from=restic-builder /opt/app-root/src/restic /usr/bin/restic
3537

0 commit comments

Comments
 (0)