A ddb jsonnet package (djp).
PostgreSQL djp package.
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']
})
)
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) |
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-
.