integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
private synchronized void gitCloneDockerImagesSample() throws Exception {
    if (!domainHomeImageBuildPath.isEmpty()) {
      StringBuffer removeAndClone = new StringBuffer();
      LoggerHelper.getLocal().log(Level.INFO,
          "Checking if directory "
              + domainHomeImageBuildPath
              + " exists "
              + new File(domainHomeImageBuildPath).exists());
      if (new File(domainHomeImageBuildPath).exists()) {
        removeAndClone
            .append("rm -rf ")
            .append(resultsDir)
            .append("/docker-images && ");
      }
      String dockerImagesUrl = System.getenv("DOCKER_IMAGES_URL") != null
                ? System.getenv("DOCKER_IMAGES_URL")
                : "https://github.com/oracle/docker-images.git";
      // git clone docker-images project
      removeAndClone
          .append(" git clone ")
          .append(dockerImagesUrl)
          .append(" ")
          .append(resultsDir)
          .append("/docker-images");
      LoggerHelper.getLocal().log(Level.INFO, "Executing cmd " + removeAndClone);
      TestUtils.execOrAbortProcess(removeAndClone.toString());
    }
  }
/**
   * Remove docker-images sample directory if exists and clone latest from github for domain home in
   * image.
   *
   * @throws Exception if could not run the command successfully to clone of docker-images sample
   *                   from github
   */
Remove docker-images sample directory if exists and clone latest from github for domain home in
image.

@throws Exception if could not run the command successfully to clone of docker-images sample
from github
Remove docker - images sample directory if exists and clone latest from github for domain home in image . @throws Exception if could not run the command successfully to clone of docker - images sample from github
private synchronized void gitCloneDockerImagesSample() throws Exception {
    if (!domainHomeImageBuildPath.isEmpty()) {
      StringBuffer removeAndClone = new StringBuffer();
      LoggerHelper.getLocal().log(Level.INFO,
          "Checking if directory "
              + domainHomeImageBuildPath
              + " exists "
              + new File(domainHomeImageBuildPath).exists());
      if (new File(domainHomeImageBuildPath).exists()) {
        removeAndClone
            .append("rm -rf ")
            .append(resultsDir)
            .append("/docker-images && ");
      }
      String dockerImagesUrl = System.getenv("DOCKER_IMAGES_URL") != null
                ? System.getenv("DOCKER_IMAGES_URL")
                : "https://github.com/oracle/docker-images.git";
      removeAndClone
          .append(" git clone ")
          .append(dockerImagesUrl)
          .append(" ")
          .append(resultsDir)
          .append("/docker-images");
      LoggerHelper.getLocal().log(Level.INFO, "Executing cmd " + removeAndClone);
      TestUtils.execOrAbortProcess(removeAndClone.toString());
    }
  }
private synchronized void gitCloneDockerImagesSample ( ) throws Exception { if ( ! domainHomeImageBuildPath . isEmpty ( ) ) { StringBuffer removeAndClone = new StringBuffer ( ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if directory " + domainHomeImageBuildPath + " exists " + new File ( domainHomeImageBuildPath ) . exists ( ) ) ; if ( new File ( domainHomeImageBuildPath ) . exists ( ) ) { removeAndClone . append ( "rm -rf " ) . append ( resultsDir ) . append ( "/docker-images && " ) ; } String dockerImagesUrl = System . getenv ( "DOCKER_IMAGES_URL" ) != null ? System . getenv ( "DOCKER_IMAGES_URL" ) : "https://github.com/oracle/docker-images.git" ; removeAndClone . append ( " git clone " ) . append ( dockerImagesUrl ) . append ( " " ) . append ( resultsDir ) . append ( "/docker-images" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Executing cmd " + removeAndClone ) ; TestUtils . execOrAbortProcess ( removeAndClone . toString ( ) ) ; } }
Remove docker-images sample directory if exists and clone latest from github for domain home in
 image.
Remove docker - images sample directory if exists and clone latest from github for domain home in image .
// git clone docker-images project