项目作者: bcgov

项目描述 :
BC Telemetry Warehouse: Database
高级语言: PLpgSQL
项目地址: git://github.com/bcgov/bctw-db.git
创建时间: 2020-04-07T04:14:12Z
项目社区:https://github.com/bcgov/bctw-db

开源协议:

下载


Lifecycle: Maturing

British Columbia Telemetry Warehouse

Minimal Postresql 12 and PostGIS 3.0 Docker setup.

Downloading and Building

  1. git clone https://github.com/bcgov/bctw-db.git
  2. cd bctw-db
  3. docker build --tag bctw-db:1.0 .

Running Locally

If you have environment variables currently set for the database environment you can do the following. Otherwise substitute in your configuration.

  1. docker run \
  2. --publish 5432:5432 \
  3. --detach \
  4. --name bctw-db \
  5. --env POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
  6. --env POSTGRES_USER=$POSTGRES_USER \
  7. --env POSTGRES_DB=$POSTGRES_DB \
  8. bctw-db:1.0

Now you can connect locally.

  1. psql -h localhost -p 5432 $POSTGRES_DB $POSTGRES_USER

OpenShift

OpenShift details including build, deployment and pipelines are in the openshift folder.