Skip to content
Snippets Groups Projects
Commit 423612f3 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-terraform-docker-image' into 'main'

Add terraform to docker image

Closes #77

See merge request rc/packer-openstack-hpc-image!52
parents 22bd13b9 48cf2659
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,8 @@ build_docker_image:
'ansible --version &&
openstack --version &&
packer version &&
s3cmd --version'
s3cmd --version &&
terraform --version'
- docker push --all-tags $CI_REGISTRY_IMAGE
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
......
......@@ -3,13 +3,19 @@ FROM python:3.8-slim
ENV S3CMD_VER=2.3.0
ENV ANSIBLE_VER=4.10.0
ENV OSC_VER=5.8.0
ENV TF_VER=1.4.6
ADD ./packer /usr/local/bin
RUN apt-get update && apt-get install --no-install-recommends -y \
git \
ssh \
curl \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://releases.hashicorp.com/terraform/${TF_VER}/terraform_${TF_VER}_linux_amd64.zip \
&& unzip terraform_${TF_VER}_linux_amd64.zip -d /usr/local/bin \
&& rm terraform_${TF_VER}_linux_amd64.zip
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir \
s3cmd==$S3CMD_VER \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment