Skip to content

Commit e9259a9

Browse files
Merge branch 'oracle:main' into main
2 parents b003232 + 6ed3e05 commit e9259a9

File tree

149 files changed

+3515
-959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3515
-959
lines changed

.github/workflows/build-and-push-dev-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ on:
2828
required: false
2929
lang:
3030
description: List of languages to build
31-
default: 'gcc-toolset, golang, nginx, nodejs, php, python, redis, ruby, haproxy'
31+
default: 'gcc-toolset, golang, nginx, nodejs, php, python, redis, ruby, haproxy, kubectl, helm, ocne-tools'
3232
required: false
3333

3434
# Default values for the builds triggered by the push event
3535
env:
3636
ol: 'oraclelinux7, oraclelinux8, oraclelinux9'
37-
lang: 'gcc-toolset, golang, nodejs, nginx, php, python, redis, ruby, haproxy'
37+
lang: 'gcc-toolset, golang, nodejs, nginx, php, python, redis, ruby, haproxy, kubectl, helm, ocne-tools'
3838

3939
jobs:
4040
prepare:

.github/workflows/super-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: cat .github/super-linter.env >> "$GITHUB_ENV"
2626

2727
- name: Run Super Linter
28-
uses: github/super-linter/slim@v6
28+
uses: github/super-linter/slim@v7
2929
env:
3030
DEFAULT_BRANCH: main
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

NoSQL/README-sec.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This container image uses a simplified version of the Oracle NoSQL Database call
1414

