Skip to content

Commit 03965fc

Browse files
authored
Install kubelogin in CL2 image (#41)
1 parent f1933d0 commit 03965fc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

clusterloader2/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@ RUN go build -o clusterloader2 ./cmd/
77

88
FROM ubuntu:22.04
99
RUN apt-get update && apt-get install -y curl unzip
10+
11+
# Install AWS CLI
1012
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
1113
&& unzip awscliv2.zip \
1214
&& ./aws/install \
1315
&& rm -rf awscliv2.zip aws
16+
17+
# Install Azure CLI & kubelogin
18+
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
19+
RUN az aks install-cli
20+
21+
# Install clusterloader2
1422
COPY --from=builder /root/perf-tests /root/perf-tests
1523
RUN mkdir $GOPATH/src/k8s.io -p && \
1624
cp /root/perf-tests $GOPATH/src/k8s.io/perf-tests -r

0 commit comments

Comments
 (0)