Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add kubectl and kubernetes pip installs #11

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ARG VAULT_VERSION=1.13.4
ARG YTT_VERSION=0.48.0
ARG KAPP_VERSION=0.60.0
ARG NETBIRD_VERSION=0.28.6
ARG KUBECTL_VERSION=1.24.6

# Update apt and Install dependencies

Expand Down Expand Up @@ -44,10 +45,13 @@ RUN wget -q https://github.com/carvel-dev/ytt/releases/download/v${YTT_VERSION}/
RUN wget -q https://github.com/carvel-dev/kapp/releases/download/v${KAPP_VERSION}/kapp-linux-amd64 -O /tmp/kapp-linux-amd64 \
&& mv /tmp/kapp-linux-amd64 /bin/kapp \
&& chmod +x /bin/kapp
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /bin/kubectl \
&& chmod +x /bin/kubectl

RUN pip3 install --upgrade pip \
&& mkdir /workdir && cd /workdir \
&& mkdir keys \
&& python3 -m pip install ansible==5.7.1 netaddr awscli openshift>=0.6 setuptools>=40.3.0 \
&& python3 -m pip install ansible==5.7.1 netaddr kubernetes awscli openshift>=0.6 setuptools>=40.3.0 \
&& ansible-galaxy collection install community.kubernetes

COPY . iac-run-dir