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

2023-06-27 Thread via GitHub


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**
   
   ```
   
   
   
   image-registry
   srikanthprathipati
   *
   
   
   
   ```


-- 
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-unsubscr...@camel.apache.org

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



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

2023-06-27 Thread via GitHub


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:
   
   ```
   
   image-registry
   srikanthprathipati
   *
   
   ```
   
   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-unsubscr...@camel.apache.org

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



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

2023-06-27 Thread via GitHub


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:
   
   ```
   
 image-registry
 YOUR_USERNAME
 YOUR_PASSWORD
   
   ```
   
   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-unsubscr...@camel.apache.org

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



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

2023-05-22 Thread via GitHub


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-unsubscr...@camel.apache.org

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



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

2023-05-22 Thread via GitHub


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-unsubscr...@camel.apache.org

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



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

2023-05-22 Thread via GitHub


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-unsubscr...@camel.apache.org

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