spring-projects / spring-projects/spring-boot

Support registry mirrors when building images

Open
#30,852 10 comments 24 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: pending-design-work type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

See https://github.com/buildpacks/pack/issues/821 and https://github.com/buildpacks/pack/pull/1210 for background.

Add the ability to configure one or more registry mirrors in the Spring Boot Maven spring-boot:build-image goal and Gradle bootBuildImage task. This configuration would provide a list of mappings from a registry to a registry mirror, such as:

  • index.docker.io -> registry.example.com/mirror
  • gcr.io/my-repo -> registry.example.com/mirror

When the Spring Boot plugins reference an image name that starts with one of the configured registries, the registry part of the image name would be replaced with the mirror before pulling or pushing the image.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked pack issue #821 and pull request #1210, then trace the Spring Boot Maven spring-boot:build-image goal and Gradle bootBuildImage task. Done means both plugins accept registry-to-mirror mappings and replace matching registry prefixes before pulling or pushing images.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, spring-boot
Domain
build-system, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.