Skip to content

Commit

Permalink
Merge branch 'hide-ohs' into 'main'
Browse files Browse the repository at this point in the history
Temporarily hide OHS and OHS_DB19 type from create image operation.

See merge request weblogic-cloud/weblogic-image-tool!484
  • Loading branch information
ddsharpe committed Sep 20, 2024
2 parents 38100af + ac71734 commit 324a049
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
1 change: 0 additions & 1 deletion documentation/site/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Use WebLogic Image Tool to create, update, and rebase the following FMW product
* Oracle WebLogic Server (WLS)
* Fusion Middleware Infrastructure (FMW)
* Oracle BPM Suite for business process (SOA)
* Oracle HTTP Server (OHS_DB19)
* Oracle Service Bus (OSB)
* Oracle Data Integrator (ODI)
* Oracle Access Management (OAM)
Expand Down
2 changes: 1 addition & 1 deletion documentation/site/content/userguide/tools/create-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Usage: imagetool create [OPTIONS]
| `--skipcleanup` | Do not delete the build context folder, intermediate images, and failed build containers. For debugging purposes. | |
| `--strictPatchOrdering` | Instruct OPatch to apply patches one at a time (uses `apply` instead of `napply`). | |
| `--target` | Select the target environment in which the created image will be used. Supported values: `Default` (Docker/Kubernetes), `OpenShift`. See [Additional information](#--target). | `Default` |
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OHS`, `OHS_DB19`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `ODI`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `ODI`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
| `--user` | Oracle support email ID. When supplying `user`, you must supply the password either as an environment variable using `--passwordEnv`, or as a file using `--passwordFile`, or interactively, on the command line with `--password`. | |
| `--version` | Installer version. | `12.2.1.3.0` |
| `--wdtArchive` | A WDT archive ZIP file or comma-separated list of files. | |
Expand Down
2 changes: 1 addition & 1 deletion documentation/site/content/userguide/tools/rebase-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Usage: imagetool rebase [OPTIONS]
| `--strictPatchOrdering` | Instruct OPatch to apply patches one at a time (uses `apply` instead of `napply`). | |
| `--target` | Select the target environment in which the created image will be used. Supported values: `Default` (Docker/Kubernetes), `OpenShift`. See [Additional information](#--target). | `Default` |
| `--targetImage` | Container image to extend for the domain's new image. | |
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OHS`, `OHS_DB19`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `ODI`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `ODI`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
| `--user` | Your Oracle support email ID. When supplying `user`, you must supply the password either as an environment variable using `--passwordEnv`, or as a file using `--passwordFile`, or interactively, on the command line with `--password`. | |
| `--version` | Installer version. | `12.2.1.3.0` |

Expand Down
2 changes: 1 addition & 1 deletion documentation/site/content/userguide/tools/update-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Update WebLogic Docker image with selected patches
| `--skipcleanup` | Do not delete the build context folder, intermediate images, and failed build containers. For debugging purposes. | |
| `--strictPatchOrdering` | Instruct OPatch to apply patches one at a time (uses `apply` instead of `napply`). | |
| `--target` | Select the target environment in which the created image will be used. Supported values: `Default` (Docker/Kubernetes), `OpenShift`. See [Additional information](#--target). | `Default` |
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OHS`, `OHS_DB19`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `ODI`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `ODI`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
| `--user` | Oracle support email ID. When supplying `user`, you must supply the password either as an environment variable using `--passwordEnv`, or as a file using `--passwordFile`, or interactively, on the command line with `--password`. | |
| `--wdtArchive` | A WDT archive ZIP file or comma-separated list of files. | |
| `--wdtDomainHome` | Path to the `-domain_home` for WDT. | `/u01/domains/base_domain` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -395,8 +396,20 @@ String getPassword() {
)
private boolean skipOpatchUpdate = false;

// Temporary change to hide OHS install options due to unresolved patching issues
static class InstallerTypeCandidates extends ArrayList<String> {
InstallerTypeCandidates() {
super(Arrays.stream(FmwInstallerType.values())
.filter(e -> e != FmwInstallerType.OHS)
.filter(e -> e != FmwInstallerType.OHS_DB19)
.map(Enum::toString)
.collect(Collectors.toList()));
}
}

@Option(
names = {"--type"},
completionCandidates = InstallerTypeCandidates.class,
description = "Installer type. Default: WLS. Supported values: ${COMPLETION-CANDIDATES}"
)
private FmwInstallerType installerType = FmwInstallerType.WLS;
Expand Down

0 comments on commit 324a049

Please sign in to comment.