Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wlanboy/cloudconfigpropertygenerator

Spring based property generator
https://github.com/wlanboy/cloudconfigpropertygenerator

spring-boot spring-cloud spring-cloud-config spring-profile spring-properties

Last synced: 6 days ago
JSON representation

Spring based property generator

Awesome Lists containing this project

README

        

![Java CI with Maven](https://github.com/wlanboy/CloudConfigPropertyGenerator/workflows/Java%20CI%20with%20Maven/badge.svg?branch=master)

# Spring Cloud Config property file generator
Spring Boot and Spring Cloud Config based property file generator
> Loads profiles from Spring Cloud Config server and generates a bootstrap.properties file.

## Dependencies
At least: Java 11 and Maven 3.5

Running: https://github.com/wlanboy/ServiceConfig

## Build
mvn package -DskipTests=true

## Run property generator
java -jar target/cloudconfigpropertygenerator-0.0.1-SNAPSHOT.jar

## Konfigure property generator
vim bootstrap.properties

set proper values to:
spring.profiles.active, spring.application.name and PROPERTY_FILE_TO_WRITE.

It will load all properties for the given application name and properties and writes them to a java properties files.
This is a side car for Java applications which are not able to use Spring Boot (Java version < 8) but should still be able to be configured with a Spring Cloud Config server.

## Docker hub
https://hub.docker.com/repository/docker/wlanboy/propertygenerator