These sample configurations are designed to enable the installation, configuration and environmental setup of a container-based Oracle Internet Directory 12.2.1.4.0 deployment, including the creation of both an Oracle Fusion Middleware (FMW) Infrastructure domain as well as OID specific servers.
The OID container image extends the Oracle Fusion Middleware Infrastructure container image, which extends the Oracle Java container image. Before you can build the OID container image, you must either build the prerequisite images using the resources provided in this repository or pull the pre-built version(s) from Oracle Container Registry. If you plan to use the Oracle Fusion Middleware Infrastructure image from the Oracle Container Registry, you can skip the next two steps and continue with building the Oracle Internet Directory container image.
NOTE: If you pull the Oracle Fusion Middleware Infrastructure image from the Oracle Container Registry then you must retag the image to replace
container-registry.oracle.com/middleware/
withoracle/
which is image name and tag that would have been created by a manual build.
$ docker pull container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.4
$ docker tag container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.4 oracle/fmw-infrastructure:12.2.1.4.0
The following prerequisites are necessary to build OID images:
- A working installation of Docker 18.03 or later
- Oracle Internet Directory installation binaries
- Oracle Java container image
- Oracle FMW Infrastructure container image
- A
git
client is required to clone this directory
Please review the Oracle Java container image documentation for details on how to build or pull the image.
Please review the Oracle FMW Infrastructure container image documentation for details on how to build or pull the image.
NOTE: Ensure that the FMW Infrastructure image is tagged as
oracle/fmw-infrastructure:12.2.1.4.0
before building the OID image.
- Create a working directory to store the installation binaries, scripts and other files required by the build process:
$ mkdir ~/workdir
$ export WORK_DIR="~/workdir"
- Clone the Oracle Docker Images GitHub repository:
$ cd "$WORK_DIR"
$ git clone https://github.com/oracle/docker-images
- From the Oracle Identity & Access Management Downloads page, download the Oracle Internet Directory 12cPS4 installer for Linux x86-64 (
fmw_12.2.1.4.0_oid_linux64_Disk1_1of1.zip
).
$ unzip fmw_12.2.1.4.0_oid_linux64_Disk1_1of1.zip
$ cp fmw_12.2.1.4.0_oid_linux64.bin "$WORK_DIR/docker-images/OracleInternetDirectory/dockerfiles/12.2.1.4.0/fmw_12.2.1.4.0_oid_linux64.bin"
- The build process will automatically apply any patches placed in the
12.2.1.4.0/patches
directory and any OPatch patches in12.2.1.4.0/opatch_patch
directory:
$ mkdir -p "$WORK_DIR/OracleInternetDirectory/dockerfiles/12.2.1.4.0/patches"
$ mkdir -p "$WORK_DIR/OracleInternetDirectory/dockerfiles/12.2.1.4.0/opatch_patch"
- Configure any proxies that are required to provide internet access::
$ export https_proxy=http://<proxy_server_hostname>:<proxy_server_port>
- Run the following command to build the OID image:
$ cd <work directory>/docker-images/OracleInternetDirectory/dockerfiles
$ sh buildDockerImage.sh -v 12.2.1.4.0
If successful, one can see the following at the end:
Successfully tagged oracle/oid:12.2.1.4.0
Oracle Internet Directory Image for version: 12.2.1.4.0 is ready to be extended.
--> oracle/oid:12.2.1.4.0
Build completed in 1225 seconds.
The OID Docker image is now built successfully.
- One can also use the following
docker build
command to build the OID image:
$ docker build --pull -t oracle/oid:12.2.1.4.0 .
Run the following command to make sure the Oracle Internet Directory image is installed in the docker images repository:
$ docker images | grep oid
The output will look similar to the following:
$ docker images | grep oid
oracle/oid 12.2.1.4.0 ef7252c9221c 18 hours ago 6.94GB
To download and run Oracle Fusion Middleware products, regardless whether inside or outside a container, you must download the binaries from the Oracle website and accept the license indicated at that page.
All scripts and files hosted in this project and GitHub docker-images/OracleInternetDirectory repository required to build the images are, unless otherwise noted, released under UPL 1.0 license.
Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl