Skip to content

Commit 9f01806

Browse files
committed
ci change to avoid interactive prompt
1 parent 4ba8f18 commit 9f01806

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

build/ci-Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@ WORKDIR /go/src/github.com/openshift/oadp-operator
55

66
COPY ./ .
77

8+
# Install kubectl
9+
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
10+
chmod +x kubectl && \
11+
mv kubectl /usr/local/bin/
12+
813
# Clone and install oadp-cli
914
RUN git clone https://github.com/migtools/oadp-cli.git /tmp/oadp-cli && \
1015
cd /tmp/oadp-cli && \
11-
make build && \
12-
cp kubectl-oadp /usr/local/bin/ && \
13-
chmod +x /usr/local/bin/kubectl-oadp; \
16+
make install ASSUME_DEFAULT=true && \
1417
rm -rf /tmp/oadp-cli
1518

16-
# Install kubectl
17-
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
18-
chmod +x kubectl && \
19-
mv kubectl /usr/local/bin/
2019

2120
RUN go mod download && \
2221
mkdir -p $(go env GOCACHE) && \

0 commit comments

Comments
 (0)