Sign inSign up

overleaf/automated-ebs-snapshots

By overleaf

Updated over 6 years ago

A minimal Dockerfile for the automated-ebs-snapshots utility

Image
0

2.4K

overleaf/automated-ebs-snapshots repository overview

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

Tag summary

Content type

Image

Digest

Size

336.3 MB

Last updated

over 6 years ago

docker pull overleaf/automated-ebs-snapshots