Skip to content

Commit 8240771

Browse files
committed
fix lint errors
1 parent b52ae47 commit 8240771

File tree

5 files changed

+24
-22
lines changed

5 files changed

+24
-22
lines changed

OracleFMWInfrastructure/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Oracle Fusion Middleware Infrastructure on Docker
22

3-
This repository contains sample Docker configurations to facilitate installation, configuration, and environment setup for DevOps users. This project includes quick start [Dockerfiles](https://github.com/oracle/docker-images/tree/main/OracleFMWInfrastructure/dockerfiles) and [samples](https://github.com/oracle/docker-images/tree/main/OracleFMWInfrastructure/samples) for Oracle Fusion Middleware Infrastructure (FMW Infrastructure) 12.2.1.4, and 14.1.2.0 based on Oracle Linux and Oracle JDK 8, 17, and 21.
3+
This repository contains sample Docker configurations to facilitate installation, configuration, and environment setup for DevOps users.
4+
This project includes quick start [Dockerfiles](https://github.com/oracle/docker-images/tree/main/OracleFMWInfrastructure/dockerfiles) and [samples](https://github.com/oracle/docker-images/tree/main/OracleFMWInfrastructure/samples) for Oracle Fusion Middleware Infrastructure (FMW Infrastructure) 12.2.1.4, and 14.1.2.0 based on Oracle Linux and Oracle JDK 8, 17, and 21.
45

56
**IMPORTANT**: We provide Dockerfiles as samples to build FMW Infrastructure images but this is _NOT_ a recommended practice. We recommend obtaining patched FMW Infrastructure images; patched images have the latest security patches. For more information, see [Obtaining, Creating, and Updating Oracle Fusion Middleware Images with Patches](https://docs.oracle.com/en/middleware/fusion-middleware/12.2.1.4/opatc/obtaining-creating-and-updating-oracle-fusion-middleware-images-patches.html#GUID-4FB15429-C985-472F-BDC6-669CA1B678E8).
67

OracleFMWInfrastructure/dockerfiles/14.1.2.0/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ RUN mkdir -p /u01 && \
8888
mkdir -p $VOLUME_DIR && chown oracle:oracle /u01 $VOLUME_DIR && \
8989
mkdir -p /u01/oracle/container-scripts && \
9090
microdnf update && \
91-
microdnf install libaio libnsl jq && \
91+
microdnf install -y libaio libnsl jq && \
9292
microdnf clean all
9393

9494

OracleFMWInfrastructure/dockerfiles/14.1.2.0/README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Oracle Fusion Middleware Infrastructure on Docker
22

3-
This Docker configuration has been used to create the Oracle Fusion Middleware Infrastructure image. Providing this FMW image facilitates the configuration and environment set up for DevOps users. This FMW Infrastructure 14.1.2.0 image is based on Oracle Linux and Oracle JDK 17 or Oracle JDK 21. This project includes the creation of a FMW Infrastructure domain.
3+
This Docker configuration has been used to create the Oracle Fusion Middleware Infrastructure image. Providing this FMW image facilitates the configuration and environment set up for DevOps users. This FMW Infrastructure 14.1.2.0 image is based on Oracle Linux and Oracle JDK 17 or Oracle JDK 21. This project includes the creation of a FMW Infrastructure domain.
44

55
**IMPORTANT**: We provide Dockerfiles as samples to build FMW Infrastructure images but this is _NOT_ a recommended practice. We recommend obtaining patched FMW Infrastructure images have the latest security patches. For more information, see [Obtaining, Creating, and Updating Oracle Fusion Middleware Images with Patches] (<https://docs.oracle.com/en/middleware/fusion-middleware/14.1.2/opatc/obtaining-creating-and-updating-oracle-fusion-middleware-images-patches.html>).
66

@@ -45,51 +45,53 @@ The format of the `domain_security.properties` file is key=value pair.
4545
**Note**: Oracle recommends that the `domain_security.properties` file be deleted or secured after the container and WebLogic Server are started so that the user name and password are not inadvertently exposed.
4646

4747
### Write your own Oracle Fusion Middleware Infrastructure domain with WLST
48-
The best way to create your own domain, or extend an existing domain, is by using the [WebLogic Scripting Tool](https://docs.oracle.com/en/middleware/fusion-middleware/14.1.2/wlstg/index.html). You can find an example of a WLST script to create domains at [`createInfraDomain.py`](dockerfiles/14.1.2.0/container-scripts/createInfraDomain.py). You may want to tune this script with your own setup to create datasources and connection pools, security realms, deploy artifacts, and so on. You can also extend images and override an existing domain, or create a new one with WLST.
48+
The best way to create your own domain, or extend an existing domain, is by using the [WebLogic Scripting Tool](https://docs.oracle.com/en/middleware/fusion-middleware/14.1.2/wlstg/index.html). You can find an example of a WLST script to create domains at [`createInfraDomain.py`](dockerfiles/14.1.2.0/container-scripts/createInfraDomain.py).
49+
You may want to tune this script with your own setup to create datasources and connection pools, security realms, deploy artifacts, and so on. You can also extend images and override an existing domain, or create a new one with WLST.
4950

5051
## Running the Oracle FMW Infrastructure domain Docker image
51-
To run an FMW Infrastructure domain sample container, you will need the FMW Infrastructure domain image and an Oracle database. The Oracle database could be remote or running in a container. If you want to run the Oracle database in a container, you can either pull the image from the [Docker Store](https://store.docker.com/images/oracle-database-enterprise-edition) or the [Oracle Container Registry](https://container-registry.oracle.com), or build your own image using the Dockerfiles and scripts in this Git repository.
52+
To run an FMW Infrastructure domain sample container, you will need the FMW Infrastructure domain image and an Oracle database. The Oracle database could be remote or running in a container.
53+
If you want to run the Oracle database in a container, you can either pull the image from the [Docker Store](https://store.docker.com/images/oracle-database-enterprise-edition) or the [Oracle Container Registry](https://container-registry.oracle.com), or build your own image using the Dockerfiles and scripts in this Git repository.
5254

5355
Follow the steps below:
5456

55-
1. Create the Docker network for the infra server to run:
57+
1. Create the Docker network for the infra server to run:
5658

57-
`$ docker network create -d bridge InfraNET`
59+
`$ docker network create -d bridge InfraNET`
5860

59-
2. Run the database container to host the RCU schemas.
61+
2. Run the database container to host the RCU schemas.
6062

6163
The Oracle database server container requires custom configuration parameters for starting up the container. These custom configuration parameters correspond to the datasource parameters in the FMW Infrastructure image to connect to the database running in the container.
6264

6365
Add to an `env.txt` file, the following parameters:
6466

65-
`DB_SID=InfraDB`
67+
`DB_SID=InfraDB`
6668

67-
`DB_PDB=InfraPDB1`
69+
`DB_PDB=InfraPDB1`
6870

69-
`DB_DOMAIN=us.oracle.com`
71+
`DB_DOMAIN=us.oracle.com`
7072

71-
`DB_BUNDLE=basic`
73+
`DB_BUNDLE=basic`
7274

73-
`$ docker run -d --name InfraDB --network=InfraNET -p 1521:1521 -p 5500:5500 --env-file env.txt -it --shm-size="8g" container-registry.oracle.com/database/enterprise:19.19.0.0`
75+
`$ docker run -d --name InfraDB --network=InfraNET -p 1521:1521 -p 5500:5500 --env-file env.txt -it --shm-size="8g" container-registry.oracle.com/database/enterprise:19.19.0.0`
7476

7577

7678
Verify that the database is running and healthy. The `STATUS` field shows `healthy` in the output of `docker ps`.
7779

7880
The database is created with the default password `Oradoc_db1`. To change the database password, you must use `sqlplus`. To run `sqlplus`, pull the Oracle Instant Client from the Oracle Container Registry or the Docker Store, and run a `sqlplus` container with the following command:
7981

80-
$ docker run -ti --network=InfraNET --rm store/oracle/database-instantclient:12.2.0.1 sqlplus sys/Oradoc_db1@InfraDB:1521/InfraDB.us.oracle.com AS SYSDBA
82+
`$ docker run -ti --network=InfraNET --rm store/oracle/database-instantclient:12.2.0.1 sqlplus sys/Oradoc_db1@InfraDB:1521/InfraDB.us.oracle.com AS SYSDBA`
8183

82-
SQL> alter user sys identified by MYDBPasswd container=all;
84+
`SQL> alter user sys identified by MYDBPasswd container=all;`
8385

8486
### Build the FMW Infrastructure Image
8587

86-
1. To build the `14.1.2.0` FMW Infrastructure image, run:
88+
1. To build the `14.1.2.0` FMW Infrastructure image, run:
8789

88-
`$ sh buildDockerImage.sh -v 14.1.2.0
90+
`$ sh buildDockerImage.sh -v 14.1.2.0`
8991

90-
2. Verify that you now have this image in place with:
92+
2. Verify that you now have this image in place with:
9193

92-
`$ docker images`
94+
`$ docker images`
9395

9496
## Start the containers
9597
In this image, the domain home will be persisted to a volume in the host. The `-v` option is used at Docker runtime to map the image directory where the domain home is persisted, `/u01/oracle/user_projects/domains`, to the host directory you have defined in `domain.properties` `DOMAIN_HOST_VOLUME`.
@@ -150,4 +152,4 @@ You will need the ip.address of the Admin server container to later use to conne
150152
7. Click OK to establish the connection.
151153

152154
## Copyright
153-
Copyright (c) 2025 Oracle and/or its affiliates. All rights reserved.
155+
Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.

OracleFMWInfrastructure/dockerfiles/14.1.2.0/container-scripts/setEnv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extract_env() {
2020
if [ -n "$env_value" ]; then
2121
env_arg=`echo $1=$env_value`
2222
echo " env_arg: $env_arg"
23-
export $env_arg
23+
export env_arg
2424
fi
2525
}
2626

OracleFMWInfrastructure/dockerfiles/buildDockerImage.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ docker build --force-rm=$NOCACHE --no-cache=$NOCACHE $PROXY_SETTINGS -t $IMAGE_N
156156
BUILD_END=$(date '+%s')
157157
BUILD_ELAPSED=`expr $BUILD_END - $BUILD_START`
158158

159-
echo ""
160159

161160
status="$?"
162161
if [ "$status" -eq 0 ]; then

0 commit comments

Comments
 (0)