Skip to content

ReeganExE/confd-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example usage of confd-base base image

Template

templates/my-app.yml.tmpl

spring:
  apps:
    - name: {{getv "/first/name"}}
    - db: "jdbc:mysql://localhost/{{getv "/db/schema"}}?useSSL=true&requireSSL=true"

Run example

docker build -t confd-example .
docker run --rm -it -e FIRST_NAME=beneficiary-app -e DB_SCHEMA=beneficiary confd-example

The output would look like this:

2018-08-26T06:33:06Z dac19b291159 confd[7]: INFO Backend set to env
2018-08-26T06:33:06Z dac19b291159 confd[7]: INFO Starting confd
2018-08-26T06:33:06Z dac19b291159 confd[7]: INFO Backend source(s) set to
2018-08-26T06:33:06Z dac19b291159 confd[7]: INFO Target config /etc/my-app.yml out of sync
2018-08-26T06:33:06Z dac19b291159 confd[7]: INFO Target config /etc/my-app.yml has been updated
---------------------------
spring:
  apps:
    - name: beneficiary-app
    - db: "jdbc:mysql://localhost/beneficiary?useSSL=true&requireSSL=true"

See: https://github.com/ReeganExE/confd-base

About

Example usage confd-base image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published