-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathci-Dockerfile
More file actions
31 lines (24 loc) · 1.09 KB
/
ci-Dockerfile
File metadata and controls
31 lines (24 loc) · 1.09 KB
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
# This Dockerfile is used by PROW CI to run E2E tests of the repo
FROM quay.io/konveyor/builder AS builder
WORKDIR /go/src/github.com/openshift/oadp-operator
COPY ./ .
# Make analysis script executable for CI execution
RUN chmod +x tests/e2e/scripts/analyze_failures.sh
# Install kubectl (multi-arch)
ARG TARGETARCH
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${TARGETARCH}/kubectl" && \
chmod +x kubectl && \
mv kubectl /usr/local/bin/
# Install Claude CLI (native binary, no Node.js dependency)
# Installer places binary at ~/.local/bin/claude
RUN curl -fsSL https://claude.ai/install.sh | bash && \
ln -sf ~/.local/bin/claude /usr/local/bin/claude && \
claude --version
# Clone openshift/velero source code for failure analysis
# Uses oadp-dev branch to match OADP operator development
RUN git clone --depth 1 --branch oadp-dev \
https://github.com/openshift/velero.git \
/go/src/github.com/openshift/velero
RUN go mod download && \
mkdir -p $(go env GOCACHE) && \
chmod -R 777 ./ $(go env GOCACHE) $(go env GOPATH)