Pushing ang Image to GCR #24731
Replies: 5 comments 10 replies
-
/cc @geoand |
Beta Was this translation helpful? Give feedback.
-
I have never used google cloud before, but if you are trying to push an image image to a docker registry, what you need to configure is:
The properties you mentioned are used for pulling the base image from a private registry. |
Beta Was this translation helpful? Give feedback.
-
@loicmathieu have you perhaps used Quarkus with Jib on Google Cloud? |
Beta Was this translation helpful? Give feedback.
-
I was able to push my image now but we didn't use the built in quarkus jib. I tried jsonkey and oauthaccess token didn't seem to authenticate still for the push. We opted to use the jib-quarkus-extension-maven instead but it only supports legacy jars packaging |
Beta Was this translation helpful? Give feedback.
-
Authentication to GAR is done in multiple steps, more info here: https://cloud.google.com/container-registry/docs/advanced-authentication From local computer, you can use your gcloud account, here are the steps I use (replace with the correct GAR):
From our CI we authenticate using a GCP service account with the following steps:
Or via Github action:
Hope it will help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Im trying to push in image to google cloud with jib in our quarkus project (Migrated from spring boot).
Im getting below errors when doing cloud build. Works ok in my local (Local Registry)
artifactregistry.repositories.downloadArtifacts\" denied on resource \"PROJECT HERE\" (or it may not exist)"
Im not sure what configuration i missed. we have done a gcloud auth configure-docker prior to the actual build which worked when it was still a spring boot.
Im not sure what to specify in the below config files since we are using service accounts.
quarkus.jib.base-registry-username
quarkus.jib.base-registry-password
Can you please guide me on this one.
Beta Was this translation helpful? Give feedback.
All reactions