HUB
Sign inSign up
spring-cloud-config-server-native logo

sbebej/spring-cloud-config-server-native

By sbebej

•Updated about 1 month ago

Spring Cloud Config Server container with native profile

Image
Developer tools
0

5.6K

sbebej/spring-cloud-config-server-native repository overview

source

⁠Default configuration
server:
  port: "8888"
spring:
  application:
    name: configServer
  cloud:
    config:
      server:
        native:
          searchLocations: file:/config/configServer,file:/config/configServer/{application},file:/config/configServer/{label},file:/config/configServer/{label}/{application}
        overrides:
          x-dot: .
        reverseLocationOrder: "true"
    refresh:
      enabled: "false"
  profiles:
    active: native
JSON=$(
  jq -c <<EOL
{
  "spring.cloud.config.server": {
    "overrides": {
      "x-github": {
        "refName": "$GITHUB_REF_NAME",
        "refType": "$GITHUB_REF_TYPE",
        "repository": "$GITHUB_REPOSITORY",
        "runId": "$GITHUB_RUN_ID",
        "sha": "$GITHUB_SHA"
      }
    }
  }
}
EOL
)

podman run -it --rm \
  -p 8888:8888 \
  -v "$(pwd)/configServer":/config:Z \
  -e JAVA_OPTS="-Dspring.cloud.config.server.native.searchLocations=file:/config,file:/config/{application},file:/config/{label},file:/config/{label}/{application}" \
  -e ENCRYPT_KEY=default123 \
  -e LOGGING_LEVEL_ROOT=INFO \
  -e SPRING_APPLICATION_JSON=$JSON \
  --name configServer \
  sbebej/spring-cloud-config-server-native:4.1.7
⁠Image detail
# pack inspect docker.io/sbebej/spring-cloud-config-server-native:4.1.7
Inspecting image: docker.io/sbebej/spring-cloud-config-server-native:4.1.7

REMOTE:

Stack: io.buildpacks.stacks.noble

Base Image:
  Reference: 45018eafb8d67933e4fb7da2efaf92368a70befffd03a2cc87a86e47915410a6
  Top Layer: sha256:c7c8657cc321ee1a1ba5e59cbf2bbb2764f98936f7c97f505f7263353c0220e2

Run Images:
  docker.io/paketobuildpacks/ubuntu-noble-run-tiny:0.0.46

Rebasable: true

Buildpacks:
  ID                                         VERSION        HOMEPAGE
  paketo-buildpacks/ca-certificates          3.10.5         https://github.com/paketo-buildpacks/ca-certificates
  paketo-buildpacks/bellsoft-liberica        11.4.3         https://github.com/paketo-buildpacks/bellsoft-liberica
  paketo-buildpacks/syft                     2.25.0         https://github.com/paketo-buildpacks/syft
  paketo-buildpacks/executable-jar           6.13.4         https://github.com/paketo-buildpacks/executable-jar
  paketo-buildpacks/dist-zip                 5.10.4         https://github.com/paketo-buildpacks/dist-zip
  paketo-buildpacks/spring-boot              5.33.5         https://github.com/paketo-buildpacks/spring-boot

Processes:
  TYPE                  SHELL        COMMAND        ARGS                                                      WORK DIR
  web (default)                      java           org.springframework.boot.loader.launch.JarLauncher        /opt/spring-cloud-config-server
  executable-jar                     java           org.springframework.boot.loader.launch.JarLauncher        /opt/spring-cloud-config-server
  task                               java           org.springframework.boot.loader.launch.JarLauncher        /opt/spring-cloud-config-server

Tag summary

Content type

Image

Digest

sha256:5efc2aa22…

Size

53.5 MB

Last updated

about 1 month ago

docker pull sbebej/spring-cloud-config-server-native:5.0.6-a0414714-native