You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "srikanthprathipati (via GitHub)" <gi...@apache.org> on 2023/05/20 07:13:38 UTC

[GitHub] [camel-k] srikanthprathipati opened a new issue, #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

srikanthprathipati opened a new issue, #4398:
URL: https://github.com/apache/camel-k/issues/4398

   Team,
   
   Did anyone managed to get Kamel Integration running with in a K8S cluster installed with Github packages. I am trying this from K8S running with my Docker Desktop
   
   **Steps to re-produce:**
   
   1. kamel install --cluster-type Kubernetes --force --registry ghcr.io --organization github-repo --registry-auth-username username --registry-auth-password github-token
   2. kamel run -d file://C:/Test/POC/camel-k-examples/generic-examples/kafka/sasl_ssl/custom.jar --config secret:kafka-props SaslSSLKafkaProducer.java --dev 
   
   **Error:**
   Error: Error trying to upload file://C:/Test/POC/camel-k-examples/generic-examples/kafka/sasl_ssl/custom.jar to the Image Registry.: POST https://ghcr.io/v2/*****/*****-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer-custom-1_12_0_jar/blobs/uploads/: UNAUTHORIZED: unauthenticated: User cannot be authenticated with the token provided.
   
   It works fine without the local dependencies when I run as below
   kamel run --config secret:kafka-props SaslSSLKafkaProducer.java --dev
   
   Can you please help on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1609167157

   Hi @johnpoth,
   
   Yes I did tried to install kamel with maven settings. But did not worked. Is this the correct config for id below? Can you please help on this?
   
   <settings>
       <servers>
           <server>
               **<id>org.apache.camel.k.external</id>**
               <username>srikanthprathipati</username>
               <password>************************</password>
           </server>
       </servers>
   </settings>
   
   Below is the result of wget 
   
   sri@LAPTOP-P8HBJ8P8:~/p9soamigration$ wget ghcr.io//camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   --2023-06-27 15:18:18--  http://ghcr.io//camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   Resolving ghcr.io (ghcr.io)... 140.82.114.33
   Connecting to ghcr.io (ghcr.io)|140.82.114.33|:80... connected.
   HTTP request sent, awaiting response... 301 Moved Permanently
   Location: https://ghcr.io//camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom [following]
   --2023-06-27 15:18:19--  https://ghcr.io//camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   Connecting to ghcr.io (ghcr.io)|140.82.114.33|:443... connected.
   HTTP request sent, awaiting response... 301 Moved Permanently
   Location: /camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom [following]
   --2023-06-27 15:18:21--  https://ghcr.io/camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   Reusing existing connection to ghcr.io:443.
   HTTP request sent, awaiting response... 303 See Other
   Location: https://github.com/-/camelk-docker-packages/packages/container/package/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom [following]
   --2023-06-27 15:18:21--  https://github.com/-/camelk-docker-packages/packages/container/package/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   Resolving github.com (github.com)... 140.82.121.3
   Connecting to github.com (github.com)|140.82.121.3|:443... connected.
   HTTP request sent, awaiting response... 404 Not Found
   2023-06-27 15:18:23 ERROR 404: Not Found.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1557197503

   HI @johnpoth ,
   
   This is the below error when I run with verbose.
   
   We've noticed the image registry is configured with a Secret [camel-k-registry-secret]
   Please configure Docker authentication correctly or the operation will fail (by default it's $HOME/.docker/config.json).
   More information can be found here https://docs.docker.com/engine/reference/commandline/login/
   Added mvn:org.apache.camel.k.external:sasl-ssl-kafka-producer2-enterprise-data-models:jar:1.12.0 to the Integration's dependency list
   spectrum - 2023/05/22 18:39:20 Pulling base image  (insecure=true)...
   spectrum - 2023/05/22 18:39:20 Composing layers...
   spectrum - 2023/05/22 18:39:20 Pushing image ghcr.io/********/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer2-enterprise-data-models-1_12_0_jar:1.12.0 (insecure=false)...
   spectrum - 2023/05/22 18:39:21 existing blob: sha256:01222e9e6a80285963c98425f26b7859896a062d5a492cba806874e585493d86
   spectrum - 2023/05/22 18:39:21 existing blob: sha256:c41a1d8bba527095bc40eb3ed60ec313e9afc082cf7b84046ae700d54c36e9b2
   spectrum - 2023/05/22 18:39:31 retrying PUT https://ghcr.io/v2/********/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer2-enterprise-data-models-1_12_0_jar/manifests/1.12.0: UNKNOWN: unknown error
   spectrum - 2023/05/22 18:39:42 retrying PUT https://ghcr.io/v2/********/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer2-enterprise-data-models-1_12_0_jar/manifests/1.12.0: UNKNOWN: unknown error
   spectrum - 2023/05/22 18:39:55 retrying PUT https://ghcr.io/v2/********/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer2-enterprise-data-models-1_12_0_jar/manifests/1.12.0: UNKNOWN: unknown error
   Error: Error trying to upload file://enterprise-data-models.jar to the Image Registry.: PUT https://ghcr.io/v2/********/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer2-enterprise-data-models-1_12_0_jar/manifests/1.12.0: UNKNOWN: unknown error


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1556865793

   Hello ! 
   
   I think you need to do a [docker login ghcr.io](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic) first and you should be good to go, so something like:
   
   ```
   $ export CR_PAT=YOUR_TOKEN
   $ echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
   > Login Succeeded
   ```
   
   Let me know if that works .... 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1607124026

   Below is my command
   
   kamel run --name I787982 --maven-repository https://packages.confluent.io/maven/@id=confluent -d mvn:io.confluent:kafka-protobuf-serializer:7.4.0 -d "file://enterprise-data-models.jar?targetPath=/etc/camel/resources/enterprise-data-models.jar&classpath=true" --config secret:kafka-props SaslSSLKafkaProducer2.java --dev -t logging.level=DEBUG --verbose
   
   2023-06-26 14:44:36 {"level":"error","ts":1687770876.8199224,"logger":"camel-k.maven.build","msg":"Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.12.0: Failed to collect dependencies at org.apache.camel.k.external:i787982-enterprise-data-models:jar:1.12.0: Failed to read artifact descriptor for org.apache.camel.k.external:i787982-enterprise-data-models:jar:1.12.0: Could not transfer artifact org.apache.camel.k.external:i787982-enterprise-data-models:pom:1.12.0 from/to image-registry (docker://ghcr.io/*******/camelk-docker-packages): Unauthorized for ghcr.io/******/camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1557050424

   Hello @johnpoth and @squakez ,
   
   Thanks for responding back.
   I did tried the below.
   
   $ export CR_PAT=YOUR_TOKEN
   $ echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
   > Login Succeeded
   
   But still fails with the below error.
   
   spectrum - 2023/05/22 16:54:52 retrying PUT https://ghcr.io/v2/****/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-custom_1_12_0_sasl-ssl-kafka-producer2-custom-1_12_0_jar/manifests/1.12.0: UNKNOWN: unknown error
   
   Error: Error trying to upload file://custom.jar to the Image Registry.: PUT https://ghcr.io/v2/******/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-custom_1_12_0_sasl-ssl-kafka-producer2-custom-1_12_0_jar/manifests/1.12.0: UNKNOWN: unknown error


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1558488274

   Hi @johnpoth ,
   
   Yes, I am able to push and pull images from GHCR. 
   
   I don't see any issues when use Kamel run with dependencies also.
   
   I will re-try again and update you here.
   
   Thank you, 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1556689297

   Hello, I think the feature is missing the possibility to pull/push from private registries as it misses the configuration of the secret/token that is required to authenticate to the registry:
   
   https://github.com/apache/camel-k/blob/6568943254db4e0f65401aada12c638a68e7b88d/pkg/cmd/run.go#L1281
   
   Not sure if it's a leftover or we did not mean to support it. @johnpoth, wdyt?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1557439767

   Hi @srikanthprathipati,
   
   Unfortunately I was not able to reproduce and I am able to upload local dependencies to my [GHCR](https://github.com/johnpoth?tab=packages):
   
   ```
   $./kamel run examples/languages/SampleS3.java -d file://e2e/global/registry/files/sample-decryption-1.0.jar --verbose
   ....
   spectrum - 2023/05/22 15:19:19 **ghcr.io/johnpoth/maven_org_apache_camel_k_external_sample-decryption_1_0_sample-decryption-1_0_jar:1.0**: digest: sha256:0a8f93e4a10e72e6a9dca7ad7593b7902fa4ff4d15509f67dc359430026d29b0 size: 424
   ```
   
   Does your token have **delete** and **write** rights in your organization ?
   
   Are you able to push images with the docker CLI ? It would be nice if you could try to tag and push a dummy image to:
   
   ```
   docker push ghcr.io/********/camelk-docker-packages/maven_org_apache_camel_k_external_sasl-ssl-kafka-producer2-enterprise-data-models_1_12_0_sasl-ssl-kafka-producer2-enterprise-data-models-1_12_0_jar:1.12.0
   ```
   
   Hopefully Docker will through a more meaningful error then the `go-containerregistry`library.
   
   Thanks !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1609542760

   HI @johnpoth,
   
   I have used the same and it fails with the below error. Hence was requesting for any working sample.
   
   ```
   <settings>
       <servers>
           <server>
               <id>ghcr.io</id>
               <username>srikanthprathipati</username>
               <password>*********</password>
           </server>
       </servers>
   </settings>
   ```
   
   ```
   {"level":"info","ts":1687868306.4306052,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"default","request-name":"saslproducer"}
   2023-06-27 17:48:26 {"level":"info","ts":1687868306.4306955,"logger":"camel-k.controller.integration","msg":"Invoking action monitor","request-namespace":"default","request-name":"saslproducer","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"saslproducer"}
   2023-06-27 17:48:26 {"level":"error","ts":1687868306.44857,"msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"saslproducer","namespace":"default"},"namespace":"default","name":"saslproducer","reconcileID":"481665b3-8b05-409d-a4af-be312deed7ef","error":"error during trait customization: unable to find integration container: saslproducer","errorVerbose":"unable to find integration container: saslproducer\nerror during trait customization\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:59\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:114\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:361\ngithub.com/apache/camel-k/pkg/util
 /monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1571","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/contro
 ller/controller.go:326\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234"}
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1609529735

   Hello @srikanthprathipati !
   
   Yes this is normal because the id must be **image-registry**. So in your case it should be:
   
   ```
           <server>
               <id>image-registry</id>
               <username>srikanthprathipati</username>
               <password>*********</password>
           </server>
   ```
   
   Then it should work.
   
   As for the wget command, I think you need the name of your organisation in the URL:
   
   ```
   wget ghcr.io/YOUR_ORGANISATION/camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   ```
   I think you removed it when posting to remove sensitive information.
   
   HTH !
   
   John


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1609899816

   Hi @srikanthprathipati,
   
   Please have a look at the id tag. It needs to be equal to **image-registry**
   
   ```
   <settings>
       <servers>
           <server>
               <id>image-registry</id>
               <username>srikanthprathipati</username>
               <password>*********</password>
           </server>
       </servers>
   </settings>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1560946135

   Hi @johnpoth ,
   
   Thanks for the help, after the docker login and running the integration with  --name it worked.
   
   When try to push docker image  it throws the below error.
   
   docker push ghcr.io/******/camelk-docker-packages/camel-k-kit-chkc2840p1b4sopd2bcg@sha256:05f7dacf1722f70f60ea9131964c3148cabfeba4b2240b1d560fe8326d99d4b3
   cannot push a digest reference.
   
   But when I run Kamel run with --name
   
   CLI created the image with ghcr.io/*****/camelk-docker-packages/maven_org_apache_camel_k_external_i4141-enterprise-data-models_1_12_0_i4141-enterprise-data-models-1_12_0_jar_sha1:1.12.0 and it worked fine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1606129455

   Hi @johnpoth ,
   
   Apologies for the confusion above. 
   Even --name did not worked.
   It got rid of UNKNOWN: unknown error but still fails at the build stage.
   
   Do you have a working sample that can be shared here?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1610772867

   Hi @johnpoth ,
   
   Thanks a ton for guiding on this, works like a charm after changing my settings to the above comment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] srikanthprathipati closed issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "srikanthprathipati (via GitHub)" <gi...@apache.org>.
srikanthprathipati closed issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR   
URL: https://github.com/apache/camel-k/issues/4398


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1557094305

   Thanks @srikanthprathipati, it looks like you are getting a different error specifically when uploading the image manifest. Could you run in _verbose_ mode? I'll try to reproduce the error in the meantime... thanks!
   
   ```
   kamel run -d file://C:/Test/POC/camel-k-examples/generic-examples/kafka/sasl_ssl/custom.jar --config secret:kafka-props SaslSSLKafkaProducer.java --verbose --dev
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1609118732

   Hi @srikanthprathipati!
   
   It looks like you also have to be authenticated to pull from your organisation too. You can check that on your side by doing an HTTP get (add the full URL):
   
   ```
   wget ghcr.io//camelk-docker-packages/maven_org_apache_camel_k_external_i787982-enterprise-data-models_1_12_0_i787982-enterprise-data-models-1_12_0_pom
   ```
   
   You should get the same Unauthorized error. 
   
   If that is the case, you have to update your camel-k Maven settings with the correct credentials \[1\]. The server tags should look like this and needs to have **id**=image-registry:
   
   ```
   <server>
     <id>image-registry</id>
     <username>YOUR_USERNAME</username>
     <password>YOUR_PASSWORD</password>
   </server>
   ```
   
   If you want to encrypt your username and password you can use a Maven Security File \[2\]
   
   HTH !
   
   \[1\] https://camel.apache.org/camel-k/1.12.x/configuration/maven.html#maven-settings
   \[2\] https://camel.apache.org/camel-k/1.12.x/configuration/maven.html#maven-settings-security


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] johnpoth commented on issue #4398: kamel run | custom dependencies | local files | K8S Cluster with GHCR

Posted by "johnpoth (via GitHub)" <gi...@apache.org>.
johnpoth commented on issue #4398:
URL: https://github.com/apache/camel-k/issues/4398#issuecomment-1610942284

   My pleasure, I'm glad it's working!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org