Skip to content

Commit

Permalink
Add kustomize binary to infra-ansible docker image (#609)
Browse files Browse the repository at this point in the history
* * Added findutils package to infra-ansible Dockerfile
* Added openstack.yml Openstack Dynamic Inventory config file
* Replaced python bin references with python3

* Added helm3

* Added kustomize 3.5.4 binary

* Update Dockerfile

Moving `kustomize` to its own layer + adding some additional clean-up + a version env var up front

Co-authored-by: Øystein Bedin <[email protected]>
  • Loading branch information
jfilipcz and oybed authored Apr 14, 2021
1 parent 462e987 commit 4e09456
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/infra-ansible/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM registry.fedoraproject.org/fedora

ENV HELM_VERSION=latest \
KUSTOMIZE_VERSION=v3.5.4

USER root
ENV WORK_DIR /infra-ansible
ENV HOME /tmp
Expand Down Expand Up @@ -37,6 +40,12 @@ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master
./get_helm.sh; \
rm -f ./get_helm.sh

RUN curl -fsSL -o kustomize.tar.gz https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
tar -xzf kustomize.tar.gz && \
chmod 700 kustomize && \
cp kustomize /usr/bin/; \
rm -f kustomize.tar.gz

COPY . ${WORK_DIR}
COPY images/infra-ansible/root /

Expand Down

0 comments on commit 4e09456

Please sign in to comment.