Skip to content

inetum-orleans/djp-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

djp-postgres

A ddb jsonnet package (djp).

Description

PostgreSQL djp package.

Snippet

  • ddb.yml
cookiecutter:
  templates:
    - template: gh:inetum-orleans/djp-postgres
      extra_context:
        postgres_version: "13"
  • docker-compose.yml.jsonnet
ddb.Compose(
  ddb.with(import '.docker/postgres/djp.libjsonnet',
  name='db',
  params={
    database: 'xxx', 
    login: 'xxx', 
    password: 'xxx', 
    script: ['/data/ddl.sql', '/data/samples.sql']
  })
)

Parameters

name type description
database string Database name
login string Database login
password string Database password
script string[] Script to load (see Initialization scripts section in Docker Hub)

Usage

Please check jsonnet feature to understand how to include a djp package inside a ddb project.

Looking for other djp packages ? Check github repositories starting with djp-.

Releases

No releases published

Packages

No packages published

Languages