HUB
Sign inSign up
pg-tools logo

texastribune/pg-tools

By texastribune

•Updated over 2 years ago

Image
1

10K+

texastribune/pg-tools repository overview

⁠texastribune/pg-tools

A dockerized toolset for importing and exporting data from a postgreSQL database.

⁠Example usage

⁠Importing from S3
docker run -it --rm \
  --link=db:db \
  --env=AWS_ACCESS_KEY_ID=<aws_access_key_id> \
  --env=AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> \
  --env=DATABASE_URL=<database-url> \
  --env=S3_SOURCE=<s3-source> \
  texastribune/pg-tools /app/import-from-s3.sh
⁠Importing from a URL
docker run -it --rm \
  --link=db:db \
  --env=DATABASE_URL=<database-url> \
  --env=DATABASE_BACKUP_URL=<url-to-postgres-dump> \
  texastribune/pg-tools /app/import-from-url.sh
Tag summary
Recent tags
Content type
Image
Digest
sha256:9ca8eb896…
Size
382.2 MB
Last updated
over 5 years ago
docker pull texastribune/pg-tools:latest