File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,21 @@ 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
16
make build && \
12
17
cp kubectl-oadp /usr/local/bin/ && \
13
18
chmod +x /usr/local/bin/kubectl-oadp; \
19
+ # Run oadp-cli client comand to set namespace
20
+ kubectl oadp client config set namepace=openshift-adp && \
14
21
rm -rf /tmp/oadp-cli
15
22
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
-
21
23
RUN go mod download && \
22
24
mkdir -p $(go env GOCACHE) && \
23
25
chmod -R 777 ./ $(go env GOCACHE) $(go env GOPATH)
You can’t perform that action at this time.
0 commit comments