Public Repository

Last pushed: 5 days ago
Short Description
Khan prune command to keep stale data out of your data store
Full Description

This container allows you to prune stale data out of Khan's data store. We assume you are setting the following environment variables:

  • KHAN_POSTGRES_HOST - Postgres host;
  • KHAN_POSTGRES_PORT - Postgres port;
  • KHAN_POSTGRES_PASSWORD - Password of the Postgres Server;
  • KHAN_POSTGRES_DBNAME - DB Name of the Postgres Server;
  • KHAN_POSTGRES_USER - DB User of the Postgres Server;
  • KHAN_POSTGRES_PASSWORD - DB Password of the Postgres Server;
  • KHAN_SENTRY_URL - Sentry URL; (OPTIONAL)
  • KHAN_PRUNING_SLEEP - Number of seconds to sleep between pruning operations. Defaults to 3600.

Example command:

docker run -i -t --rm \
    -e KHAN_POSTGRES_HOST=$(PGHOST) \
    -e KHAN_POSTGRES_PORT=$(PGPORT) \
    -e KHAN_POSTGRES_DBNAME=$(PGDBNAME) \
    -e KHAN_POSTGRES_PASSWORD=$(PGPASSWORD) \
    -e KHAN_SENTRY_URL=$(SENTRYURL)
    -e KHAN_PRUNING_SLEEP=2400 khan-prune
Docker Pull Command
Owner
tfgco

Comments (0)