diff --git a/docker-compose.yml b/docker-compose.yml index b44e8b7..1940b86 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,7 @@ services: - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON} - INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS} - INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK} + - INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM} - PUID=${WORKSPACE_PUID} - PGID=${WORKSPACE_PGID} - NODE_VERSION=${WORKSPACE_NODE_VERSION} diff --git a/env-example b/env-example index 7357b3e..b026ae7 100644 --- a/env-example +++ b/env-example @@ -51,6 +51,7 @@ WORKSPACE_INSTALL_SYMFONY=false WORKSPACE_INSTALL_PYTHON=false WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false WORKSPACE_INSTALL_IMAGEMAGICK=false +WORKSPACE_INSTALL_TERRAFORM=false WORKSPACE_PUID=1000 WORKSPACE_PGID=1000 WORKSPACE_NODE_VERSION=stable diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index bac3ee9..a388552 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -509,6 +509,21 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ apt-get install -y --force-yes imagemagick php-imagick \ ;fi +##################################### +# Terraform: +##################################### +USER root +ARG INSTALL_TERRAFORM=false +ENV INSTALL_TERRAFORM ${INSTALL_TERRAFORM} +RUN if [ ${INSTALL_TERRAFORM} = true ]; then \ + apt-get update -yqq \ + && apt-get -y install sudo wget unzip \ + && wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip \ + && unzip terraform_0.10.6_linux_amd64.zip \ + && mv terraform /usr/local/bin \ + && rm terraform_0.10.6_linux_amd64.zip \ +;fi + # #-------------------------------------------------------------------------- # Final Touch diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 2018816..297d26d 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -590,6 +590,21 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ apt-get install -y --force-yes imagemagick php-imagick \ ;fi +##################################### +# Terraform: +##################################### +USER root +ARG INSTALL_TERRAFORM=false +ENV INSTALL_TERRAFORM ${INSTALL_TERRAFORM} +RUN if [ ${INSTALL_TERRAFORM} = true ]; then \ + apt-get update -yqq \ + && apt-get -y install sudo wget unzip \ + && wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip \ + && unzip terraform_0.10.6_linux_amd64.zip \ + && mv terraform /usr/local/bin \ + && rm terraform_0.10.6_linux_amd64.zip \ +;fi + # #-------------------------------------------------------------------------- # Final Touch diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index aeaec9c..a57bff6 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -596,6 +596,21 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ apt-get install -y --force-yes imagemagick php-imagick \ ;fi +##################################### +# Terraform: +##################################### +USER root +ARG INSTALL_TERRAFORM=false +ENV INSTALL_TERRAFORM ${INSTALL_TERRAFORM} +RUN if [ ${INSTALL_TERRAFORM} = true ]; then \ + apt-get update -yqq \ + && apt-get -y install sudo wget unzip \ + && wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip \ + && unzip terraform_0.10.6_linux_amd64.zip \ + && mv terraform /usr/local/bin \ + && rm terraform_0.10.6_linux_amd64.zip \ +;fi + # #-------------------------------------------------------------------------- # Final Touch