logo My Digital Garden

Setting up a Springboot Configuration Server

By James Kolean on Apr 27, 2020
Source repository: https://gitlab.com/jameskolean/springboot-config-server-demo/-/tree/master
Spring BootJavaDocker
banner

Basic Setup

The basic setup covers getting two servers up and running; the Configuration Server and the Configuration Consumer Application. We will get things up and running then iterate on the solution with additional features.

Configuration Server

Start by going over to start.spring.io and create a project with the Config Server dependency. The pom.xml should look like this.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.codegreenllc.spring</groupId>
	<artifactId>config-server</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>config-server</name>
	<description>Spring Boot Configuration server</description>

	<properties>
		<java.version>1.8</java.version>
		<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
		<jib.version>2.2.0</jib.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-config-server</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.junit.vintage</groupId>
					<artifactId>junit-vintage-engine</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>
</project>

Now update your Application.java class to enable the configuration server like this.

package com.codegreenllc.spring.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

@EnableConfigServer
@SpringBootApplication
public class Application {
	public static void main(final String[] args) {
		SpringApplication.run(Application.class, args);
	}
}

Edit src/main/resources/application.properties to start on a non-conflicting port and indicate where to fing the properties.

server.port=8888
spring.cloud.config.server.git.uri=https://gitlab.com/jameskolean/springboot-config-demo-repo.git

In this case I point spring.cloud.config.server.git.uri to a public repository containing a single file config-consumer-app.properties containing one line.

message=Hello world

You can instead create a local repository like this.

mkdir my-repo
cd my-repo
git init
echo "message=Hello world" > config-consumer-app.properties
git add .
git commit -m "Added properties"

Now change spring.cloud.config.server.git.uri to the fully qualified path to my-repo.

Start it and test it.

mvn spring-boot:run
curl http://localhost:8888/config-consumer-app/default

{"name":"config-consumer-app","profiles":["default"],"label":null,"version":"b1b2a823a0231d324be902c82e696ece85639c86","state":null,"propertySources":[{"name":"https://gitlab.com/jameskolean/springboot-config-demo-repo.git/config-consumer-app.properties","source":{"message":"Hello world"}}]}%

Great, now we can serve up configurations.

Configuration Consumer Application

Let’s create a simple Web Application that will use properties from our Configuration Serve we just started. Start by going over to start.spring.io and create a project with the Spring Web, Actuator, DevTools, and Config Client dependencies. The pom.xml file should look like this.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.codegreenllc</groupId>
	<artifactId>config-consumer-app</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>config-consumer-app</name>
	<description>Sample Springboot application that uses our Configuration Server</description>

	<properties>
		<java.version>1.8</java.version>
		<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-config</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.junit.vintage</groupId>
					<artifactId>junit-vintage-engine</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>

Let’s add a simple controller in Application.java to echo back the configuration property.

