Spring Framework based Service Configuration
Based on https://projects.spring.io/spring-cloud/ and https://github.com/spring-cloud-samples/configserver.
At least: Java 11 and Maven 3.6
mvn package -DskipTests=true
export KEYSTORE_PASSWORD=xxx export KEYSTORE_SECRET=xxx
keytool -genkey -alias serviceconfig -keystore /serviceconfig/serviceconfig.jks
Default value: https://github.com/wlanboy/cloudconfig
Defining the git repro which all yml files are stored.
java -jar target\serviceconfig-0.1.1-SNAPSHOT.jar
./target/serviceconfig-0.1.1-SNAPSHOT.jar start
docker build -t serviceconfig:latest . --build-arg JAR_FILE=./target/serviceconfig-0.1.1-SNAPSHOT.jar
- docker tag serviceconfig:latest docker.pkg.github.com/wlanboy/serviceconfig/serviceconfig:latest
- docker push docker.pkg.github.com/wlanboy/serviceconfig/serviceconfig:latest
- docker run --name serviceconfig -m 256M -d -p 8888:8888 -e KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD -e KEYSTORE_SECRET=$KEYSTORE_SECRET -v /tmp:/tmp -v /serviceconfig:/serviceconfig --restart unless-stopped wlanboy/serviceconfig:latest