File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,17 @@ WORKDIR /go/src/github.com/openshift/oadp-operator
5
5
6
6
COPY ./ .
7
7
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
+
8
13
# Clone and install oadp-cli
9
14
RUN git clone https://github.com/migtools/oadp-cli.git /tmp/oadp-cli && \
10
15
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 && \
14
17
rm -rf /tmp/oadp-cli
15
18
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/
20
19
21
20
RUN go mod download && \
22
21
mkdir -p $(go env GOCACHE) && \
You can’t perform that action at this time.
0 commit comments