Sign inSign up

opsgang/aws_packer

By opsgang

•Updated almost 8 years ago

... alpine container with common tools to use Hashicorp's Packer on or for aws

Artifact
Image
1

513

opsgang/aws_packer repository overview

... alpine container with common and consistent tools to use Hashicorp's Packer on or for aws

⁠featuring ...

  • [hashicorp's packer] 1⁠

  • [aws cli] 2⁠

  • [credstash] 3⁠ (for managing secrets in aws)

  • bash, curl, git, make, jq, openssh client [and friends] 4⁠

⁠github

https://github.com/opsgang/docker_aws_packer⁠

⁠building

Run Status

master branch built at shippable.com

⁠installing

docker pull opsgang/aws_packer:stable # or use the tag you prefer

⁠running

⁠example: run /path/to/script.sh which calls packer, aws cli, curl etc
docker run --rm -i -v /path/to/script.sh:/script.sh:ro opsgang/aws_packer:stable /script.sh

⁠example: use my aws creds to run /some/python/script.py
export AWS_ACCESS_KEY_ID="i'll-never-tell" # replace glibness with your access key
export AWS_SECRET_ACCESS_KEY="that's-for-me-to-know" # amend as necessary

docker run --rm -i                      \ # ... run interactive to see stdout / stderr
    -v /some/python/script.py:/my.py:ro \ # ... assume the file is executable
    --env AWS_ACCESS_KEY_ID             \ # ... will read it from your env
    --env AWS_SECRET_ACCESS_KEY         \ # ... will read it from your env
    --env AWS_DEFAULT_REGION=eu-west-2  \ # ... adjust geography to taste
    opsgang/aws_packer:stable /my.py      # script can access these env vars

⁠example: let me treat the container like a shell to try things
# Oh look! vim is preinstalled. How cool! And gratuitous.
docker run -it opsgang/aws_packer:stable /bin/bash

Tag summary

Content type

Image

Digest

Size

82 MB

Last updated

almost 8 years ago

docker pull opsgang/aws_packer:stable