Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Mount docker socket into testing container
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazybus committed Jul 8, 2019
1 parent 662171e commit dd84f33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers/terraform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ ENV VAULT_VERSION 0.9.3
ENV TERRAFORM_VERSION=0.11.7
ENV KUBECTL_VERSION=1.14.1
ENV HELM_VERSION=2.14.0
ENV DOCKER_VERSION=18.09.7

RUN yum -y install \
make \
openssl \
unzip \
which

Expand Down Expand Up @@ -36,3 +38,9 @@ RUN curl -O https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}
mv linux-amd64/helm /usr/local/bin/ && \
rm -rf linux-amd64 && \
helm version --client

RUN curl -O https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
tar xfv docker* && \
mv docker/docker /usr/local/bin && \
rm -rf docker/ && \
docker
1 change: 1 addition & 0 deletions helpers/terraform/in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ docker run --rm --interactive \
--env HOME=/app \
--volume "${PWD}/../../:/app" \
--user "$(id -u):$(id -g)" \
-v /var/run/docker.sock:/var/run/docker.sock \
--workdir "/app/helpers/terraform/" \
"helm-charts" "$@"

0 comments on commit dd84f33

Please sign in to comment.