Skip to content

Commit b67e594

Browse files
adhramesvivek-sam
authored andcommitted
lint errors fix
1 parent b15af5a commit b67e594

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

OracleSOASuite/dockerfiles/14.1.2.0/Containerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ COPY patches/* /u01/patches/
3636
COPY opatch_patch/* ${OPATCH_PATCH_DIR}/
3737
COPY container-scripts/* /u01/oracle/container-scripts/
3838

39-
#WORKDIR /u01
40-
RUN cd /u01 && chmod 755 ./*.jar && \
39+
WORKDIR /u01
40+
RUN chmod 755 ./*.jar && \
4141
chmod +xr /u01/oracle/container-scripts/*.*
4242

43-
#WORKDIR /u01/oracle
43+
WORKDIR /u01/oracle
4444
#
4545
# Copy files and packages for install
4646
# -----------------------------------
4747
USER oracle
4848
COPY install/* /u01/
4949

50-
#WORKDIR /u01
51-
RUN cd /u01 && "$JAVA_HOME/bin/java" -jar "$FMW_JAR1" -silent -responseFile /u01/soasuite.response -invPtrLoc /u01/oraInst.loc -jreLoc "$JAVA_HOME" -ignoreSysPrereqs -force -novalidation ORACLE_HOME="$ORACLE_HOME" && \
50+
WORKDIR /u01
51+
RUN "$JAVA_HOME/bin/java" -jar "$FMW_JAR1" -silent -responseFile /u01/soasuite.response -invPtrLoc /u01/oraInst.loc -jreLoc "$JAVA_HOME" -ignoreSysPrereqs -force -novalidation ORACLE_HOME="$ORACLE_HOME" && \
5252
"$JAVA_HOME/bin/java" -jar "$FMW_JAR2" -silent -responseFile /u01/osb.response -invPtrLoc /u01/oraInst.loc -jreLoc "$JAVA_HOME" -ignoreSysPrereqs -force -novalidation ORACLE_HOME="$ORACLE_HOME" INSTALL_TYPE="Service Bus" && \
5353
"$JAVA_HOME/bin/java" -jar "$FMW_JAR3" -silent -responseFile /u01/b2b.response -invPtrLoc /u01/oraInst.loc -jreLoc "$JAVA_HOME" -ignoreSysPrereqs -force -novalidation ORACLE_HOME="$ORACLE_HOME" INSTALL_TYPE="B2B" && \
5454
rm -fr /u01/*.jar /u01/*.response
@@ -58,10 +58,11 @@ RUN cd /u01 && "$JAVA_HOME/bin/java" -jar "$FMW_JAR1" -silent -responseFile /u01
5858
# ------------------
5959
#
6060

61-
#WORKDIR ${OPATCH_PATCH_DIR}
61+
WORKDIR ${OPATCH_PATCH_DIR}
6262
RUN opatchzip=`ls ${OPATCH_PATCH_DIR}/p*.zip 2>/dev/null`; \
6363
if [ ! -z "$opatchzip" ]; then \
64-
cd ${OPATCH_PATCH_DIR} && echo -e "\nApplying the below OPatch patch present in ${OPATCH_PATCH_DIR} directory."; \
64+
# cd ${OPATCH_PATCH_DIR}; \
65+
echo -e "\nApplying the below OPatch patch present in ${OPATCH_PATCH_DIR} directory."; \
6566
ls p*.zip; \
6667
echo -e ""; \
6768
echo "Extracting patch: ${opatchzip}"; \
@@ -79,10 +80,11 @@ RUN opatchzip=`ls ${OPATCH_PATCH_DIR}/p*.zip 2>/dev/null`; \
7980
# Apply SOA Patches
8081
# -----------------
8182

82-
#WORKDIR /u01/patches
83+
WORKDIR /u01/patches
8384
RUN export OPATCH_NO_FUSER=TRUE && patchzips=`ls /u01/patches/p*.zip 2>/dev/null`; \
8485
if [ ! -z "$patchzips" ]; then \
85-
cd /u01/patches && echo -e "\nBelow patches present in patches directory. Applying these patches:"; \
86+
# cd /u01/patches; \
87+
echo -e "\nBelow patches present in patches directory. Applying these patches:"; \
8688
ls p*.zip; \
8789
echo -e ""; \
8890
for filename in `ls p*.zip`; do echo "Extracting patch: ${filename}"; $JAVA_HOME/bin/jar xf ${filename}; done; \
@@ -91,7 +93,8 @@ RUN export OPATCH_NO_FUSER=TRUE && patchzips=`ls /u01/patches/p*.zip 2>/dev/null
9193
$ORACLE_HOME/OPatch/opatch util cleanup -silent; \
9294
rm -rf /u01/patches /u01/oracle/cfgtoollogs/opatch/*; \
9395
echo -e "\nPatches applied in SOA oracle home are:"; \
94-
cd $ORACLE_HOME/OPatch && $ORACLE_HOME/OPatch/opatch lspatches; \
96+
cd $ORACLE_HOME/OPatch; \
97+
$ORACLE_HOME/OPatch/opatch lspatches; \
9598
else \
9699
echo -e "\nNo patches present in patches directory. Skipping patch application."; \
97100
fi && \
@@ -107,7 +110,7 @@ RUN export OPATCH_NO_FUSER=TRUE && patchzips=`ls /u01/patches/p*.zip 2>/dev/null
107110
gzip /u01/oracle/cfgtoollogs/opatch/*.log; \
108111
fi
109112

110-
#WORKDIR /u01/oracle
113+
WORKDIR /u01/oracle
111114
#
112115
# Rebuild from base image
113116
# -----------------------

OracleSOASuite/dockerfiles/14.1.2.0/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ To create the Podman network and run containers, follow these steps:
2323

2424
## 1. Create a network
2525

26-
2726
The containers will be connected using a Podman user-defined network.
2827

2928
### Create a user-defined network
@@ -38,7 +37,7 @@ For example:
3837

3938
## 2. Mount a host directory as a data volume
4039

41-
Data volumes are designed to persist data, independent of the container’s lifecycle. Podman automatically creates volumes when you specify a volume name with the -v option, without the need to predefine directories on the host. In this project, the volumes will be used to store Database data files and WebLogic Server domain files. These volumes will be automatically created and managed by Podman. The names of the volumes are specified in the podman run commands.
40+
Data volumes are designed to persist data, independent of the container’s lifecycle. Podman automatically creates volumes when you specify a volume name with the -v option, without the need to predefine directories on the host. In this project, the volumes will be used to store Database data files and WebLogic Server domain files. These volumes will be automatically created and managed by Podman. The names of the volumes are specified in the podman run commands.
4241

4342
`$ podman -d --name soadb -v soadb_vol:/opt/oracle/oradata`
4443

@@ -69,18 +68,18 @@ The Oracle database server container requires custom configuration parameters fo
6968

7069
To run the database container to host the RCU schemas:
7170

72-
1. Add the following parameters to a `db.env.txt` file:
71+
1. Add the following parameters to a `db.env.txt` file:
7372
``` bash
7473
ORACLE_SID=soadb
7574
ORACLE_PDB=soapdb
7675
ORACLE_PWD=Oradoc_db1
7776
ENABLE_ARCHIVELOG=true
7877
```
79-
1. Enter the following command:
78+
1. Enter the following command:
8079
``` bash
8180
`$ podman run -d --name soadb --network=SOANet -p 1521:1521 -p 5500:5500 -v soadb_vol:/opt/oracle/oradata --env-file ./db.env.txt container-registry.oracle.com/database/enterprise:19.3.0.0`
8281
```
83-
1. Verify that the database is running and healthy. The `STATUS` field should show `healthy` in the output of `podman ps`.
82+
1. Verify that the database is running and healthy. The `STATUS` field should show `healthy` in the output of `podman ps`.
8483

8584
## 4. Obtain the SOA 14.1.2.0 container image
8685

@@ -104,7 +103,7 @@ ADMIN_PORT=<Node port number mapping Administration Server container port `7001`
104103
PERSISTENCE_STORE=<jdbc | file>
105104
```
106105
>IMPORTANT: `DOMAIN_TYPE` must be carefully chosen and specified depending on the use case. It can't be changed once you proceed.
107-
For Oracle SOA Suite domains, the supported domain types are `soa`, `osb` and `soaosb`.
106+
For Oracle SOA Suite domains, the supported domain types are `soa`, `osb` and `soaosb`.
108107
- soa : Deploys a SOA Domain with Enterprise Scheduler (ESS)
109108
- osb : Deploys an OSB Domain (Oracle Service Bus)
110109
- soaosb : Deploys a Domain with SOA, OSB and Enterprise Scheduler (ESS)
@@ -133,7 +132,7 @@ For example:
133132
```
134133
The options `-it` in the above command runs the container in interactive mode and you will be able to see the commands running in the container. This includes the command for RCU creation, domain creation, and configuration, followed by starting the Administration Server.
135134
136-
> IMPORTANT: You need to wait until all the above commands are run before you can access the Administration Server Web Console. The following lines highlight when the Administration Server is ready to be used:
135+
> IMPORTANT: You need to wait until all the above commands are run before you can access the Administration Server Web Console. The following lines highlight when the Administration Server is ready to be used:
137136
``` bash
138137
INFO: Admin server is running
139138
@@ -269,7 +268,7 @@ For example:
269268
``` bash
270269
`$ podman run -it --name osbms1 --network=SOANet -p 8004:8004 -v soadomain_vol:/u01/oracle/user_projects --env-file ./osbserver2.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"`
271270
```
272-
The following lines indicate when the Oracle Service Bus Managed Server is ready to be used:
271+
The following lines indicate when the Oracle Service Bus Managed Server is ready to be used:
273272
``` bash
274273
INFO: Managed Server is running
275274

0 commit comments

Comments
 (0)