HUB
Sign inSign up
spring-cloud-config logo

openeuler/spring-cloud-config

Sponsored OSS

By openeuler

•Updated about 23 hours ago

Image
0

98

openeuler/spring-cloud-config repository overview

⁠Quick reference

⁠Spring Cloud Config Server | openEuler

Current Spring Cloud Config Server docker images are built on openEuler⁠. This repository is free to use and exempted from per-user rate limits.

Spring Cloud Config Server provides centralized external configuration for distributed systems: it serves configuration from git repositories, local (native) directories or vault, supports encryption/decryption of property values and hot refresh for connected clients.

The image runs the upstream release-train stack on openEuler: config-server is resolved by the official spring-cloud-dependencies BOM (release train 2025.1.x, which pins config-server 5.0.6 on Spring Boot 4.0.9). The container entrypoint is a thin Spring Boot launcher that wraps the BOM-managed upstream artifact; no upstream code is modified or recompiled.

Learn more on Spring⁠.

The tag of each spring-cloud-config docker image consists of the version of Spring Cloud Config Server and the version of the base image. The details are as follows

TagCurrentlyArchitectures
5.0.6-oe2403sp4⁠Spring Cloud Config Server 5.0.6 (train 2025.1.4) on openEuler 24.03-LTS-SP4amd64, arm64

⁠Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/spring-cloud-config image from docker

    docker pull openeuler/spring-cloud-config:{Tag}
    
  • Check the image version

    docker run --rm openeuler/spring-cloud-config:{Tag} cat /app/IMAGE_VERSION
    
  • Serve configuration from a git repository

    docker run -d --name my-config-server -p 8888:8888 \
        -e SPRING_CLOUD_CONFIG_SERVER_GIT_URI=https://github.com/myorg/my-config-repo \
        openeuler/spring-cloud-config:{Tag}
    

    Fetch the configuration of application myapp with profile prod:

    curl http://127.0.0.1:8888/myapp/prod
    
  • Serve configuration from a local directory (native profile)

    docker run -d --name my-config-server -p 8888:8888 \
        -e SPRING_PROFILES_ACTIVE=native \
        -e SPRING_CLOUD_CONFIG_SERVER_NATIVE_SEARCHLOCATIONS=file:/config-repo \
        -v "$(pwd)/config-repo:/config-repo:ro" \
        openeuler/spring-cloud-config:{Tag}
    
  • Encrypt a property value (requires a symmetric key)

    docker run -d --name my-config-server -p 8888:8888 \
        -e ENCRYPT_KEY=my-symmetric-key \
        openeuler/spring-cloud-config:{Tag}
    
    curl --data-binary 'my-secret' -H 'Content-Type: text/plain' \
        http://127.0.0.1:8888/encrypt
    
  • Verify the server is healthy

    curl http://127.0.0.1:8888/actuator/health
    

⁠Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images⁠.

Tag summary

Content type

Image

Digest

sha256:173f021df…

Size

202.5 MB

Last updated

about 23 hours ago

docker pull openeuler/spring-cloud-config