You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/09 02:30:13 UTC

[GitHub] [camel-k] elainhelen commented on issue #2737: How to package integration to deploy it into a private k8s cluster without internet connection

elainhelen commented on issue #2737:
URL: https://github.com/apache/camel-k/issues/2737#issuecomment-963757032


   I got a bit ahead, but have more questions on `kamel local`
   I used `kamel local build basic.java --image xxxx/basic-image`
   which creates an image xxxx/basic-image on my local development machine.
   Then move the image to the private k8s cluster and run `kamel local run --image xxxx/basic-image`
   and it executed: `docker run --network=host -t xxxx/basic-image:latest` and started to output logs
   ```
   {"timestamp":"2021-11-08T23:44:44.255Z","sequence":95,"loggerClassName":"org.slf4j.impl.Slf4jLogger","loggerName":"org.apache.camel.k.Runtime","level":"INFO","message":"Apache Camel K Runtime 1.9.1","threadName":"main","threadId":1,"mdc":{},"ndc":"","hostName":"docker-desktop","processName":"io.quarkus.bootstrap.runner.QuarkusEntryPoint","processId":9}
   {"timestamp":"2021-11-08T23:44:44.281Z","sequence":96,"loggerClassName":"org.jboss.logging.Logger","loggerName":"org.apache.camel.quarkus.core.CamelBootstrapRecorder","level":"INFO","message":"Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime","threadName":"main","threadId":1,"mdc":{},"ndc":"","hostName":"docker-desktop","processName":"io.quarkus.bootstrap.runner.QuarkusEntryPoint","processId":9}
   {"timestamp":"2021-11-08T23:44:44.3Z","sequence":97,"loggerClassName"
   
   ```
   
   Questions:
   What is the usage of the base image (ex. xxxx/integration-base-image) created from
   `kamel local build --base-image --container-registry xxxx` ?
   Can I use this image to run the integration-directory created from `kamel local build basic.java --integration-directory ~/test/int` ?
   
   Tried to run `kamel local run --containerize --image xxxx/integration-base-image --integration-directory ~/test/int`
   Got the following error
   ```
   Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
   Executing: docker run --network=host -t xxxx/integration-base-image:latest
   Exception in thread "main" java.nio.file.NoSuchFileException: /quarkus/quarkus-application.dat
   	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
   	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
   	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
   	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
   	at java.base/java.nio.file.Files.newByteChannel(Files.java:371)
   	at java.base/java.nio.file.Files.newByteChannel(Files.java:422)
   	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
   	at java.base/java.nio.file.Files.newInputStream(Files.java:156)
   	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:41)
   	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:25)
   integration image did not run successfully: exit status 1
   ```
   
   Is it feasible to pre-package one base image? and use it to run/load different integrations from their own integration-directory


-- 
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