Run bash or python scripts and cmds that need awscli, credstash, curl, jq
50K+
... mount a script file that needs awscli, credstash, curl or jq and run it, or just execute arbitrary commands with these tools.
Image comes with labels that show provenance and tool versions - use docker inspect to see.
https://github.com/opsgang/docker_aws_env
docker pull opsgang/aws_env:stable # or use the tag you prefer
# run a custom script /path/to/script.sh that uses aws cli, curl, jq blah ...
docker run --rm -i -v /path/to/script.sh:/script.sh:ro opsgang/aws_env:stable /script.sh
# make my aws creds available and 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_env:stable /my.py # script will be able to access the env vars
master branch built at shippable.com
Content type
Image
Digest
Size
52.6 MB
Last updated
almost 7 years ago
docker pull opsgang/aws_env:2