Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18006

camel-jbang package image command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • 3.17.0
    • camel-jbang
    • None
    • Unknown

    Description

      Create image from jar with tag:

      jbang camel@apache/camel build image --jar runner.jar --tag camel/demo
      

      Create image from jar with tag from specified *base image *:

      jbang camel@apache/camel build image --jar runner.jar --tag camel/demo --from registry.access.redhat.com/ubi8/openjdk-11-runtime:1.11
      

      if you want to deploy later to minikube, execute the following command before build:

      eval $(minikube -p minikube docker-env
      

      Push image from jar with tag to registry:

      jbang camel@apache/camel build image --jar runner.jar --tag camel/demo --registry registry.access.redhat.com/camel/jbang-demo --username demo --password demo
      

      Build in OpenShift (BuildConfig + Build + ImageStream)

      jbang camel@apache/camel build image --jar target/camel-timer-1.0.0-runner.jar  --version 1.0.0 --namespace demos --name demo --server https://xxx.opentlc.com:6443 --token=XXX --openshift 
      
      

      Attachments

        Issue Links

          Activity

            People

              marat.gubaidullin@gmail.com Marat Gubaidullin
              marat.gubaidullin@gmail.com Marat Gubaidullin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: