Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
38a5298
Issue #8772 ensure pv removed (#8777)
ix-rzi Mar 13, 2025
0d27d52
issue8720: log doesn't show pv name (#8771)
hu-keyu Mar 13, 2025
71863e0
Bump kind cli to v0.27.0 (#8699)
kaovilai Mar 20, 2025
1652e6b
Modify how the restore workflow using the resource name.
blackpiglet Mar 18, 2025
a98c559
Enable containerdv2 images
kaovilai Mar 20, 2025
d086cb2
Merge pull request #8797 from blackpiglet/update_vs_vsc_name
Lyndon-Li Mar 21, 2025
efad9a0
Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#8806)
dependabot[bot] Mar 24, 2025
76a5866
Merge pull request #8799 from kaovilai/kind-cv2-images
ywk253100 Mar 24, 2025
eaa5610
Document schedule skipImmediately (#8802)
kaovilai Mar 24, 2025
3c5ebba
issue 8803: use deterministic name to create backupRepository
Lyndon-Li Mar 24, 2025
883e3e4
Merge pull request #8808 from Lyndon-Li/issue-fix-8803
Lyndon-Li Mar 25, 2025
f1dcb7b
add third party annotation support for maintenance job
Lyndon-Li Mar 25, 2025
751d782
Merge pull request #8812 from Lyndon-Li/third-party-annotation-for-ma…
Lyndon-Li Mar 26, 2025
9676088
Bump the golang.org/x/net to v0.36.0 to fix Restic CVE.
blackpiglet Mar 27, 2025
9e9bb12
update readme and implemented design for 1.16
Lyndon-Li Mar 27, 2025
9241b61
Merge pull request #8820 from Lyndon-Li/1.16-read-me-and-implemented-…
ywk253100 Mar 27, 2025
7114144
add doc for upgrade to 1.16
Lyndon-Li Mar 27, 2025
438a6db
Merge pull request #8819 from blackpiglet/bump_restic_for_1.16
Lyndon-Li Mar 27, 2025
3569ccc
Merge pull request #8821 from Lyndon-Li/doc-upgrade-to-1.16
ywk253100 Mar 27, 2025
b9fd3e4
add 1.16 doc
Lyndon-Li Mar 27, 2025
bea46e3
Merge pull request #8822 from Lyndon-Li/1.16-doc
Lyndon-Li Mar 27, 2025
6a0c6d5
Fix the non data mover migration failure.
blackpiglet Mar 27, 2025
8580ef8
add 1.16 changelog
Lyndon-Li Mar 27, 2025
8f8884f
Merge pull request #8826 from blackpiglet/fix_migration_for_non_data_…
ywk253100 Mar 28, 2025
9d0493c
Bump the migration and upgrade E2E test source version.
blackpiglet Mar 28, 2025
07fd98e
Merge pull request #8824 from Lyndon-Li/1.16-change-log
blackpiglet Mar 28, 2025
6df1424
Merge pull request #8828 from blackpiglet/bump_e2e_upgrade_migration_…
ywk253100 Mar 28, 2025
6002d56
Align the E2E upgrade test's CLI and image version.
blackpiglet Mar 28, 2025
e5c7c7f
Merge pull request #8829 from blackpiglet/align_upgrade_cli_and_image…
Lyndon-Li Mar 31, 2025
406a730
pin velero image
Lyndon-Li Mar 31, 2025
3df026f
Merge pull request #8834 from Lyndon-Li/release-1.16
Lyndon-Li Mar 31, 2025
4bf1b9e
skip subresource in resource discovery (#6688)
reasonerjt Aug 23, 2023
216da72
fix issue 6753
Lyndon-Li Sep 5, 2023
dbcd82d
Update restore controller logic for restore deletion (#6761)
ywk253100 Sep 6, 2023
52c3c0e
Fix #6752: add namespace exclude check.
Sep 5, 2023
e7e6b18
add csi snapshot data movement doc
Lyndon-Li Sep 8, 2023
f3571ec
Modify changelogs for v1.12
allenxu404 Sep 19, 2023
bc9fd8f
issue 6786:always delete VSC regardless of the deletion policy
Lyndon-Li Sep 13, 2023
5c1f92f
issue: move plugin depdending podvolume functions to util pkg
Lyndon-Li Sep 26, 2023
f519000
issue 6880: set ParallelUploadAboveSize as MaxInt64
Lyndon-Li Sep 28, 2023
591866f
changelog
kaovilai Aug 28, 2023
45c2e65
Add support for block volumes (#6680) (#6897)
dzaninovic Sep 29, 2023
cf32f92
Replace the base image with paketobuildpacks image
ywk253100 Sep 27, 2023
a0c8f89
issue 6734: spread backup pod evenly
Lyndon-Li Oct 10, 2023
ae706d0
Add doc links for new features to release note
allenxu404 Sep 28, 2023
c9f64ab
fix issue 6647
Lyndon-Li Aug 28, 2023
db95df0
Perf improvements for existing resource restore
sseago Aug 21, 2023
6f675d1
issue #6807: Retry failed create when using generateName
sseago Sep 13, 2023
1436073
Import auth provider plugins
0x113 Oct 12, 2023
4af36c2
Add v1.12.1 changelog
allenxu404 Oct 20, 2023
72e7112
Make Windows build skip BlockMode code.
Oct 20, 2023
8957cf6
udmrepo use region specified in BSL when s3URL is empty
Lyndon-Li Oct 20, 2023
8b321ad
Change v1.12.1 changelog
allenxu404 Oct 20, 2023
db1746d
Dockerfile.ubi/travis local files
dymurray Jun 29, 2020
675fd60
Add BZ + Publish automation to repo (#82)
rayfordj Jan 28, 2021
b20810b
remove dependabot config from fork
sseago Nov 4, 2022
6c796bf
Create Makefile.prow
kaovilai Apr 5, 2023
4d1452f
set HOME in velero image for kopia, update controller-gen for CI (#280)
sseago Jul 25, 2023
94f1c5b
build velero-helper binary for datamover pod
sseago Aug 16, 2023
0acb289
restore: Use warning when Create IsAlreadyExist and Get error
kaovilai Oct 23, 2023
52c123b
kopia/repository/config/aws.go: Set session.Options profile from config
kaovilai Oct 20, 2023
36a168b
use ubi9-latest to build
sseago May 23, 2024
a1dcde6
OADP-4225: add tzdata to Dockerfile.ubi
sseago Jun 5, 2024
8c3c19f
fix: CI (#316)
Jun 17, 2024
f4fd3db
fix: ARM images (#332)
Aug 6, 2024
a18fca5
ubi: BUILDPLATFORM to build stage to enable cross compile. (#336)
kaovilai Aug 12, 2024
7f10bc1
OADP-4640: Downstream only to allow override kopia default algorithms…
mpryc Aug 16, 2024
13b8a3c
Downstream only: Rework of Makefile and incusion of lint
mpryc Sep 4, 2024
5f5ee1b
Downstream only - fix lint error in downtream change (#343)
mpryc Sep 5, 2024
5936aa8
run oadp-operator e2e test from the velero repo (#353)
weshayutin Oct 17, 2024
7d2d013
DS Owners
kaovilai Mar 13, 2025
7e685ee
updated controller-gen version
sseago Mar 13, 2025
33c8709
Include velero-restore-helper binary in velero image (#375)
openshift-cherrypick-robot Apr 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/bz-pr-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: BZ PR Creation

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
pull_request_target:
branches:
- "*"
types:
- opened
- edited
- reopened
- synchronize

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
bz-on-pr-create:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: docker://quay.io/konveyor/pr-bz-github-action
name: update bugzilla with posted pr
with:
org_repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
bz_product: "Migration Toolkit for Containers"
title: ${{ github.event.pull_request.title }}
github_token: ${{ secrets.GITHUB_TOKEN }}
bugzilla_token: ${{ secrets.BUGZILLA_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/e2e-test-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ jobs:
# grep -E "v[1-9]\.(2[5-9]|[3-9][0-9])" filters for v1.25 to v9.99
# and removes older patches of the same minor version
# awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}'
# TODO: replace "alpha|beta|1\.3[2-9]\.[1-9]|1\.31\.[6-9]|1\.30\.[1-9][0-9]|1\.29\.[1-9][4-9]" with "alpha|beta" when containerdv2 works https://github.com/vmware-tanzu/velero/issues/8648
run: |
echo "matrix={\
\"k8s\":$(wget -q -O - "https://hub.docker.com/v2/namespaces/kindest/repositories/node/tags?page_size=50" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep -v -E "alpha|beta|1\.3[2-9]\.[1-9]|1\.31\.[6-9]|1\.30\.[1-9][0-9]|1\.29\.[1-9][4-9]" | grep -E "v[1-9]\.(2[5-9]|[3-9][0-9])" | awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}' | sort -r | sed s/v//g | jq -R -c -s 'split("\n")[:-1]'),\
\"k8s\":$(wget -q -O - "https://hub.docker.com/v2/namespaces/kindest/repositories/node/tags?page_size=50" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep -v -E "alpha|beta" | grep -E "v[1-9]\.(2[5-9]|[3-9][0-9])" | awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}' | sort -r | sed s/v//g | jq -R -c -s 'split("\n")[:-1]'),\
\"labels\":[\
\"Basic && (ClusterResource || NodePort || StorageClass)\", \
\"ResourceFiltering && !Restic\", \
Expand All @@ -90,9 +89,10 @@ jobs:
- name: Install MinIO
run:
docker run -d --rm -p 9000:9000 -e "MINIO_ACCESS_KEY=minio" -e "MINIO_SECRET_KEY=minio123" -e "MINIO_DEFAULT_BUCKETS=bucket,additional-bucket" bitnami/minio:2021.6.17-debian-10-r7
- uses: engineerd/setup-kind@v0.5.0
- uses: engineerd/setup-kind@v0.6.2
with:
version: "v0.21.0"
skipClusterLogsExport: true
version: "v0.27.0"
image: "kindest/node:v${{ matrix.k8s }}"
- name: Fetch built CLI
id: cli-cache
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: BZ Merge

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
pull_request_target:
branches:
- "*"
types:
- closed


# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in pnamearallel
jobs:
# This workflow contains a single job called "build"
bz-on-pr-merge:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: docker://quay.io/konveyor/pr-merge-github-action
name: update bugzilla to modified
with:
bugzilla_token: ${{ secrets.BUGZILLA_TOKEN }}
org_repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
bz_product: "Migration Toolkit for Containers"
title: ${{ github.event.pull_request.title }}
github_token: ${{ secrets.GITHUB_TOKEN }}
branch_to_release: "release-1.4.4:1.4.4,release-1.4.3:1.4.3,konveyor-1.5.2:1.4.0,release-1.4.5:1.4.5,release-1.5.0:1.5.0,konveyor-dev:1.5.z"
base_branch: ${{ github.base_ref }}
61 changes: 61 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Publish Images

on:
push:
branches:
- konveyor-dev
- 'release-*.*.*'
- 'sprint-*'
tags:
- 'release-*.*.*'
workflow_dispatch:

env:
REGISTRY: quay.io
IMAGE_NAME: konveyor/velero
HELPER_IMAGE_NAME: konveyor/velero-restore-helper
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Build container image
run: docker build . --file Dockerfile.ubi --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.extract_branch.outputs.branch }}

- name: Build helper image
run: docker build . --file Dockerfile-velero-restore-helper.ubi --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.extract_branch.outputs.branch }}

- name: Log into registry
run: echo "${{ secrets.QUAY_PUBLISH_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_PUBLISH_ROBOT }} --password-stdin

- name: Push container image
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.extract_branch.outputs.branch }}

- name: Push helper image
run: docker push ${{ env.REGISTRY }}/${{ env.HELPER_IMAGE_NAME }}:${{ steps.extract_branch.outputs.branch }}

- name: Retag container image
run: docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.extract_branch.outputs.branch }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
if: ${{ github.ref == 'refs/heads/konveyor-dev' }}

- name: Retag helper image
run: docker tag ${{ env.REGISTRY }}/${{ env.HELPER_IMAGE_NAME }}:${{ steps.extract_branch.outputs.branch }} ${{ env.REGISTRY }}/${{ env.HELPER_IMAGE_NAME }}:latest
if: ${{ github.ref == 'refs/heads/konveyor-dev' }}

- name: push retagged container image
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
if: ${{ github.ref == 'refs/heads/konveyor-dev' }}

- name: push retagged helper image
run: docker push ${{ env.REGISTRY }}/${{ env.HELPER_IMAGE_NAME }}:latest
if: ${{ github.ref == 'refs/heads/konveyor-dev' }}
78 changes: 78 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
os: linux
services: docker
dist: focal
language: go
go: stable

env:
global:
- IMAGE1: quay.io/konveyor/velero
- IMAGE2: quay.io/konveyor/velero-restore-helper
- DEFAULT_BRANCH: konveyor-dev
- DOCKERFILE1: Dockerfile.ubi
- DOCKERFILE2: Dockerfile-velero-restore-helper.ubi
- DOCKER_CLI_EXPERIMENTAL: enabled
- GOPROXY: https://goproxy.io,direct

before_install:
- |
if [ "${TRAVIS_BRANCH}" == "${DEFAULT_BRANCH}" ]; then
export TAG=latest
else
export TAG="${TRAVIS_BRANCH}"
fi

# Builds routinely fail due to download failures inside alternate arch docker containers
# Here we are downloading outside the docker container and copying the deps in
# Also use -v for downloads/builds to stop no output failures from lxd env buffering.
before_script:
- go mod vendor -v
- git clone https://github.com/konveyor/restic -b ${TRAVIS_BRANCH}
- pushd restic; go mod vendor -v; popd
- sed -i 's|-mod=mod|-mod=vendor|g' ${DOCKERFILE1}
- sed -i 's|-mod=mod|-mod=vendor|g' ${DOCKERFILE2}
- sed -i 's|go build|go build -v|g' ${DOCKERFILE1}
- sed -i 's|go build|go build -v|g' ${DOCKERFILE2}
- sed -i 's|^RUN mkdir -p \$APP_ROOT/src/github.com/restic \\$|COPY --chown=1001 restic/ $APP_ROOT/src/github.com/restic/restic|g' ${DOCKERFILE1}
- sed -i 's|&& cd \$APP_ROOT/src/github.com/restic \\$||g' ${DOCKERFILE1}
- sed -i 's|&& git clone https://github.com/konveyor/restic -b .*$||g' ${DOCKERFILE1}

script:
- docker build -t ${IMAGE1}:${TAG}-${TRAVIS_ARCH} -f ${DOCKERFILE1} .
- docker build -t ${IMAGE2}:${TAG}-${TRAVIS_ARCH} -f ${DOCKERFILE2} .
- if [ -n "${QUAY_ROBOT}" ]; then docker login quay.io -u "${QUAY_ROBOT}" -p ${QUAY_TOKEN}; fi
- if [ -n "${QUAY_ROBOT}" ]; then docker push ${IMAGE1}:${TAG}-${TRAVIS_ARCH}; fi
- if [ -n "${QUAY_ROBOT}" ]; then docker push ${IMAGE2}:${TAG}-${TRAVIS_ARCH}; fi

jobs:
include:
- stage: build images
arch: ppc64le
- arch: s390x
- arch: arm64-graviton2
virt: vm
group: edge
- arch: amd64
- stage: push manifest
language: shell
arch: amd64
before_script: []
script:
- |
if [ -n "${QUAY_ROBOT}" ]; then
docker login quay.io -u "${QUAY_ROBOT}" -p ${QUAY_TOKEN}
docker manifest create \
${IMAGE1}:${TAG} \
${IMAGE1}:${TAG}-amd64 \
${IMAGE1}:${TAG}-ppc64le \
${IMAGE1}:${TAG}-s390x \
${IMAGE1}:${TAG}-aarch64
docker manifest create \
${IMAGE2}:${TAG} \
${IMAGE2}:${TAG}-amd64 \
${IMAGE2}:${TAG}-ppc64le \
${IMAGE2}:${TAG}-s390x \
${IMAGE2}:${TAG}-aarch64
docker manifest push ${IMAGE1}:${TAG}
docker manifest push ${IMAGE2}:${TAG}
fi
17 changes: 17 additions & 0 deletions DOWNSTREAM_OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
approvers:
- jwmatthews
- sseago
- jmontleon
- shawn-hurley
- rayfordj
- dymurray
- shubham-pampattiwar
- kaovilai
- eemcmullan
- savitharaghunathan
reviewers:
- sseago
- shubham-pampattiwar
- kaovilai
- eemcmullan
- savitharaghunathan
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Velero binary build section
FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS velero-builder
FROM --platform=$BUILDPLATFORM golang:1.23.7-bookworm AS velero-builder

ARG GOPROXY
ARG BIN
Expand Down Expand Up @@ -49,7 +49,7 @@ RUN mkdir -p /output/usr/bin && \
go clean -modcache -cache

# Restic binary build section
FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS restic-builder
FROM --platform=$BUILDPLATFORM golang:1.23.7-bookworm AS restic-builder

ARG GOPROXY
ARG BIN
Expand All @@ -73,7 +73,7 @@ RUN mkdir -p /output/usr/bin && \
go clean -modcache -cache

# Velero image packing section
FROM paketobuildpacks/run-jammy-tiny:latest
FROM paketobuildpacks/run-jammy-tiny:0.2.56

LABEL maintainer="Xun Jiang <[email protected]>"

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-Windows
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ARG OS_VERSION=1809

# Velero binary build section
FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS velero-builder
FROM --platform=$BUILDPLATFORM golang:1.23.7-bookworm AS velero-builder

ARG GOPROXY
ARG BIN
Expand Down
21 changes: 21 additions & 0 deletions Dockerfile-velero-restore-helper.ubi
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM --platform=$BUILDPLATFORM quay.io/konveyor/builder:ubi9-latest AS builder
ARG BUILDPLATFORM
ARG TARGETOS
ARG TARGETARCH

ENV GOPATH=$APP_ROOT

COPY . $APP_ROOT/src/github.com/vmware-tanzu/velero

WORKDIR $APP_ROOT/src/github.com/vmware-tanzu/velero

RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -mod=mod -ldflags '-extldflags "-static"' -o $APP_ROOT/src/velero-restore-helper github.com/vmware-tanzu/velero/cmd/velero-restore-helper

FROM registry.access.redhat.com/ubi9-minimal
RUN microdnf -y update && microdnf clean all

COPY --from=builder /opt/app-root/src/velero-restore-helper velero-restore-helper

USER 65534:65534

ENTRYPOINT [ "/velero-restore-helper" ]
44 changes: 44 additions & 0 deletions Dockerfile.ubi
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM --platform=$BUILDPLATFORM quay.io/konveyor/builder:ubi9-latest AS builder
ARG BUILDPLATFORM
ARG TARGETOS
ARG TARGETARCH

ENV GOPATH=$APP_ROOT

COPY . /go/src/github.com/vmware-tanzu/velero

WORKDIR /go/src/github.com/vmware-tanzu/velero

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
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
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

FROM --platform=$BUILDPLATFORM quay.io/konveyor/builder:ubi9-latest AS restic-builder
ARG BUILDPLATFORM
ARG TARGETOS
ARG TARGETARCH

ENV GOPATH=$APP_ROOT

RUN mkdir -p $APP_ROOT/src/github.com/restic \
&& cd $APP_ROOT/src/github.com/restic \
&& git clone https://github.com/konveyor/restic -b konveyor-dev

WORKDIR $APP_ROOT/src/github.com/restic/restic

RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -mod=mod -ldflags '-extldflags "-static"' -o $APP_ROOT/src/restic github.com/restic/restic/cmd/restic

FROM registry.access.redhat.com/ubi9-minimal
RUN microdnf -y update && microdnf -y install nmap-ncat && microdnf -y reinstall tzdata && microdnf clean all
COPY --from=builder /go/src/velero velero
COPY --from=builder /go/src/velero-restore-helper velero-restore-helper
COPY --from=builder /go/src/velero-helper velero-helper
COPY --from=restic-builder /opt/app-root/src/restic /usr/bin/restic

RUN mkdir -p /home/velero
RUN chmod -R 777 /home/velero

USER 65534:65534
ENV HOME=/home/velero

ENTRYPOINT ["/velero"]
Loading