Skip to content

A simple docker container including terraform, packer and aws-cli

License

Notifications You must be signed in to change notification settings

pfandie/terra-packer

Repository files navigation

terra-packer

A simple docker container including terraform, packer and aws-cli

Build Status Docker Build licencse

Feature tools

Usage

This container helps in e.g. GitLab-CI Omnibus installation.
It could be used to help you creating AMI with GitLab-CI.

run on local:

# ansible:
docker run --rm pfandie/terra-packer ansible --version
# awscli:
docker run --rm pfandie/terra-packer aws -version
# packer:
docker run --rm pfandie/terra-packer packer -v
# shellcheck:
docker run --rm pfandie/terra-packer shellcheck -V
# terraform:
docker run --rm pfandie/terra-packer terraform -v
# tflint:
docker run --rm pfandie/terra-packer tflint -v
# tfsec:
docker run --rm pfandie/terra-packer tfsec -v

Example

Just extend your .gitlab-ci.yml to make use of this Image

build_task:
  stage: build
  image: REPOSITORY-URL/terra-packer:latest
  only:
    refs:
      - master
  script:
    - ansible --version
    - ansible-lint --version
    - aws --version
    - packer -v
    - terraform -v
    - terraform-compliance --version