package com.codegreenllc.configconsumerapp;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class Application {

    @RefreshScope
    @RestController
    class MessageRestController {

        @Value("${message:Hello default}")
        private String message;

        @RequestMapping("/message")
        String getMessage() {
            return this.message;
        }
    }

    public static void main(final String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

We need to add some properties that are set before the normal configuration phase. To do this create a file called src/main/resources/bootstrap.properties.

spring.application.name=config-consumer-app
spring.cloud.config.uri=http://localhost:8888

Now turn on Actuator by adding this line to src/main/resources/application.properties.

management.endpoints.web.exposure.include=*

Run it

mvn spring-boot:run

Open a browser to http://localhost:8080/message

Now you can change the message property in ‘my-repo’ git repository. We can trigger our Web Application to pull the new value with this command.

curl localhost:8080/actuator/refresh -d {} -H "Content-Type: application/json"

Dockerize

Edit the Configuration Server pom.xml file. We are adding the JIB build plugin to build the image and publish it to docker hub.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.codegreenllc.spring</groupId>
	<artifactId>config-server</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>config-server</name>
	<description>Spring Boot Configuration server</description>

	<properties>
		<java.version>1.8</java.version>
		<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
		<jib.version>2.2.0</jib.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-config-server</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.junit.vintage</groupId>
					<artifactId>junit-vintage-engine</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>com.google.cloud.tools</groupId>
				<artifactId>jib-maven-plugin</artifactId>
				<version>${jib.version}</version>
				<configuration>
					<from>
						<image>openjdk:8u222-jre</image>
					</from>
					<to>
						<image>docker.io/jameskolean/${project.name}:${project.version}</image>
					</to>
					<container>
						<ports>
							<port>8888</port>
						</ports>
						<user>1025</user>
						<environment>
							<SPRING_OUTPUT_ANSI_ENABLED>ALWAYS</SPRING_OUTPUT_ANSI_ENABLED>
						</environment>
						<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
					</container>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

If you want to run this, you will need to point to your docker repository and sign into docker hub. At that point these commands will build, publish, pull, and run the dockerized Configuration Server.

mvn clean package jib:build
docker pull jameskolean/config-server:0.0.1-SNAPSHOT
docker run -p 8888:8888 -t "jameskolean/config-server:0.0.1-SNAPSHOT"

Now test with curl like we did before.

curl http://localhost:8888/config-consumer-app/default

{"name":"config-consumer-app","profiles":["default"],"label":null,"version":"b1b2a823a0231d324be902c82e696ece85639c86","state":null,"propertySources":[{"name":"https://gitlab.com/jameskolean/springboot-config-demo-repo.git/config-consumer-app.properties","source":{"message":"Hello world"}}]}%

Great, Let’s do the same for the Web Application starting with the file pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.codegreenllc</groupId>
	<artifactId>config-consumer-app</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>config-consumer-app</name>
	<description>Sample Springboot application that uses our Configuration Server</description>

	<properties>
		<java.version>1.8</java.version>
		<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
		<jib.version>2.2.0</jib.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-config</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.junit.vintage</groupId>
					<artifactId>junit-vintage-engine</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>com.google.cloud.tools</groupId>
				<artifactId>jib-maven-plugin</artifactId>
				<version>${jib.version}</version>
				<configuration>
					<from>
						<image>openjdk:8u222-jre</image>
					</from>
					<to>
						<image>docker.io/jameskolean/${project.name}:${project.version}</image>
					</to>
					<container>
						<ports>
							<port>8080</port>
						</ports>
						<user>1025</user>
						<environment>
							<SPRING_OUTPUT_ANSI_ENABLED>ALWAYS</SPRING_OUTPUT_ANSI_ENABLED>
						</environment>
						<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
					</container>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

On Macs you should edit the file called src/main/resources/bootstrap.properties.

spring.application.name=config-consumer-app
spring.cloud.config.uri=http://host.docker.internal:8888

Note: you can create another file called src/main/resources/bootstrap-local.properties with the uri pointing to localhost and run it with mvn spring-boot:run -Dspring-boot.run.profiles=local .

Now build and run it.

mvn package jib:build
docker pull jameskolean/config-consumer-app:0.0.1-SNAPSHOT
docker run -p 8080:8080 -t "jameskolean/config-consumer-app:0.0.1-SNAPSHOT"

Test it out at http://localhost:8080/message

Secure our GitLab repository

This can be done in three easy steps

  1. Change the project to Private at Settings > General > Visibility
  2. Create a deploy token at Settings > Repository > Deploy Tokens
  3. Edit /src/main/resources/application.properties
server.port=8888
spring.cloud.config.server.git.uri=https://gitlab.com/jameskolean/springboot-config-demo-repo.git
spring.cloud.config.server.git.username=gitlab+deploy-token-166598
spring.cloud.config.server.git.password=YOUR-DEPLOY-TOKEN-PASSWORD

Secure the Configuration Server

There are two concerns when securing the server. Secure the Actuator endpoints with some authentication. Secure the communication to the Actuator endpoints with HTTPs

Authentication

We will use basic authentication to get started. Add a dependency to pom.xml

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-security</artifactId>
</dependency>

Add a user to src/main/resources/application.properties

spring.security.user.name=root
spring.security.user.password=root

Enable HTTPS

To enable HTTPs, we need to generate a self-signed certificate and place it in src/main/resources

keytool -genkeypair -alias tomcat -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore keystore.p12 -validity 3650 -storepass "keepItSecret&Safe"

Let’s make sure it was generated correctly by running this command.

keytool -list -v -storetype pkcs12 -keystore ./src/maim/resourceskeystore.p12

All that’s left is to add these properties to src/main/resources/application.properties, making sure to remove the previous server.port property.

server.ssl.key-store: classpath:keystore.p12
server.ssl.key-store-password: keepItSecret&Safe
server.ssl.key-store-type: pkcs12
server.ssl.key-alias: tomcat
server.port: 8443

It’s time to test it by running this command.

curl -k https://root:root@localhost:8443/config-consumer-app/default

Make the Configuration Consumer Web Application talk HTTPS

Start by changing the URI in src/main/resources/bootstrap.properties to point to the secure endpoint.

spring.application.name=config-consumer-app
spring.cloud.config.uri=https://localhost:8443
spring.cloud.config.username=root
spring.cloud.config.password=root
spring.cloud.config.failfast=true

or for docker on Macs

spring.application.name=config-consumer-app
spring.cloud.config.uri=https://host.docker.internal:8443
spring.cloud.config.username=root
spring.cloud.config.password=root
spring.cloud.config.failfast=true

If you try to run the application now, it will fail due to the self-signed certificate we used. We can fix this by telling Sringboot not to validate the SSL Certificate using this class.

package com.codegreenllc.configconsumerapp;

import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.SSLContext;

import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.TrustStrategy;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.config.client.ConfigClientProperties;
import org.springframework.cloud.config.client.ConfigServicePropertySourceLocator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

@Configuration
public class CustomConfigServiceBootstrapConfiguration {
    @Autowired
    ConfigClientProperties configClientProperties;

    @Bean
    public ConfigServicePropertySourceLocator configServicePropertySourceLocator()
            throws KeyManagementException, KeyStoreException, NoSuchAlgorithmException {
        final ConfigServicePropertySourceLocator configServicePropertySourceLocator = new ConfigServicePropertySourceLocator(
                configClientProperties);
        configServicePropertySourceLocator.setRestTemplate(getRestTemplate());
        return configServicePropertySourceLocator;
    }

    @Bean
    public RestTemplate getRestTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException {
        final TrustStrategy acceptingTrustStrategy = new TrustStrategy() {
            @Override
            public boolean isTrusted(final X509Certificate[] x509Certificates, final String s)
                    throws CertificateException {
                return true;
            }
        };
        final SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom()
                .loadTrustMaterial(null, acceptingTrustStrategy).build();
        final SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext, new NoopHostnameVerifier());
        final CloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(csf).build();
        final HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();
        requestFactory.setHttpClient(httpClient);
        final RestTemplate restTemplate = new RestTemplate(requestFactory);
        return restTemplate;
    }
}

You will also need to add this dependency to the pom.xml

<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
</dependency>

Now we need to register the class by creating a file called src/main/resources/META-INF/spring.factories containing this single line.

org.springframework.cloud.bootstrap.BootstrapConfiguration = com.codegreenllc.configconsumerapp.CustomConfigServiceBootstrapConfiguration

Test it locally

Start both the Configuration Server and the Web Application like we did before.

mvn spring-boot:run -Dspring-boot.run.profiles=local

Open a browser to http://localhost:8080/message

Add Vault and Native sources

To add a native source add a file called /src/main/resources/config-consumer-app.properties with a silgle line.

native.message=Hello from application.properties

Now update the Configuration Consumer Web Application to use the new property

package com.codegreenllc.configconsumerapp;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class Application {

    @RefreshScope
    @RestController
    class MessageRestController {

        @Value("${message:Hello default}")
        private String message;

        @Value("${native.message:Native default}")
        private String nativeMessage;

        @Value("${vault.message:Vault default}")
        private String vaultMessage;

        @RequestMapping("/message")
        String getMessage() {
            return String.format("Native property is '%s', Git property is '%s', and Vault property is '%s'",
                    nativeMessage, message, vaultMessage);
        }
    }

    public static void main(final String[] args) {
        SpringApplication.run(Application.class, args);
    }

}

Now start both applications from the project root folder.

mvn -pl config-server spring-boot:run -Dspring-boot.run.profiles=native,git
mvn -pl config-consumer-app spring-boot:run -Dspring-boot.run.profiles=local

Open a browser to try it at http://localhost:8080/message.

Vault

Now let’s add Vault. Step one is to install Vault from Hashicorp. On a Mac, I suggest using Homebrew like this.

brew install vault
vault -autocomplete-install
vault server -dev
export VAULT_ADDR='http://127.0.0.1:8200'
vault status

Add a value to Vault and confirm it was added like this.

vault kv put secret/config-consumer-app vault.message="Hello from Vault"
vault kv get secret/config-consumer-app

Now add these properties to src/main/resources/application.properties

spring.cloud.config.server.vault.port=8200
spring.cloud.config.server.vault.host=127.0.0.1
spring.cloud.config.server.vault.kv-version=2
spring.cloud.config.server.vault.scheme=http
spring.cloud.config.server.vault.authentication=TOKEN
spring.cloud.config.server.vault.token=YOUR-TOKEN

Start and test the Config Server from the project root directory.

mvn -pl config-server spring-boot:run -Dspring-boot.run.profiles=native,git,vault
curl -k https://root:root@localhost:8443/config-consumer-app/default

Now start the Web Application from the project root directory.

mvn -pl config-consumer-app spring-boot:run -Dspring-boot.run.profiles=local

Open a browser to http://localhost:8080/message

To close the loop, these are the docker commands to build an run.

mvn clean && mvn --projects config-server,config-consumer-app package jib:build
docker pull "jameskolean/config-server:0.0.1-SNAPSHOT"
docker run -p 8443:8443 --env SPRING_PROFILES_ACTIVE=native,git,vault --env spring.cloud.config.server.vault.token=YOUR-TOKEN -t "jameskolean/config-server:0.0.1-SNAPSHOT"
curl -k https://root:root@localhost:8443/config-consumer-app/default -H "Content-Type: application/json" | jq '.'
docker pull "jameskolean/config-consumer-app:0.0.1-SNAPSHOT"
docker run -p 8080:8080 -t "jameskolean/config-consumer-app:0.0.1-SNAPSHOT"
© Copyright 2023 Digital Garden cultivated by James Kolean.