Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

A minimal Dockerfile for the automated-ebs-snapshots utility

License

Notifications You must be signed in to change notification settings

overleaf/automated-ebs-snapshots-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

automated-ebs-snapshots in Docker

This is a minimal Dockerfile for the automated-ebs-snapshots utility.

Usage

The basic approach is:

docker run --rm overleaf/automated-ebs-snapshots --help

For the command to be useful, you will need to pass in the region, AWS key ID and AWS secret access key. There are several equally good ways to do this: mount configuration file(s), or pass command line arguments or set environment variables.

Configuration File

You can bind a configuration file on the host into the container and then pass it to the --config option.

Example with --mount:

docker run --rm \
  --mount type=bind,source=/host/path/to/automated-ebs-snapshots.conf,target=/etc/automated-ebs-snapshots.conf,readonly \
  overleaf/automated-ebs-snapshots --config /etc/automated-ebs-snapshots.conf --list

Example with --volume (somewhat shorter but less explicit):

docker run --rm \
  --volume '/host/path/to/automated-ebs-snapshots.conf:/etc/automated-ebs-snapshots.conf:ro' \
  overleaf/automated-ebs-snapshots --config /etc/automated-ebs-snapshots.conf --list

Command Line Options

docker run --rm overleaf/automated-ebs-snapshots \
  --access-key-id="AKexample" \
  --secret-access-key="ba5eba11" \
  --region="us-east-1" \
  --list

Environment Variables

If you already have AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION in your environment, you can just pass them through:

docker run --rm \
  --env AWS_ACCESS_KEY_ID \
  --env AWS_SECRET_ACCESS_KEY \
  --env AWS_DEFAULT_REGION \
  overleaf/automated-ebs-snapshots --list

or you can set them on the docker command line:

docker run --rm \
  --env AWS_ACCESS_KEY_ID="AKexample" \
  --env AWS_SECRET_ACCESS_KEY="ba5eba11" \
  --env AWS_DEFAULT_REGION="us-east-1" \
  overleaf/automated-ebs-snapshots --list

About

A minimal Dockerfile for the automated-ebs-snapshots utility

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published