Skip to content

Commit

Permalink
Issue #2 - kubectl: command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodgorsek committed Apr 11, 2022
1 parent 6e62cec commit 11b5398
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ RUN pip3 install -r https://raw.githubusercontent.com/ansible-collections/google
RUN pip3 install cryptography

# Kubernetes & Helm
COPY conf/kubernetes.repo /etc/yum.repos.d/kubernetes.repo
RUN dnf install -y \
kubectl \
> /dev/null \
&& dnf clean all
RUN pip3 install kubernetes
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/${HELM_VERSION}/scripts/get-helm-3 \
&& chmod 700 get_helm.sh \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ansible AWX Execution Environment with AWS, Azure, GCP, Kubernetes and Terraform
# Ansible AWX Execution Environment with AWS, Azure, GCP, Kubernetes, Helm and Terraform

## What is it?

Expand Down
7 changes: 7 additions & 0 deletions conf/kubernetes.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg

0 comments on commit 11b5398

Please sign in to comment.