Skip to content

Commit b15af5a

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

File tree

2 files changed

+33
-37
lines changed

2 files changed

+33
-37
lines changed

OracleSOASuite/dockerfiles/14.1.2.0/README.md

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,35 @@ The containers will be connected using a Podman user-defined network.
3131
In this configuration, the creation of a user-defined network will enable the communication between the containers just using container names. For this setup we will use a user-defined network using bridge driver.
3232

3333
Create a user-defined network using the bridge driver:
34-
``` bash
3534
`$ podman network create -d bridge <network name>`
36-
```
35+
3736
For example:
38-
``` bash
3937
`$ podman network create -d bridge SOANet`
40-
```
4138

4239
## 2. Mount a host directory as a data volume
4340

4441
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.
45-
``` bash
46-
$ podman -d --name soadb -v soadb_vol:/opt/oracle/oradata
47-
```
42+
43+
`$ podman -d --name soadb -v soadb_vol:/opt/oracle/oradata`
44+
4845
The default storage location for Podman volumes is determined by Podman’s storage configuration.
4946
To identify the location of a volume, run:
50-
``` bash
51-
$ podman volume inspect <volume_name>
52-
```
47+
48+
`$ podman volume inspect <volume_name>`
49+
5350
The Mountpoint entry should point to the location of the volume in the host.
5451

5552
Podman creates volumes with default permissions. Ensure that the container’s oracle user has the necessary read/write/execute permissions on the auto-created volume. This may require setting proper permissions or ownership using a post-creation script, depending on your environment.
56-
``` bash
57-
$ sudo chmod -R 777 $HOME/.local/shared/containers/storage/volumes/soadb_vol
58-
```
53+
54+
`$ sudo chmod -R 777 $HOME/.local/shared/containers/storage/volumes/soadb_vol`
55+
5956
To determine if a user already exists on your node system with uid:gid of 1000, run:
60-
``` bash
61-
$ getent passwd 1000
62-
```
57+
58+
`$ getent passwd 1000`
59+
6360
If this command returns a username (which is the first field), you can skip the following `useradd` command. If not, create the `oracle` user manually:
64-
``` bash
65-
$ useradd -u 1000 -g 0 oracle
66-
```
61+
62+
`$ useradd -u 1000 -g 0 oracle`
6763

6864
## 3. Create the database
6965

