Skip to content

panubo/docker-postgres-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL Toolbox

Build Status

A collection of PostgreSQL scripts for automating common DBA tasks in a Docker-centric way.

Documentation

Documentation for each subcommand:

General Usage

Using Docker links to postgres container. This will display the usage information:

docker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox

To run the subcommand:

docker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox <subcommand>

Configuration

Use --link <postgres container name>:postgres to automatically specify the required variables.

Or alternatively specify the variables:

  • DATABASE_HOST = IP / hostname of PostgreSQL server.
  • DATABASE_PORT = TCP Port of PostgreSQL service.
  • DATABASE_USER = Administrative user eg postgres with SUPERUSER privileges.
  • DATABASE_PASS = Password of administrative user.

Some subcommands require additional environment parameters.

Status

Feature incomplete. Work in progress.