cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot deploy CAP application to Kyma runtime as packing docker image fails

09-19-2023 9:47 AM
renejurmann Participant
1357 views 3 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi experts,

I'm following the tutorial Deploy Your CAP Application to Kyma. In step 4 "Build CAP Service" I should run the command to pack the docker image and upload it to the container registry. Unfortunately this fails with following error:

ERROR: failed to build: downloading buildpack: extracting from registry 'gcr.io/paketo-buildpacks/nodejs': fetching image: error pulling image configuration: download failed after attempts=6: x509: certificate signed by unknown authority

I have a fresh Docker Desktop (no images available before executing the command).

So, how can I solve this?

regards

René

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

renejurmann
Participant
0 Likes

Hi all,

I found a solution:

As I use Docker Hub I executed following commands in the bash:

$CONTAINER_REGISTRY=docker.io/<My Docker User Name>
pack build $CONTAINER_REGISTRY/cpapp-srv --path gen/srv \
--buildpack paketo-buildpacks/nodejs \
--builder paketobuildpacks/builder-jammy-base \
--env BP_NODE_RUN_SCRIPTS=""

Executing these commands successfully created the Docker image.

So, in comparison to the tutorial I left out the "gcr.io/" from the nodejs buildpack and I used a container registry URL different than in my Docker config.json. (It should only be the domain of the URL in the config json and the user name must be added as path)

I don't know if this can be used for other container registries as well (Google/gcr.io, GitHub/ghcr.io, ...)

Answers (0)