1515
This container image configures an Oracle NoSQL Database secure configuration
1616
1. Create a KVlite secured configuration with the
17-
[password complexity policy](https://docs.oracle.com/en/database/other-databases/nosql-database/22.1/security/password-complexity-policies.html)
17+
[password complexity policy](https://docs.oracle.com/en/database/other-databases/nosql-database/24.3/security/password-complexity-policies.html)
1818
enabled
1919
2. Create the `root` user and the file `user.security` that contain property settings for the login as admin
2020
3. Generate the `certificate.pem` file allowing to establish a HTTP secure communication between the proxy and the driver
@@ -86,7 +86,7 @@ For example, to check the version of KVLite, use the `version` command:
8686

8787
```shell
8888
$ docker run --rm -ti --link kvlite:store oracle/nosql:ce-sec java -Xmx64m -Xms64m -jar lib/kvstore.jar version
89-
23.3.32 2024-03-06 18:21:38 UTC Build id: 69f48431fc69 Edition: Community
89+
24.3.9 2024-09-26 18:01:32 UTC Build id: 0d82533c492e Edition: Community
9090
```
9191

9292
To check the size of the storage shard:
@@ -113,13 +113,13 @@ $ docker run --rm -ti -v secfiles:/shared_conf:ro --link kvlite:store oracle/nos
113113

114114
Pinging components of store kvstore based upon topology sequence #14
115115
10 partitions and 1 storage nodes
116-
Time: 2024-04-25 08:13:14 UTC Version: 23.3.32
116+
Time: 2024-12-04 12:14:44 UTC Version: 24.3.9
117117
Shard Status: healthy: 1 writable-degraded: 0 read-only: 0 offline: 0 total: 1
118118
Admin Status: healthy
119119
Zone [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] RN Status: online: 1 read-only: 0 offline: 0
120-
Storage Node [sn1] on kvlite: 5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 23.3.32 2024-03-06 18:21:38 UTC Build id: 69f48431fc69 Edition: Community isMasterBalanced: true serviceStartTime: 2024-04-25 08:10:10 UTC
121-
Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2024-04-25 08:10:13 UTC stateChangeTime: 2024-04-25 08:10:13 UTC availableStorageSize: 2 GB
122-
Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber: 86 haPort: 5011 availableStorageSize: 9 GB storageType: HD serviceStartTime: 2024-04-25 08:10:14 UTC stateChangeTime: 2024-04-25 08:10:15 UTC
120+
Storage Node [sn1] on kvlite: 5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 24.3.9 2024-09-26 18:01:32 UTC Build id: 0d82533c492e Edition: Community isMasterBalanced: true serviceStartTime: 2024-12-04 12:06:43 UTC
121+
Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2024-12-04 12:06:47 UTC stateChangeTime: 2024-12-04 12:06:47 UTC availableStorageSize: 2 GB
122+
Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber: 131 haPort: 5011 availableStorageSize: 9 GB storageType: HD serviceStartTime: 2024-12-04 12:06:49 UTC stateChangeTime: 2024-12-04 12:06:50 UTC
123123

124124

125125
kv-> put kv -key /SomeKey -value SomeValue
@@ -140,13 +140,17 @@ $ docker run --rm -ti -v secfiles:/shared_conf:ro --link kvlite:store oracle/nos
140140
tables
141141
SYS$IndexStatsLease
142142
SYS$MRTableAgentStat
143+
SYS$MRTableInfo
143144
SYS$MRTableInitCheckpoint
144145
SYS$PartitionStatsLease
145146
SYS$SGAttributesTable
146147
SYS$StreamRequest
147148
SYS$StreamResponse
149+
SYS$TableMetadata
148150
SYS$TableStatsIndex
149151
SYS$TableStatsPartition
152+
SYS$TopologyHistory
153+
150154
sql-> exit
151155
```
152156

@@ -202,7 +206,7 @@ $ openssl x509 -text -noout -in /mylocalpath/certificate.pem | grep CN
202206
203207
````
204208
Note: the certicate can be customized in the script setup-http-proxy-sec.sh
205-
(e.g adding [SAN](https://docs.oracle.com/en/database/other-databases/nosql-database/23.1/security/ssl-using-openssl.html))
209+
(e.g adding [SAN](https://docs.oracle.com/en/database/other-databases/nosql-database/24.3/security/ssl-using-openssl.html))
206210
207211
## Advanced Scenario: connecting to Oracle NoSQL CE from another host
208212
@@ -217,10 +221,10 @@ be made via the Oracle NoSQL Database Proxy on the `KV_PROXY_PORT`.
217221
First, install the latest version of Oracle NoSQL on your remote host:
218222
219223
```shell
220-
KV_VERSION=23.3.32
224+
KV_VERSION=24.3.9
221225
rm -rf kv-$KV_VERSION
222226
DOWNLOAD_ROOT=http://download.oracle.com/otn-pub/otn_software/nosql-database
223-
DOWNLOAD_FILE="community-edition-${KV_VERSION}.zip"
227+
DOWNLOAD_FILE="kv-ce-${KV_VERSION}.zip"
224228
DOWNLOAD_LINK="${DOWNLOAD_ROOT}/${DOWNLOAD_FILE}"
225229
curl -OLs $DOWNLOAD_LINK
226230
jar tf $DOWNLOAD_FILE | grep "kv-$KV_VERSION/lib" > extract.libs
@@ -400,7 +404,7 @@ number used for the image tag:
400404
401405
402406
```shell
403-
KV_VERSION=23.3.32 docker build --build-arg "$KV_VERSION" --tag "oracle/nosql-ce-sec:$KV_VERSION" .
407+
KV_VERSION=24.3.9 docker build --build-arg "$KV_VERSION" --tag "oracle/nosql-ce-sec:$KV_VERSION" .
404408
```
405409
406410
## More information
@@ -427,5 +431,5 @@ Copyright (c) 2017, 2024 Oracle and/or its affiliates.
427431
428432
[NOSQL]: http://www.oracle.com/technetwork/database/database-technologies/nosqldb/overview/index.html
429433
[DOCS]: https://docs.oracle.com/en/database/other-databases/nosql-database/index.html
430-
[Apache-2.0]: https://docs.oracle.com/en/database/other-databases/nosql-database/23.3/license/index.html#GUID-006E432E-1965-45A2-AEDE-204BD05E1560
434+
[Apache-2.0]: https://docs.oracle.com/en/database/other-databases/nosql-database/24.3/license/apache-license.html
431435
[GraalVM-License]: https://github.com/graalvm/container/blob/master/LICENSE.md

NoSQL/README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For example, to check the version of KVLite, use the `version` command:
7373

7474
```shell
7575
$ docker run --rm -ti --link kvlite:store oracle/nosql:ce java -Xmx64m -Xms64m -jar lib/kvstore.jar version
76-
23.3.32 2024-03-06 18:21:38 UTC Build id: 69f48431fc69 Edition: Community
76+
24.3.9 2024-09-26 18:01:32 UTC Build id: 0d82533c492e Edition: Community
7777
```
7878

7979
To check the size of the storage shard:
@@ -98,13 +98,13 @@ $ docker run --rm -ti --link kvlite:store oracle/nosql:ce \
9898

9999
Pinging components of store kvstore based upon topology sequence #14
100100
10 partitions and 1 storage nodes
101-
Time: 2024-04-25 08:13:14 UTC Version: 23.3.32
101+
Time: 2024-12-04 11:50:35 UTC Version: 24.3.9
102102
Shard Status: healthy: 1 writable-degraded: 0 read-only: 0 offline: 0 total: 1
103103
Admin Status: healthy
104104
Zone [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] RN Status: online: 1 read-only: 0 offline: 0
105-
Storage Node [sn1] on kvlite: 5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 23.3.32 2024-03-06 18:21:38 UTC Build id: 69f48431fc69 Edition: Community isMasterBalanced: true serviceStartTime: 2024-04-25 08:10:10 UTC
106-
Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2024-04-25 08:10:13 UTC stateChangeTime: 2024-04-25 08:10:13 UTC availableStorageSize: 2 GB
107-
Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber: 86 haPort: 5011 availableStorageSize: 9 GB storageType: HD serviceStartTime: 2024-04-25 08:10:14 UTC stateChangeTime: 2024-04-25 08:10:15 UTC
105+
Storage Node [sn1] on kvlite: 5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 24.3.9 2024-09-26 18:01:32 UTC Build id: 0d82533c492e Edition: Community isMasterBalanced: true serviceStartTime: 2024-12-04 11:47:05 UTC
106+
Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2024-12-04 11:47:08 UTC stateChangeTime: 2024-12-04 11:47:08 UTC availableStorageSize: 2 GB
107+
Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber: 470 haPort: 5011 availableStorageSize: 9 GB storageType: HD serviceStartTime: 2024-12-04 11:47:09 UTC stateChangeTime: 2024-12-04 11:47:09 UTC
108108

109109
kv-> put kv -key /SomeKey -value SomeValue
110110
Operation successful, record inserted.
@@ -123,13 +123,17 @@ $ docker run --rm -ti --link kvlite:store oracle/nosql:ce \
123123
tables
124124
SYS$IndexStatsLease
125125
SYS$MRTableAgentStat
126+
SYS$MRTableInfo
126127
SYS$MRTableInitCheckpoint
127128
SYS$PartitionStatsLease
128129
SYS$SGAttributesTable
129130
SYS$StreamRequest
130131
SYS$StreamResponse
132+
SYS$TableMetadata
131133
SYS$TableStatsIndex
132134
SYS$TableStatsPartition
135+
SYS$TopologyHistory
136+
133137
sql-> exit
134138
```
135139

@@ -172,10 +176,10 @@ be made via the Oracle NoSQL Database Proxy on the `KV_PROXY_PORT`.
172176
First, install the latest version of Oracle NoSQL on your remote host:
173177

174178
```shell
175-
KV_VERSION=23.3.32
179+
KV_VERSION=24.3.9
176180
rm -rf kv-$KV_VERSION
177181
DOWNLOAD_ROOT=http://download.oracle.com/otn-pub/otn_software/nosql-database
178-
DOWNLOAD_FILE="community-edition-${KV_VERSION}.zip"
182+
DOWNLOAD_FILE="kv-ce-${KV_VERSION}.zip"
179183
DOWNLOAD_LINK="${DOWNLOAD_ROOT}/${DOWNLOAD_FILE}"
180184
curl -OLs $DOWNLOAD_LINK
181185
jar tf $DOWNLOAD_FILE | grep "kv-$KV_VERSION/lib" > extract.libs
@@ -332,7 +336,7 @@ number used for the image tag:
332336

333337

334338
```shell
335-
KV_VERSION=23.3.32 docker build --build-arg "$KV_VERSION" --tag "oracle/nosql-ce:$KV_VERSION" .
339+
KV_VERSION=24.3.9 docker build --build-arg "$KV_VERSION" --tag "oracle/nosql-ce:$KV_VERSION" .
336340
```
337341

338342
## More information
@@ -359,5 +363,5 @@ Copyright (c) 2017, 2024 Oracle and/or its affiliates.
359363

360364
[NOSQL]: http://www.oracle.com/technetwork/database/database-technologies/nosqldb/overview/index.html
361365
[DOCS]: https://docs.oracle.com/en/database/other-databases/nosql-database/index.html
362-
[Apache-2.0]: https://docs.oracle.com/en/database/other-databases/nosql-database/23.3/license/index.html#GUID-006E432E-1965-45A2-AEDE-204BD05E1560
366+
[Apache-2.0]: https://docs.oracle.com/en/database/other-databases/nosql-database/24.3/license/apache-license.html
363367
[GraalVM-License]: https://github.com/graalvm/container/blob/master/LICENSE.md

NoSQL/ce-sec/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33
#
4-
FROM ghcr.io/graalvm/jdk:ol8-java17
4+
FROM ghcr.io/graalvm/jdk:ol9-java17
55

66
LABEL org.opencontainers.image.source = "https://github.com/oracle/docker-images"
77

8-
ARG KV_VERSION=23.3.32
8+
ARG KV_VERSION=24.3.9
99
ARG DOWNLOAD_ROOT=http://download.oracle.com/otn-pub/otn_software/nosql-database
10-
ARG DOWNLOAD_FILE="community-edition-${KV_VERSION}.zip"
10+
ARG DOWNLOAD_FILE="kv-ce-${KV_VERSION}.zip"
1111
ARG DOWNLOAD_LINK="${DOWNLOAD_ROOT}/${DOWNLOAD_FILE}"
1212

1313
ENV KV_PROXY_PORT 8080
@@ -16,9 +16,10 @@ ENV KV_ADMIN_PORT 5999
1616
ENV KV_PORT 5000
1717
ENV KV_HARANGE 5010-5020
1818
ENV KV_SERVICERANGE 5021-5049
19+
ENV KV_ADDITIONAL_SAN=",DNS:proxy-nosql,DNS:kvlite-nosql-container-host"
1920

2021
# specific to secure configuration
21-
RUN microdnf -y install openssl-1.1.1k && microdnf clean all
22+
RUN microdnf -y install openssl-3.0.1 && microdnf clean all
2223

2324
# hadolint ignore=DL4006
2425
RUN useradd -d /kvroot -m -s /bin/bash -u 1000 nosql-user && \

NoSQL/ce-sec/sec/setup-http-proxy-sec.sh

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#! /bin/bash
22
#
3-
# Copyright (c) 2022 Oracle and/or its affiliates.
3+
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
44
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
55

6+
set -e
7+
68
if [ -d /kvroot/proxy/ ] ; then
79
echo "Reusing existing configuration"
810
exit 0;
@@ -11,7 +13,7 @@ fi
1113
mkdir -p /kvroot/proxy/
1214

1315
echo "Creating password"
14-
TMPPWD="$(gpg --gen-random --armor 2 8)$(gpg --gen-random --armor 2 8)"
16+
TMPPWD="$(gpg --gen-random --armor 2 8)12$(gpg --gen-random --armor 2 8)"
1517

1618
echo "Creating USER proxy_user"
1719

@@ -40,7 +42,7 @@ openssl req -x509 -days 365 -newkey rsa:4096 -keyout /kvroot/proxy/key.pem -out
4042
<(echo "[req]";
4143
echo distinguished_name=req;
4244
echo "[san]";
43-
echo "subjectAltName=DNS:${HOSTNAME},DNS:localhost,DNS:proxy-nosql,DNS:kvlite-nosql-container-host"
45+
echo "subjectAltName=DNS:${HOSTNAME},DNS:localhost${KV_ADDITIONAL_SAN}"
4446
)
4547
openssl pkcs8 -topk8 -inform PEM -outform PEM -in /kvroot/proxy/key.pem -out /kvroot/proxy/key-pkcs8.pem -passin file:/kvroot/proxy/pwdin -passout file:/kvroot/proxy/pwdout -v1 PBE-SHA1-3DES
4648
keytool -import -alias example -keystore /kvroot/proxy/driver.trust -file /kvroot/proxy/certificate.pem -storepass "$(cat /kvroot/proxy/pwdin)" -noprompt

NoSQL/ce/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33
#
4-
FROM ghcr.io/graalvm/jdk:ol8-java17
4+
FROM ghcr.io/graalvm/jdk:ol9-java17
55

66
LABEL org.opencontainers.image.source = "https://github.com/oracle/docker-images"
77

8-
ARG KV_VERSION=23.3.32
8+
ARG KV_VERSION=24.3.9
99
ARG DOWNLOAD_ROOT=http://download.oracle.com/otn-pub/otn_software/nosql-database
10-
ARG DOWNLOAD_FILE="community-edition-${KV_VERSION}.zip"
10+
ARG DOWNLOAD_FILE="kv-ce-${KV_VERSION}.zip"
1111
ARG DOWNLOAD_LINK="${DOWNLOAD_ROOT}/${DOWNLOAD_FILE}"
1212

1313
ENV KV_PROXY_PORT 8080

OracleDatabase/RAC/OracleConnectionManager/README.md renamed to OracleDatabase/OracleConnectionManager/README.md

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ Sample container build files to facilitate installation, configuration, and envi
33

44
## How to build and run
55
This project offers sample container images for:
6+
* Oracle Database 23ai Client (23.5) for Linux x86-64
67
* Oracle Database 21c Client (21.3) for Linux x86-64
78
* Oracle Database 19c Client (19.3) for Linux x86-64
89
* Oracle Database 18c Client (18.3) for Linux x86-64
910
* Oracle Database 12c Release 2 Client (12.2.0.1.0) for Linux x86-64
1011

11-
To assist in building the container images, you can use the [buildContainerImage.sh](dockerfiles/buildContainerImage.sh) script. See section **Create Oracle Connection Manager Image** for instructions and usage.
12+
To assist in building the container images, you can use the [buildContainerImage.sh](containerfiles/buildContainerImage.sh) script. See section **Create Oracle Connection Manager Image** for instructions and usage.
1213

1314
**IMPORTANT:** Oracle Connection Manager binds to a single port on your host and proxies incoming connections to multiple running containers. It can also proxy connections for users to Oracle RAC Databases running on internal container networks.
1415

@@ -20,15 +21,32 @@ dnf install podman-docker -y
2021
For complete Oracle Connection Manager setup, please go though following steps and execute them as per your enviornment:
2122

2223
### Create Oracle Connection Manager Image
23-
**IMPORTANT:** You will have to provide the installation binaries of Oracle ADMIN Client Oracle Database 21c Client (21.3) for Linux x86-64 and put them into the `dockerfiles/<version>` folder. You only need to provide the binaries for the edition you are going to install.
24+
**IMPORTANT:** You will have to provide the installation binaries of Oracle ADMIN Client Oracle Database 23ai Client (23.5) for Linux x86-64 and put them into the `containerfiles/<version>` folder. You only need to provide the binaries for the edition you are going to install.
2425

2526
The binaries can be downloaded from the [Oracle Technology Network](http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html).
2627

2728
You also have to make sure to have internet connectivity for yum. Note that you must not uncompress the binaries.
2829

2930
The `buildContainerImage.sh` script is just a utility shell script that performs MD5 checks and is an easy way for beginners to get started. Expert users are welcome to directly call `docker build` with their prefered set of parameters.
3031

31-
Before you build the image make sure that you have provided the installation binaries and put them into the right folder. Go into the **dockerfiles** folder and run the **buildContainerImage.sh** script as root or with sudo privileges:
32+
Before you build the image make sure that you have provided the installation binaries and put them into the right folder.
33+
34+
#### Create Oracle Connection Manager Image in Podman Hosts
35+
Go into the **containerfiles** folder and run the **buildContainerImage.sh** script as root or with sudo privileges:
36+
37+
```bash
38+
cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/containerfiles
39+
./buildContainerImage.sh -v (Software Version)
40+
./buildContainerImage.sh -v 23.5.0
41+
```
42+
For detailed usage of command, please execute following command:
43+
```bash
44+
cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/containerfiles
45+
./buildContainerImage.sh -h
46+
```
47+
48+
#### Create Oracle Connection Manager Image in Docker Hosts
49+
Go into the **dockerfiles** folder and run the **buildContainerImage.sh** script as root or with sudo privileges:
3250

3351
```bash
3452
cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/dockerfiles
@@ -65,15 +83,26 @@ docker run -d --hostname racnodedc1-cman --dns-search=example.com \
6583
Execute following command as root user to create connection manager container on `Podman Host`-
6684

6785
```bash
68-
docker run -d --hostname racnodepc1-cman --dns-search=example.com \
69-
--network=rac_pub1_nw --ip=172.16.1.166 \
70-
-e DOMAIN=example.com -e PUBLIC_IP=172.16.1.166 \
71-
-e PUBLIC_HOSTNAME=racnodepc1-cman -e SCAN_NAME=racnodepc1-scan \
72-
-e SCAN_IP=172.16.1.236 --privileged=false \
73-
-p 1521:1521 --name racnodepc1-cman oracle/client-cman:21.3.0
86+
podman run -d \
87+
--hostname racnodepc1-cman \
88+
--dns-search=example.com \
89+
--dns 172.16.1.25 \
90+
--network=rac_pub1_nw \
91+
--ip=172.16.1.164 \
92+
--cap-add=AUDIT_WRITE \
93+
--cap-add=NET_RAW \
94+
-e DOMAIN=example.com \
95+
-e PUBLIC_IP=172.16.1.164 \
96+
-e DNS_SERVER=172.16.1.25 \
97+
-e PUBLIC_HOSTNAME=racnodepc1-cman \
98+
-e DB_HOSTDETAILS="HOST=racnodepc1-scan:RULE_ACT=accept,HOST=racnodep1:IP=172.16.1.170" \
99+
--privileged=false \
100+
-p 1521:1521 \
101+
--name racnodepc1-cman \
102+
oracle/client-cman:23.5.0
74103
```
75104

76-
In the above container, you can see that we are passing env variables using "-e". You need to change PUBLIC_IP, PUBLIC_HOSTNAME, SCAN_NAME, SCAN_IP according to your environment. Also, container will be binding to port 1521 on your docker host.
105+
In the above container, you can see that we are passing env variables using "-e". You need to change `PUBLIC_IP`, `PUBLIC_HOSTNAME`, `SCAN_NAME`, `SCAN_IP`, `DB_HOSTDETAILS` according to your environment. Also, container will be binding to port 1521 on your docker host.
77106

78107
**Note:** SCAN_NAME and SCAN_IP will be your Oracle RAC SCAN details. These will be registered in connection manager but will be accessible when you create Oracle RAC container.
79108

@@ -86,7 +115,7 @@ docker logs racnodedc1-cman
86115

87116
Check logs in `Podman Host` -
88117
```bash
89-
docker logs racnodepc1-cman
118+
podman logs racnodepc1-cman
90119
```
91120

92121
You should see following when cman container setup is done:

OracleDatabase/RAC/OracleConnectionManager/dockerfiles/12.2.0.1/Checksum renamed to OracleDatabase/OracleConnectionManager/containerfiles/12.2.0.1/Checksum

File renamed without changes.

OracleDatabase/RAC/OracleConnectionManager/dockerfiles/12.2.0.1/Dockerfile renamed to OracleDatabase/OracleConnectionManager/containerfiles/12.2.0.1/Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ FROM oraclelinux:7-slim
2525

2626
# Maintainer
2727
# ----------
28+
# hadolint ignore=DL4000
2829
MAINTAINER Sanjay Singh ([email protected]), Paramdeep Saini ([email protected])
2930

3031
# Environment variables required for this build (do NOT change)
@@ -47,6 +48,7 @@ ENV SETUP_LINUX_FILE="setupLinuxEnv.sh" \
4748
INSTALL_DB_BINARIES_FILE="installDBBinaries.sh" \
4849
container="true"
4950
# Use second ENV so that variable get substituted
51+
# hadolint ignore=DL3044
5052
ENV INSTALL_SCRIPTS=$INSTALL_DIR/install \
5153
PATH=/bin:/usr/bin:/sbin:/usr/sbin:$PATH \
5254
SCRIPT_DIR=$INSTALL_DIR/startup \
@@ -85,4 +87,5 @@ WORKDIR /home/oracle
8587
EXPOSE 1521 5500
8688

8789
# Define default command to start Oracle Database.
90+
# hadolint ignore=DL3025
8891
CMD exec $SCRIPT_DIR/$RUN_FILE

0 commit comments

Comments
 (0)