Skip to content

Commit 7934b9b

Browse files
committed
Test
1 parent 4ba8f18 commit 7934b9b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build/ci-Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ 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 && \
1116
make build && \
1217
cp kubectl-oadp /usr/local/bin/ && \
1318
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 && \
1421
rm -rf /tmp/oadp-cli
1522

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-
2123
RUN go mod download && \
2224
mkdir -p $(go env GOCACHE) && \
2325
chmod -R 777 ./ $(go env GOCACHE) $(go env GOPATH)

0 commit comments

Comments
 (0)