Skip to content

Commit d21b072

Browse files
committed
Corrections to FMW sample documentation
1 parent b1dd2b5 commit d21b072

File tree

1 file changed

+25
-19
lines changed
  • docs-source/content/userguide/managing-domains/fmw-infra

1 file changed

+25
-19
lines changed

docs-source/content/userguide/managing-domains/fmw-infra/_index.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ pre = "<b> </b>"
77

88
Starting with release 2.2, the operator supports FMW Infrastructure domains.
99
This means domains that are created with the FMW Infrastructure installer rather than the WebLogic
10-
installer. These domains contain the Java Required Files (JRF) feature and are
10+
Server installer. These domains contain the Java Required Files (JRF) feature and are
1111
the pre-requisite for "upper stack" products like Oracle SOA Suite, for example.
1212
These domains also require a database and the use of the Repository
1313
Creation Utility (RCU).
1414

1515
This section provides details about the special considerations for running
1616
FMW Infrastructure domains with the operator. Other than those considerations
17-
listed here, FMW Infrastructure domains work in the same way as WebLogic domains.
17+
listed here, FMW Infrastructure domains work in the same way as WebLogic Server domains.
1818
That is, the remainder of the documentation in this site applies equally to FMW
19-
Infrastructure domains and WebLogic domains.
19+
Infrastructure domains and WebLogic Server domains.
2020

2121
FMW Infrastructure domains are supported using both the "domain on a persistent volume"
2222
and the "domain in a Docker image" [models]({{< relref "/userguide/managing-domains/choosing-a-model/_index.md" >}}).
@@ -49,12 +49,16 @@ A [sample](https://github.com/oracle/docker-images/tree/master/OracleFMWInfrastr
4949
is provided in the Oracle GitHub account that demonstrates how to create a Docker image
5050
to run FMW Infrastructure.
5151

52+
Please consult the [README](https://github.com/oracle/docker-images/blob/master/OracleFMWInfrastructure/dockerfiles/12.2.1.3/README.md) file associated with this sample for important prerequisite steps,
53+
such as building or pulling the Server JRE Docker image and downloading the Fusion Middleware
54+
Infrastructure installer binary.
55+
5256
After cloning the repository and downloading the installer from Oracle Technology Network
5357
or e-delivery, you create your image by running the provided script:
5458

5559
```bash
5660
cd docker-images/OracleFMWInfrastructure/dockerfiles
57-
./buildDockerImage.sh -v 12.2.1.3 -g
61+
./buildDockerImage.sh -v 12.2.1.3 -s
5862
```
5963

6064
The image produced will be named `oracle/fmw-infrastructure:12.2.1.3`.
@@ -68,7 +72,7 @@ by running the provided script:
6872

6973
```bash
7074
cd docker-images/OracleFMWInfrastructure/samples/12213-patch-fmw-for-k8s
71-
./buildDockerImage.sh
75+
./build.sh
7276
```
7377

7478
This will produce an image named `oracle/fmw-infrastructure:12213-update-k8s`.
@@ -160,8 +164,10 @@ spec:
160164
```
161165
162166
Notice that you can pass in environment variables to set the SID, the name of the PDB, and
163-
so on. The documentation describes the other variables that are available. You should
164-
also create a service to make the database available within the Kubernetes cluster with
167+
so on. The documentation describes the other variables that are available. The `sys` password
168+
defaults to `Oradoc_db1`. Follow the instructions in the documentation to reset this password.
169+
170+
You should also create a service to make the database available within the Kubernetes cluster with
165171
a well known name. Here is an example:
166172

167173
```yaml
@@ -171,7 +177,6 @@ metadata:
171177
name: oracle-db
172178
namespace: default
173179
spec:
174-
clusterIP: 10.97.236.215
175180
ports:
176181
- name: tns
177182
port: 1521
@@ -185,7 +190,7 @@ spec:
185190
```
186191

187192
In the example above, the database would be visible in the cluster using the address
188-
`oracle-db.default.svc.cluster.local:1521/devpdc.k8s`.
193+
`oracle-db.default.svc.cluster.local:1521/devpdb.k8s`.
189194

190195
When you run the database in the Kubernetes cluster, you will probably want to also
191196
run RCU from a pod inside your network, though this
@@ -249,13 +254,13 @@ image that you built earlier as a "service" pod to run RCU. To do this, start u
249254
pod using that image as follows:
250255

251256
```bash
252-
kubectl run rcu -ti --image oracle/fmw-infrastructure:12.2.1.3 -- sleep 100000
257+
kubectl run rcu --generator=run-pod/v1 --image oracle/fmw-infrastructure:12213-update-k8s -- sleep infinity
253258
254259
```
255260

256261
This will create a Kubernetes deployment called `rcu` containing a pod running a container
257-
created from the `oracle/fmw-infrastructure:12.2.1.3` image which will just run
258-
`sleep 100000`, which essentially creates a pod that we can "exec" into and use to run whatever
262+
created from the `oracle/fmw-infrastructure:12213-update-k8s` image which will just run
263+
`sleep infinity`, which essentially creates a pod that we can "exec" into and use to run whatever
259264
commands we need to run.
260265

261266
To get inside this container and run commands, use this command:
@@ -267,11 +272,11 @@ kubectl exec -ti rcu /bin/bash
267272
When you are finished with this pod, you can remove it with this command:
268273

269274
```bash
270-
kubectl delete deploy rcu
275+
kubectl delete pod rcu
271276
```
272277

273278
{{% notice note %}}
274-
You can use the same approach to get a temporary "service" pod to run other utilities
279+
You can use the same approach to get a temporary pod to run other utilities
275280
like WLST.
276281
{{% /notice %}}
277282

@@ -287,7 +292,7 @@ for the regular schema users:
287292
-silent \
288293
-createRepository \
289294
-databaseType ORACLE \
290-
-connectString oracle-db:1521/devpdb.k8s \
295+
-connectString oracle-db.default:1521/devpdb.k8s \
291296
-dbUser sys \
292297
-dbRole sysdba \
293298
-useSamePasswordForAllSchemaUsers true \
@@ -305,7 +310,7 @@ for the regular schema users:
305310
You need to make sure that you maintain the association between the database schemas and the
306311
matching domain just like you did in a non-Kubernetes environment. There is no specific
307312
functionality provided to help with this. We recommend that you consider making the RCU
308-
prefix the same as your `domainUID` to help maintain this association.
313+
prefix (value of `schemaPrefix` argument) the same as your `domainUID` to help maintain this association.
309314

310315
##### Dropping schemas
311316

@@ -316,7 +321,7 @@ If you want to drop the schema, you can use a command like this:
316321
-silent \
317322
-dropRepository \
318323
-databaseType ORACLE \
319-
-connectString oracle-db:1521/devpdb.k8s \
324+
-connectString oracle-db.default:1521/devpdb.k8s \
320325
-dbUser sys \
321326
-dbRole sysdba \
322327
-selectDependentsForComponents true \
@@ -340,8 +345,9 @@ When you create your domain using the sample provided below, it will obtain the
340345
from this secret.
341346

342347
A [sample](/weblogic-kubernetes-operator/blob/master/kubernetes/samples/scripts/create-rcu-credentials/README.md)
343-
is provided that demonstrates how to create the secret.
344-
348+
is provided that demonstrates how to create the secret. The schema owner username required will be the
349+
`schemaPrefix` value followed by an underscore and a component name, such as `FMW1_STB`. The schema owner
350+
owner password will be password you provided for regular schema users during RCU creation.
345351

346352
#### Creating a FMW Infrastructure domain
347353

0 commit comments

Comments
 (0)