@@ -82,7 +78,7 @@ To run the database container to host the RCU schemas:
8278
```
8379
1. Enter the following command:
8480
``` bash
85-
$ 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
81+
`$ 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`
8682
```
8783
1. Verify that the database is running and healthy. The `STATUS` field should show `healthy` in the output of `podman ps`.
8884

@@ -133,7 +129,7 @@ To start a Podman container with a SOA domain and the WebLogic Server Administra
133129
134130
For example:
135131
``` bash
136-
$ podman run -it --name soaas --network=SOANet -p 7001:7001 -v soadomain_vol:/u01/oracle/user_projects --env-file ./adminserver.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205
132+
`$ podman run -it --name soaas --network=SOANet -p 7001:7001 -v soadomain_vol:/u01/oracle/user_projects --env-file ./adminserver.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205`
137133
```
138134
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.
139135
@@ -147,7 +143,7 @@ These lines indicate that the Administration Server started successfully with th
147143
148144
To view the Administration Server logs, enter the following command:
149145
``` bash
150-
$ podman logs -f \<Administration Server container name\>
146+
`$ podman logs -f \<Administration Server container name\>`
151147
```
152148
## 6. Create SOA Managed Server containers
153149
@@ -196,13 +192,13 @@ To start a Podman container for the SOA server (for `soa_server1`), you can use
196192
197193
For example:
198194
``` bash
199-
$ podman run -it --name soams1 --network=SOANet -p 7003:7003 -v soadomain_vol:/u01/oracle/user_projects --env-file ./soaserver1.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"
195+
`$ podman run -it --name soams1 --network=SOANet -p 7003:7003 -v soadomain_vol:/u01/oracle/user_projects --env-file ./soaserver1.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"`
200196
```
201197
Similarly, to start a second Podman container for the SOA server (for `soa_server2`), you can use the `podman run` command passing `soaserver2.env.list` with port `7005`.
202198
203199
For example:
204200
``` bash
205-
$ podman run -it --name soams2 --network=SOANet -p 7005:7005 -v soadomain_vol:/u01/oracle/user_projects --env-file ./soaserver2.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"
201+
`$ podman run -it --name soams2 --network=SOANet -p 7005:7005 -v soadomain_vol:/u01/oracle/user_projects --env-file ./soaserver2.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"`
206202
```
207203
208204
> **Note**: Using `-v` reuses the volume created by the Administration Server container.
@@ -215,9 +211,9 @@ INFO: Managed Server is running
215211
INFO: Managed Server has been started
216212
```
217213
Once the Managed Server container is created, you can view the server logs:
218-
``` bash
219-
$ podman logs -f \<Managed Server container name\>
220-
```
214+
215+
`$ podman logs -f \<Managed Server container name\>`
216+
221217
## 7. Create Oracle Service Bus Managed Server containers
222218
223219
> **Note**: These steps are required only for the `osb` and `soaosb` domain type.
@@ -265,13 +261,13 @@ To start a Podman container for the Oracle Service Bus server (for `osb_server1`
265261
266262
For example:
267263
``` bash
268-
$ podman run -it --name osbms1 --network=SOANet -p 8002:8002 -v soadomain_vol:/u01/oracle/user_projects --env-file ./osbserver1.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"
264+
`$ podman run -it --name osbms1 --network=SOANet -p 8002:8002 -v soadomain_vol:/u01/oracle/user_projects --env-file ./osbserver1.env.list container-registry.oracle.com/middleware/soasuite:14.1.2.0-17-ol8-241205 "/u01/oracle/container-scripts/startMS.sh"`
269265
```
270266
Similarly, to start a second Podman container for the Oracle Service Bus server (for `osb_server2`), you can use the `podman run` command passing `osbserver2.env.list`.
271267
272268
For example:
273269
``` bash
274-
$ 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"
270+
`$ 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"`
275271
```
276272
The following lines indicate when the Oracle Service Bus Managed Server is ready to be used:
277273
``` bash
@@ -282,7 +278,7 @@ INFO: Managed Server has been started
282278
283279
Once the Managed Server container is created, you can view the server logs:
284280
``` bash
285-
$ podman logs -f \<Managed Server container name\>
281+
`$ podman logs -f \<Managed Server container name\>`
286282
```
287283
288284
## 8. Access the Consoles
@@ -302,19 +298,19 @@ Now you can access the following Consoles:
302298
303299
1. Stop and remove all running containers from the node where the container is running:
304300
``` bash
305-
$ podman stop \<container name\>
301+
`$ podman stop \<container name\>`
306302
307-
$ podman rm \<container name\>
303+
`$ podman rm \<container name\>`
308304
```
309305
where containers are `soadb`, `soaas`, `soams1`, `soams2`, `osbms1` and `osbms2`.
310306
311307
2. Clear the data volume:
312308
``` bash
313-
$ podman volume rm soadb_vol
309+
`$ podman volume rm soadb_vol`
314310
315-
$ podman volume rm soadomain_vol
311+
`$ podman volume rm soadomain_vol`
316312
```
317313
3. Remove the Podman network:
318314
``` bash
319-
$ podman network rm SOANet
315+
`$ podman network rm SOANet`
320316
```

OracleSOASuite/dockerfiles/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ To build the SOA image with patches, you need to download and drop the patch zip
4040
Build the Oracle SOA 12.2.1.4 image using:
4141

4242
```
43-
$ sh buildDockerImage.sh -v 12.2.1.4
44-
```
43+
`$ sh buildDockerImage.sh -v 12.2.1.4`
4544
4645
Usage: buildDockerImage.sh -v [version]
4746
Builds a Docker Image for Oracle SOA Suite.
4847
48+
```
4949

5050
Verify you now have the image `oracle/soasuite:12.2.1.4` in place with
5151

0 commit comments

Comments
 (0)