new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItConfigDistributionStrategy.java
private void createDomainOnPVUsingWlst(Path wlstScriptFile, Path domainPropertiesFile,
      String pvName, String pvcName, String namespace) {
    logger.info("Preparing to run create domain job using WLST");

    List<Path> domainScriptFiles = new ArrayList<>();
    domainScriptFiles.add(wlstScriptFile);
    domainScriptFiles.add(domainPropertiesFile);

    logger.info("Creating a config map to hold domain creation scripts");
    String domainScriptConfigMapName = "create-domain-scripts-cm";

    assertDoesNotThrow(
        () -> createConfigMapForDomainCreation(
            domainScriptConfigMapName, domainScriptFiles, namespace, this.getClass().getSimpleName()),
        "Create configmap for domain creation failed");

    // create a V1Container with specific scripts and properties for creating domain
    V1Container jobCreationContainer = new V1Container()
        .addCommandItem("/bin/sh")
        .addArgsItem("/u01/oracle/oracle_common/common/bin/wlst.sh")
        .addArgsItem("/u01/weblogic/" + wlstScriptFile.getFileName()) //wlst.sh
        // script
        .addArgsItem("-skipWLSModuleScanning")
        .addArgsItem("-loadProperties")
        .addArgsItem("/u01/weblogic/" + domainPropertiesFile.getFileName());
    //domain property file

    logger.info("Running a Kubernetes job to create the domain");
    createDomainJob(image, isUseSecret, pvName, pvcName, domainScriptConfigMapName,
        namespace, jobCreationContainer);
  }
/**
   * Create a WebLogic domain on a persistent volume by doing the following. Create a configmap containing WLST script
   * and property file. Create a Kubernetes job to create domain on persistent volume.
   *
   * @param wlstScriptFile python script to create domain
   * @param domainPropertiesFile properties file containing domain configuration
   * @param pvName name of the persistent volume to create domain in
   * @param pvcName name of the persistent volume claim
   * @param namespace name of the domain namespace in which the job is created
   */
Create a WebLogic domain on a persistent volume by doing the following. Create a configmap containing WLST script
and property file. Create a Kubernetes job to create domain on persistent volume.


Create a WebLogic domain on a persistent volume by doing the following . Create a configmap containing WLST script and property file . Create a Kubernetes job to create domain on persistent volume .
private void createDomainOnPVUsingWlst(Path wlstScriptFile, Path domainPropertiesFile,
      String pvName, String pvcName, String namespace) {
    logger.info("Preparing to run create domain job using WLST");
    List<Path> domainScriptFiles = new ArrayList<>();
    domainScriptFiles.add(wlstScriptFile);
    domainScriptFiles.add(domainPropertiesFile);
    logger.info("Creating a config map to hold domain creation scripts");
    String domainScriptConfigMapName = "create-domain-scripts-cm";
    assertDoesNotThrow(
        () -> createConfigMapForDomainCreation(
            domainScriptConfigMapName, domainScriptFiles, namespace, this.getClass().getSimpleName()),
        "Create configmap for domain creation failed");
    V1Container jobCreationContainer = new V1Container()
        .addCommandItem("/bin/sh")
        .addArgsItem("/u01/oracle/oracle_common/common/bin/wlst.sh")
        .addArgsItem("/u01/weblogic/" + wlstScriptFile.getFileName()) 
        .addArgsItem("-skipWLSModuleScanning")
        .addArgsItem("-loadProperties")
        .addArgsItem("/u01/weblogic/" + domainPropertiesFile.getFileName());
    logger.info("Running a Kubernetes job to create the domain");
    createDomainJob(image, isUseSecret, pvName, pvcName, domainScriptConfigMapName,
        namespace, jobCreationContainer);
  }
private void createDomainOnPVUsingWlst ( Path wlstScriptFile , Path domainPropertiesFile , String pvName , String pvcName , String namespace ) { logger . info ( "Preparing to run create domain job using WLST" ) ; List < Path > domainScriptFiles = new ArrayList < > ( ) ; domainScriptFiles . add ( wlstScriptFile ) ; domainScriptFiles . add ( domainPropertiesFile ) ; logger . info ( "Creating a config map to hold domain creation scripts" ) ; String domainScriptConfigMapName = "create-domain-scripts-cm" ; assertDoesNotThrow ( ( ) -> createConfigMapForDomainCreation ( domainScriptConfigMapName , domainScriptFiles , namespace , this . getClass ( ) . getSimpleName ( ) ) , "Create configmap for domain creation failed" ) ; V1Container jobCreationContainer = new V1Container ( ) . addCommandItem ( "/bin/sh" ) . addArgsItem ( "/u01/oracle/oracle_common/common/bin/wlst.sh" ) . addArgsItem ( "/u01/weblogic/" + wlstScriptFile . getFileName ( ) ) . addArgsItem ( "-skipWLSModuleScanning" ) . addArgsItem ( "-loadProperties" ) . addArgsItem ( "/u01/weblogic/" + domainPropertiesFile . getFileName ( ) ) ; logger . info ( "Running a Kubernetes job to create the domain" ) ; createDomainJob ( image , isUseSecret , pvName , pvcName , domainScriptConfigMapName , namespace , jobCreationContainer ) ; }
Create a WebLogic domain on a persistent volume by doing the following.
Create a WebLogic domain on a persistent volume by doing the following .
// create a V1Container with specific scripts and properties for creating domain //wlst.sh // script //domain property file