Skip to content

docker - unable to pull required image to build #128

@pmauduit

Description

@pmauduit

running ./mvnw clean verify fails with the following error message:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for GeoNetwork microservices 4.4.8-SNAPSHOT:
[INFO] 
[INFO] GeoNetwork microservices ........................... SUCCESS [  1.613 s]
[INFO] gn-cloud-parent .................................... SUCCESS [  0.258 s]
[INFO] gn-cloud-support-services .......................... SUCCESS [  0.119 s]
[INFO] GeoNetwork discovery service ....................... FAILURE [ 17.672 s]
[INFO] GeoNetwork configuration service ................... SKIPPED
[INFO] GeoNetwork library ................................. SKIPPED
[INFO] GeoNetwork common utility .......................... SKIPPED
[INFO] GeoNetwork common security ......................... SKIPPED
[INFO] GeoNetwork common error ............................ SKIPPED
[INFO] GeoNetwork common index model ...................... SKIPPED
[INFO] GeoNetwork common search ........................... SKIPPED
[INFO] GeoNetwork common standard ......................... SKIPPED
[INFO] GeoNetwork common view ............................. SKIPPED
[INFO] GeoNetwork common error ............................ SKIPPED
[INFO] GeoNetwork standards ............................... SKIPPED
[INFO] GeoNetwork standard / ISO 19139 .................... SKIPPED
[INFO] GeoNetwork services ................................ SKIPPED
[INFO] GeoNetwork authorizing app ......................... SKIPPED
[INFO] GeoNetwork indexing app ............................ SKIPPED
[INFO] GeoNetwork search app .............................. SKIPPED
[INFO] GeoNetwork gateway service ......................... SKIPPED
[INFO] GeoNetwork OGC API Records service ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  20.287 s
[INFO] Finished at: 2025-09-08T11:45:19+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.8.RELEASE:build-image (build-image) on project gn-cloud-discovery: Execution build-image of goal org.springframework.boot:spring-boot-maven-plugin:2.3.8.RELEASE:build-image failed: Docker API call to 'localhost/v1.24/images/create?fromImage=gcr.io%2Fpaketo-buildpacks%2Fbuilder%3Abase-platform-api-0.3' failed with status code 403 "Forbidden" -> [Help 1]
[ERROR] 

Indeed trying to fetch the mentioned docker image by hand results in a 403 error from gcr.io:

% docker pull gcr.io/paketo-buildpacks/builder/base-platform-api-0.3
Using default tag: latest
Error response from daemon: Head "https://gcr.io/v2/paketo-buildpacks/builder/base-platform-api-0.3/manifests/latest": denied: Caller does not have permission or the resource may not exist 'read'. To configure permissions, follow instructions at: https://cloud.google.com/container-registry/docs/access-control

Trying to figure out why, I stumbled upon this blogpost: https://blog.paketo.io/posts/paketo-gcr-registry-sunset/. I tried to bump to the last version of the 2.3.x spring boot version (2.3.12) but with no luck. As stated in the blogpost, there may be a way to configure the spring boot maven plugin so that it gets the image from docker-hub instead, but I have not been further yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions