HUB
Sign inSign up
spring-cloud-gateway logo

openeuler/spring-cloud-gateway

Sponsored OSS

By openeuler

•Updated about 23 hours ago

Image
0

100

openeuler/spring-cloud-gateway repository overview

⁠Quick reference

⁠Spring Cloud Gateway | openEuler

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

Spring Cloud Gateway provides an API gateway built on the Spring ecosystem: routing, path rewriting, load balancing, rate limiting and other cross-cutting concerns for microservices.

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

Learn more on Spring⁠.

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

TagCurrentlyArchitectures
5.0.4-oe2403sp4⁠Spring Cloud Gateway 5.0.4 (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-gateway image from docker

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

    docker run --rm openeuler/spring-cloud-gateway:{Tag} cat /app/IMAGE_VERSION
    
  • Start the gateway with a custom route configuration

    Write your gateway configuration to application.yml in the current directory:

    management:
      endpoints:
        web:
          exposure:
            include: health,info,gateway
    spring:
      cloud:
        gateway:
          server:
            webflux:
              routes:
                - id: demo
                  uri: http://example.com:8080
                  predicates:
                    - Path=/demo/**
                  filters:
                    - StripPrefix=1
    

    Then mount it into the container:

    docker run -d --name my-gateway -p 8080:8080 \
        -v "$(pwd)/application.yml:/app/config/application.yml:ro" \
        openeuler/spring-cloud-gateway:{Tag}
    
  • Verify the gateway is healthy

    curl http://127.0.0.1:8080/actuator/health
    
  • Inspect the active routes

    curl http://127.0.0.1:8080/actuator/gateway/routes
    

⁠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:86619b42f…

Size

209.5 MB

Last updated

about 23 hours ago

docker pull openeuler/spring-cloud-gateway