Skip to content

Atesmaps/do-tools

Repository files navigation

Digital Ocean Tools - Atesmaps

Project with DigitalOcean Tools that are used to maintain Atesmaps infrastructure.

Deploy

This project uses GitHub Actions for manage deployments. See deploy.yaml for more details.

Usage

Docker

docker run --rm atesmaps-do-tools:latest {do-tool-action}

Run -h to display help usage:

docker run --rm atesmaps-do-tools:latest -h

Example

  • Action volume-snapshots:
    docker run \
      --rm \
      --name atesmaps-do-tools \
      atesmaps-do-tools:latest \
      volume-snapshots \
      --volume-ids abcdefghi-0000-00xx-000x-000000xxxxxx \
      --retention-days 10

Python3

First of all you need to activate pipenv shell:

pip install pipenv && pipenv shell

Run do-tools action:

python3 src/main.py {do-tool-action}

Run -h to display help usage:

python3 src/main.py -h

Local Development

This project requires Python3.

Steps

  1. Install pipenv:
    pip install --upgrade pip && pip install pipenv
  2. Activate virtualenv:
    pipenv shell
  3. Run Python script:
    python3 src/main.py

Collaborators