8000 opennms/container/karaf at develop · ebahmer/opennms · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

karaf

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Upgrading Karaf

To upgrade our container to use a new base Karaf version, follow these steps.

  1. Download and unpack the new Karaf tar.gz file.
  2. Run this command to see the differences in the Karaf etc files: diff -r $KARAF_DIR/etc $SRC_DIR/container/karaf/src/main/filtered-resources/etc
  3. Apply any relevant changes to the files inside $SRC_DIR/container/karaf/src/main/filtered-resources/etc.
  4. Copy the new Karaf "standard" features.xml file into the container project: cp $KARAF_DIR/system/org/apache/karaf/features/standard/$KARAF_VERSION/standard-$KARAF_VERSION-features.xml $SRC_DIR/container/karaf/src/main/filtered-resources/features/features.xml
  5. Restore the HTTP bridge changes to the features.xml file by making all of the changes between the OPENNMS CUSTOMIZATION comment blocks.
  6. Copy the new Karaf "spring" features.xml file into the container project: cp $KARAF_DIR/system/org/apache/karaf/features/spring/$KARAF_VERSION/spring-$KARAF_VERSION-features.xml $SRC_DIR/container/karaf/src/main/filtered-resources/features/spring.xml
  7. Remove the unmodified standard features repo from the spring.xml file by making all of the changes between the OPENNMS CUSTOMIZATION comment blocks.
  8. Update $SRC_DIR/pom.xml with new value for property.

See commit dea910701c3f48e367636b507fc575b59e70b843 for an example of an upgrade.

0