Class DevDebugUtils


  • public class DevDebugUtils
    extends Object
    Utility functions for developing and debugging our containers.
    Author:
    jwhite
    • Constructor Detail

      • DevDebugUtils

        public DevDebugUtils()
    • Method Detail

      • convertToContainerAccessibleUrl

        public static String convertToContainerAccessibleUrl​(String url,
                                                             String defaultAlias,
                                                             int defaultPort)
      • setupMavenRepoBind

        public static void setupMavenRepoBind​(org.testcontainers.containers.Container container,
                                              String containerPath)
        Bind the local repository derived from the 'org.opennms.dev.m2' system property to the specified path in the container. The path should typically be the value of the 'org.ops4j.pax.url.mvn.localRepository' property in ${karaf.home}/etc/org.ops4j.pax.url.mvn.cfg.
        Parameters:
        containerPath - target path in the container
      • triggerThreadDump

        public static void triggerThreadDump​(org.testcontainers.containers.Container container)
      • copyLogs

        public static void copyLogs​(org.testcontainers.containers.Container container,
                                    Path targetLogFolder,
                                    Path sourceLogFolder,
                                    List<String> logFiles)