Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5350

Get auto update functionality like "bundle:watch *" on snapshot artifacts from remote repositories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • karaf
    • None

    Description

      I now have a continous deployment pipeline for my project almost automated:

      1. All changes I would like deployed, I merge to master and then push master to github
      2. New pushes on master triggers a build on travis-ci
      3. A successful build on travis-ci results in a new snapshot being deployed to a maven repository accessible via HTTP
        1. The bundles that make up my application have been installed from snapshots in the maven repository, like so (karaf consolle commands):
          config:edit org.ops4j.pax.url.mvn
          config:property-append org.ops4j.pax.url.mvn.repositories ", https://maven.bang.priv.no/repository/@snapshots, http://maven.vaadin.com/vaadin-addons"
          config:property-set org.ops4j.pax.url.mvn.globalUpdatePolicy always
          config:update
          feature:repo-add mvn:no.priv.bang.ukelonn/ukelonn.karaf/LATEST/xml/features
          feature:install ukelonn-db-postgresql
          feature:install ukelonn
          
      4. The final step I have to do during a deployment, is to log in with ssh to the karaf console and give "bundle:update" on each bundle
        bundle:update no.priv.bang.ukelonn.api
        bundle:update no.priv.bang.ukelonn.db.liquibase
        bundle:update no.priv.bang.ukelonn.db.postgresql
        bundle:update no.priv.bang.ukelonn
        

      It is the final step I would like to have automated, so that new snapshots deployed to the remote repository is automatically picked up by karaf.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sb@dod.no Steinar Bang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: