Skip to content

Commit 3cb0900

Browse files
committed
#35 updated version for utils in aws-eks-utils image, added new image with terraform-utils
1 parent 4c490b1 commit 3cb0900

File tree

3 files changed

+50
-9
lines changed

3 files changed

+50
-9
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Terraform-utils'
2+
3+
on:
4+
push:
5+
branches:
6+
- 'feature/terraform-utils'
7+
paths:
8+
- 'docker/terraform-utils/Dockerfile'
9+
10+
jobs:
11+
push_to_registries:
12+
name: Push Docker image to multiple registries
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out the repo
16+
uses: actions/checkout@v2
17+
- name: Push to Docker Hub
18+
uses: docker/build-push-action@v2
19+
with:
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}
22+
context: docker/terraform-utils/
23+
tags: maddevsio/terraform-utils:latest

docker/aws-eks-utils/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM alpine:3.10.1
2-
ARG TERRAFORM_VERSION="0.12.25"
3-
ARG TERRAGRUNT_VERSION="0.22.4"
4-
ARG HELM_VERSION="3.0.2"
5-
ARG HELMFILE_VERSION="0.98.3"
6-
ARG KUBECTL_VERSION="1.15.11"
2+
ARG TERRAFORM_VERSION="0.15.1"
3+
ARG TERRAGRUNT_VERSION="0.29.2"
4+
ARG HELM_VERSION="3.5.4"
5+
ARG HELMFILE_VERSION="0.138.7"
6+
ARG KUBECTL_VERSION="1.21.0"
77
ENV BASE_URL="https://get.helm.sh"
88
ENV TAR_FILE="helm-v${HELM_VERSION}-linux-amd64.tar.gz"
99

@@ -13,7 +13,7 @@ RUN echo "**** install Python ****" && \
1313
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
1414
\
1515
echo "**** install pip ****" && \
16-
python3 -m ensurepip && \
16+
python3 -m ensurepip && \
1717
pip3 install --no-cache --upgrade pip setuptools wheel && \
1818
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
1919

@@ -50,15 +50,15 @@ RUN wget https://storage.googleapis.com/kubernetes-release/release/v"$KUBECTL_VE
5050
RUN curl -L https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/aws-iam-authenticator -o /usr/local/bin/aws-iam-authenticator \
5151
&& chmod +x /usr/local/bin/aws-iam-authenticator
5252

53-
#Install docker
54-
RUN apk add --no-cache --update docker
53+
#Install docker
54+
RUN apk add --no-cache --update docker
5555

5656
#Install helmfile
5757
RUN wget https://github.com/roboll/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_linux_amd64 \
5858
&& chmod +x helmfile_linux_amd64 && mv helmfile_linux_amd64 /bin/helmfile
5959

6060
# Install ssh
61-
RUN apk add openssh
61+
RUN apk add openssh
6262

6363

6464
ENTRYPOINT [""]

docker/terraform-utils/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM alpine:3.10.1
2+
ARG TERRAFORM_VERSION="0.15.1"
3+
4+
WORKDIR /tmp
5+
6+
#Install tfenv for terraform
7+
RUN apk add --update --no-cache openssl git bash curl unzip sudo && \
8+
git clone https://github.com/tfutils/tfenv.git /usr/bin/.tfenv && \
9+
ln -s /usr/bin/.tfenv/bin/* /usr/bin && \
10+
chmod +x /usr/bin/tfenv
11+
12+
#Install terraform
13+
RUN tfenv install $TERRAFORM_VERSION
14+
15+
#Install tflint
16+
RUN curl https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
17+
18+
ENTRYPOINT [""]

0 commit comments

Comments
 (0)