Skip to content

Commit 70566c9

Browse files
committed
fix for compose with new secrets
1 parent 4c3c76d commit 70566c9

File tree

9 files changed

+24
-40
lines changed

9 files changed

+24
-40
lines changed

OracleDatabase/RAC/OracleRealApplicationClusters/containerfiles/setup_rac_host.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ setup_nfs_variables() {
6161
export PRIVATE1_NETWORK_SUBNET="192.168.17.0/24"
6262
export PRIVATE2_NETWORK_NAME="rac_priv2_nw"
6363
export PRIVATE2_NETWORK_SUBNET="192.168.18.0/24"
64-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
65-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
6664
export DNS_PUBLIC_IP=10.0.20.25
6765
export DNS_PRIVATE1_IP=192.168.17.25
6866
export DNS_PRIVATE2_IP=192.168.18.25
@@ -172,8 +170,6 @@ setup_blockdevices_variables(){
172170
export RACNODE2_PUBLIC_IP=10.0.20.171
173171
export RACNODE2_CRS_PRIVATE_IP1=192.168.17.171
174172
export RACNODE2_CRS_PRIVATE_IP2=192.168.18.171
175-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
176-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
177173
export DNS_CONTAINER_NAME=rac-dnsserver
178174
export DNS_HOST_NAME=racdns
179175
export DNS_IMAGE_NAME="oracle/rac-dnsserver:latest"

OracleDatabase/RAC/OracleRealApplicationClusters/docs/developers/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Oracle Real Application Clusters in Linux Containers for Developers
22

3-
Learn about container deployment options for Oracle Real Application Clusters (Oracle RAC) Release 21c (v26.0)
3+
Learn about container deployment options for Oracle Real Application Clusters (Oracle RAC) Release 21c (v21.3 or later)
44

55
## Overview of Running Oracle RAC in Containers
66

77
Oracle Real Application Clusters (Oracle RAC) is an option for the award-winning Oracle Database Enterprise Edition. Oracle RAC is a cluster database with a shared cache architecture that overcomes the limitations of traditional shared-nothing and shared-disk approaches to provide highly scalable and available database solutions for all business applications.
88
Oracle RAC uses Oracle Clusterware as a portable cluster software that allows clustering of independent servers so that they cooperate as a single system and Oracle Automatic Storage Management (Oracle ASM) to provide simplified storage management that is consistent across all servers and storage platforms.
99
Oracle Clusterware and Oracle ASM are part of the Oracle Grid Infrastructure, which bundles both solutions in an easy-to-deploy software package. For more information on Oracle RAC Database 21c refer to the [Oracle Database documentation](http://docs.oracle.com/en/database/).
1010

11-
This guide helps you install Oracle RAC on Containers on Host Machines as explained in detail below. With the current release, you prepare the host machine, build or use pre-built Oracle RAC Container Images v26.0, and setup Oracle RAC on Single or Multiple Host machines with Oracle ASM.
11+
This guide helps you install Oracle RAC on Containers on Host Machines as explained in detail below. With the current release, you prepare the host machine, build or use pre-built Oracle RAC Container Images v21.0, and setup Oracle RAC on Single or Multiple Host machines with Oracle ASM.
1212
In this installation guide, we use [Podman](https://docs.podman.io/en/v3.0/) to create Oracle RAC Containers and manage them.
1313

1414
## Using this Documentation
@@ -34,7 +34,7 @@ To create an Oracle RAC environment, follow these steps:
3434
## Before you begin
3535
- Before proceeding further, the below prerequisites related to the Oracle RAC (Real Application Cluster) Podman host Environment need to be setup as a preparation steps for the Podman host machine for Oracle RAC Containers. For more details related to the preparation of the host machine, refer to [Preparation Steps for running Oracle RAC Database in containers](../../README.md#preparation-steps-for-running-oracle-rac-database-in-containers).
3636
We have pre-created script `setup_rac_host.sh` which will prepare the podman host with the following pre-requisites-
37-
- Validate Host machine for supported Os version(OL >9.3), Kernel(>UEKR7), Memory(>32GB), Swap(>32GB), shm(>4GB) etc.
37+
- Validate Host machine for supported Os version(OL >8.5 or later), Kernel(>UEKR7), Memory(>32GB), Swap(>32GB), shm(>4GB) etc.
3838
- Update /etc/sysctl.conf
3939
- Setup node directories for Slim Image
4040
- Setup chronyd service
@@ -53,7 +53,7 @@ We have pre-created script `setup_rac_host.sh` which will prepare the podman hos
5353
```
5454

5555
- To prepare podman host machine using a pre-created script, copy the file `setup_rac_host.sh` from [<GITHUB_REPO_CLONED_PATH>/docker-images/OracleDatabase/RAC/
56-
OracleRealApplicationClusters/containerfiles/setup_rac_host.sh](../containerfiles/setup_rac_host.sh) and execute below -
56+
OracleRealApplicationClusters/containerfiles/setup_rac_host.sh](../../containerfiles/setup_rac_host.sh) and execute below -
5757
```bash
5858
./setup_rac_host.sh -prepare-rac-env
5959
```
@@ -70,8 +70,8 @@ Refer [this documentation](https://docs.oracle.com/en/operating-systems/oracle-l
7070
Example of pulling an Oracle RAC Image from the Oracle Container Registry:
7171
```bash
7272
# For Oracle RAC Container Image-
73-
podman pull container-registry.oracle.com/database/rac_ru:21.16
74-
podman tag container-registry.oracle.com/database/rac_ru:21.16 localhost/oracle/database-rac:21c
73+
podman pull container-registry.oracle.com/database/rac_ru:latest
74+
podman tag container-registry.oracle.com/database/rac_ru:latest localhost/oracle/database-rac:21c
7575
```
7676

7777
**Notes**
@@ -83,7 +83,7 @@ podman tag container-registry.oracle.com/database/rac_ru:21.16 localhost/oracle/
8383
```bash
8484
podman images
8585
localhost/oracle/client-cman 21.3.0 7b095637d7b6 About a minute ago 2.08 GB
86-
localhost/oracle/database-rac 21c dcda5cf71b23 12 hours ago 9.33 GB
86+
localhost/oracle/database-rac 21c dcda5cf71b23 12 hours ago 9.33 GB
8787
localhost/oracle/rac-storage-server latest d233b08a8aed 12 hours ago 443 MB
8888
localhost/oracle/rac-dnsserver latest 7d2301d7ea53 13 hours ago 279 MB
8989
```
@@ -108,7 +108,7 @@ If you have a preconfigured DNS server in your environment, then you can replace
108108

109109
## Deploy Oracle RAC 2 Node Environment with NFS Storage Container
110110
- Copy `podman-compose.yml` file from this [<GITHUB_REPO_CLONED_PATH>/docker-images/OracleDatabase/RAC/
111-
OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/nfsdevices/podman-compose.yml](../samples/rac-compose/racimage/withoutresponsefiles/nfsdevices/podman-compose.yml) in your working directory.
111+
OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/nfsdevices/podman-compose.yml](../../samples/rac-compose/racimage/withoutresponsefiles/nfsdevices/podman-compose.yml) in your working directory.
112112
- Execute the below command from your working directory to export the required environment variables required by the compose file in this quickstart-
113113
```bash
114114
source ./setup_rac_host.sh -nfs-env
@@ -197,7 +197,7 @@ OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/
197197
## Deploy Oracle RAC 2 Node Environment with BlockDevices
198198

199199
- Copy `podman-compose.yml` file from [<GITHUB_REPO_CLONED_PATH>/docker-images/OracleDatabase/RAC/
200-
OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/blockdevices/podman-compose.yml](../samples/rac-compose/racimage/withoutresponsefiles/blockdevices/podman-compose.yml) in your working directory.
200+
OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/blockdevices/podman-compose.yml](../../samples/rac-compose/racimage/withoutresponsefiles/blockdevices/podman-compose.yml) in your working directory.
201201
- Execute the below command to export the required environment variables required by the compose file in this quickstart-
202202
```bash
203203
source ./setup_rac_host.sh -blockdevices-env
@@ -267,7 +267,7 @@ You can validate if the environment is healthy by running the below command-
267267
```bash
268268
podman ps -a
269269
270-
58642afb20eb localhost/oracle/rac-dnsserver:latest /bin/sh -c exec $... 23 hours ago Up 23 hours (healthy) rac-dnsserver
270+
58642afb20eb localhost/oracle/rac-dnsserver:latest /bin/sh -c exec $... 23 hours ago Up 23 hours (healthy) rac-dnsserver
271271
a192f4e9092a localhost/oracle/database-rac:21c 10 hours ago Up 10 hours (healthy) racnodep1
272272
745679457df5 localhost/oracle/database-rac:21c 10 hours ago Up 10 hours (healthy) racnodep2
273273
```
@@ -287,7 +287,7 @@ Refer to [README](../CLEANUP.md) for instructions on how to cleanup an Oracle RA
287287

288288
## Support
289289

290-
At the time of this release, Oracle RAC on Podman is supported for Oracle Linux 9.3 later. To see current Linux support certifications, refer [Oracle RAC on Podman Documentation](https://docs.oracle.com/en/database/oracle/oracle-database/21/install-and-upgrade.html)
290+
At the time of this release, Oracle RAC on Podman is supported for Oracle Linux 8.5 later. To see current Linux support certifications, refer [Oracle RAC on Podman Documentation](https://docs.oracle.com/en/database/oracle/oracle-database/21/install-and-upgrade.html)
291291

292292
## License
293293

@@ -297,4 +297,4 @@ All scripts and files hosted in this repository that are required to build the c
297297

298298
## Copyright
299299

300-
Copyright (c) 2014-2025 Oracle and/or its affiliates.
300+
Copyright (c) 2014-2025 Oracle and/or its affiliates.

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ export RACNODE2_HOST_NAME=racnodep2
7575
export RACNODE2_PUBLIC_IP=10.0.20.171
7676
export RACNODE2_CRS_PRIVATE_IP1=192.168.17.171
7777
export RACNODE2_CRS_PRIVATE_IP2=192.168.18.171
78-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
79-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
8078
export DNS_CONTAINER_NAME=rac-dnsserver
8179
export DNS_HOST_NAME=racdns
8280
export DNS_IMAGE_NAME="oracle/rac-dnsserver:latest"
@@ -205,8 +203,6 @@ export RACNODE2_HOST_NAME=racnodep2
205203
export RACNODE2_PUBLIC_IP=10.0.20.171
206204
export RACNODE2_CRS_PRIVATE_IP1=192.168.17.171
207205
export RACNODE2_CRS_PRIVATE_IP2=192.168.18.171
208-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
209-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
210206
export DNS_CONTAINER_NAME=rac-dnsserver
211207
export DNS_HOST_NAME=racdns
212208
export DNS_IMAGE_NAME="oracle/rac-dnsserver:latest"
@@ -348,8 +344,6 @@ export PRIVATE1_NETWORK_NAME="rac_priv1_nw"
348344
export PRIVATE1_NETWORK_SUBNET="192.168.17.0/24"
349345
export PRIVATE2_NETWORK_NAME="rac_priv2_nw"
350346
export PRIVATE2_NETWORK_SUBNET="192.168.18.0/24"
351-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
352-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
353347
export DNS_PUBLIC_IP=10.0.20.25
354348
export DNS_PRIVATE1_IP=192.168.17.25
355349
export DNS_PRIVATE2_IP=192.168.18.25
@@ -515,8 +509,6 @@ export PRIVATE1_NETWORK_NAME="rac_priv1_nw"
515509
export PRIVATE1_NETWORK_SUBNET="192.168.17.0/24"
516510
export PRIVATE2_NETWORK_NAME="rac_priv2_nw"
517511
export PRIVATE2_NETWORK_SUBNET="192.168.18.0/24"
518-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
519-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
520512
export DNS_PUBLIC_IP=10.0.20.25
521513
export DNS_PRIVATE1_IP=192.168.17.25
522514
export DNS_PRIVATE2_IP=192.168.18.25
@@ -668,8 +660,6 @@ export PRIVATE1_NETWORK_SUBNET="192.168.17.0/24"
668660
export PRIVATE2_NETWORK_NAME="rac_priv2_nw"
669661
export PRIVATE2_NETWORK_SUBNET="192.168.18.0/24"
670662
export DNS_PUBLIC_IP=10.0.20.25
671-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
672-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
673663
export DB_SERVICE=service:soepdb
674664
```
675665
Bring up RAC Containers-
@@ -732,8 +722,6 @@ export PRIVATE1_NETWORK_SUBNET="192.168.17.0/24"
732722
export PRIVATE2_NETWORK_NAME="rac_priv2_nw"
733723
export PRIVATE2_NETWORK_SUBNET="192.168.18.0/24"
734724
export DNS_PUBLIC_IP=10.0.20.25
735-
export PWD_SECRET_FILE=/opt/.secrets/pwdfile.enc
736-
export KEY_SECRET_FILE=/opt/.secrets/key.pem
737725
export CMAN_CONTAINER_NAME=racnodepc1-cman
738726
export CMAN_HOST_NAME=racnodepc1-cman
739727
export CMAN_PUBLIC_IP=10.0.20.15

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/blockdevices/addition/podman-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ networks:
99
external: true
1010
secrets:
1111
pwdsecret:
12-
file: ${PWD_SECRET_FILE}
12+
external: pwdsecret
1313
keysecret:
14-
file: ${KEY_SECRET_FILE}
14+
external: keysecret
1515
services:
1616
racnodep3:
1717
container_name: ${RACNODE3_CONTAINER_NAME}

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/blockdevices/podman-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ networks:
99
external: true
1010
secrets:
1111
pwdsecret:
12-
file: ${PWD_SECRET_FILE}
12+
external: pwdsecret
1313
keysecret:
14-
file: ${KEY_SECRET_FILE}
14+
external: keysecret
1515
services:
1616
rac-dnsserver:
1717
container_name: ${DNS_CONTAINER_NAME}

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/nfsdevices/addition/podman-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ networks:
99
external: true
1010
secrets:
1111
pwdsecret:
12-
file: ${PWD_SECRET_FILE}
12+
external: pwdsecret
1313
keysecret:
14-
file: ${KEY_SECRET_FILE}
14+
external: keysecret
1515
volumes:
1616
racstorage:
1717
external: true

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/withoutresponsefiles/nfsdevices/podman-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ networks:
99
external: true
1010
secrets:
1111
pwdsecret:
12-
file: ${PWD_SECRET_FILE}
12+
external: pwdsecret
1313
keysecret:
14-
file: ${KEY_SECRET_FILE}
14+
external: keysecret
1515
volumes:
1616
racstorage:
1717
external: true

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/withresponsefiles/blockdevices/podman-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ networks:
99
external: true
1010
secrets:
1111
pwdsecret:
12-
file: ${PWD_SECRET_FILE}
12+
external: pwdsecret
1313
keysecret:
14-
file: ${KEY_SECRET_FILE}
14+
external: keysecret
1515
services:
1616
rac-dnsserver:
1717
container_name: ${DNS_CONTAINER_NAME}

OracleDatabase/RAC/OracleRealApplicationClusters/samples/rac-compose/racimage/withresponsefiles/nfsdevices/podman-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ networks:
99
external: true
1010
secrets:
1111
pwdsecret:
12-
file: ${PWD_SECRET_FILE}
12+
external: pwdsecret
1313
keysecret:
14-
file: ${KEY_SECRET_FILE}
14+
external: keysecret
1515
volumes:
1616
racstorage:
1717
external: true

0 commit comments

Comments
 (0)