forked from DirkNachbar/Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
185 lines (131 loc) · 10.2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
Oracle Middleware on Docker
=====
## Oracle Forms & Reports Docker Solution
- https://github.com/DirkNachbar/Docker#oracle-forms--reports-on-docker
## Oracle Traffic Director Docker Solution
- https://github.com/DirkNachbar/Docker/tree/master/OracleOTD#oracle-traffic-director-122130-on-docker
Oracle Forms & Reports on Docker
=====
This github Repository contains all necessary Docker buildfiles to create an Oracle Forms & Reports 12.2.1.2.0 and Oracle Forms & Reports 12.2.1.3.0 environments under Docker
## Requirements
- Docker Host with Docker 17 or higher
- Docker Compose
- Oracle Database
- either native running Oracle Database with UNICODE Character Set
- or Oracle Database on Docker see (https://github.com/oracle/docker-images/tree/master/OracleDatabase)
For a good HowTo setup your initial Docker environment, you may have a look on Gerald Venzl's Blog https://geraldonit.com/2017/08/21/creating-an-oracle-database-docker-image/ . Specially the section "Increase base image size" will save you a lot of trouble ;-)
The installation of docker-compose is quite simple, from your Docker host run following commands:
sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
docker-compose version 1.17.0, build ac53b73
## How to build Oracle Forms & Reports 12.2.1.2.0
Get a copy of this repository on your Docker host, make sure that your Docker host have either direct Internet Connection or configure a Proxy to be able to run required `yum install` commands inside the Docker build files
**Important** As pre requirement you should create upfront the necessary volumes on your Docker Host:
mkdir -p /opt/oracle/oradata
mkdir -p /opt/oracle/user_projects
# Make sure that your oracle user on the Docker Host got:
# uid=54321(oracle) gid=54321(oinstall)
chown -R oracle:oinstall /opt/oracle/oradata
chown -R oracle:oinstall /opt/oracle/user_projects
chmod -R 777 /opt/oracle/oradata
chmod -R 777 /opt/oracle/user_projects
Create your Oracle Database which will host the Metadata Repository for the Oracle Forms & Reports environment. I recommend to use the Docker Image from Oracle https://github.com/oracle/docker-images/tree/master/OracleDatabase
1. Change to the subdirectory OracleJava/java-8
- Place the JDK 8u151 tar.gz in the folder OracleJava/java-8
./buildDockerImage.sh
- This will create an Image with OracleLinux:latest containing the Oracle JDK 8u151
- **Resulting Image => oracle/serverjdk**
2. Change to the subdirectory OracleFMWInfrastructure/dockerfiles
- Place the fmw_12.2.1.2.0_infrastructure_Disk1_1of1.zip file under OracleFMWInfrastructure/dockerfiles/12.2.1.2
./buildDockerImage.sh -v 12.2.1.2
- This extend the oracle/serverjdk image with several required RPM's for Oracle Forms & Reports and install an Oracle WebLogic Server Infrastructure 12.2.1.2.0
- **Resulting Image => oracle/fmw-infrastructure TAG: 12.2.1.2**
3. Change to the subdirectory OracleFormsReports/dockerfiles
- Place the fmw_12.2.1.2.0_fr_linux64.bin file under OracleFormsReports/dockerfiles/12.2.1.2
./buildDockerImage.sh -v 12.2.1.2
- This extend the oracle/fmw-infrastructure image with Oracle Forms & Reports 12.2.1.2.0 Software
- **Resulting Image => localhost/oracle/formsreports TAG: 12.2.1.2**
4. Change to the subdirectory OracleFormsReports/sample
- Align the ../setenv.sh file with your personal settings (**Important**: Change the variable DC_FR_VERSION to 12.2.1.2)
- Make sure your target Oracle Database for the configuration of the RCU is up and running and reachable
- Afterwards execute following commands:
source ../setenv.sh
docker-compose up -d frfmw; docker logs frfmw -f
5. Startup the frfmw container
- To startup the frfmw container (Node Manager and AdminServer) use following command
docker start frfmw
# Tail the container logs until you see the line
# . . . <BEA-000365> <Server state changed to RUNNING.>
docker logs -f frfmw
- To startup the Managed Server and Oracle HTTP Server connect with a browser on your Docker Host to the forwarded AdminServer port (most likely 7001) to the Enterprise Manager Fusion Middleware Control (http://localhost:7001/em)
- To startup the created Oracle Reports Server use following commands:
docker exec -ti frfmw /bin/bash
cd /opt/oracle/user_projects/domains/<DOMAIN_NAME>/bin
./startComponent.sh <REPORTS_SERVER_NAME>
exit
6. Configure your Forms & Reports
- As the complete `$DOMAIN_HOME` is mapped to a volume (/opt/oracle/user_projects/<DOMAIN_NAME>) on your Docker host, you can directly edit from the Docker Host your various configuration files, e.g. formsweb.cfg, rwserver.conf, httpd.conf and so on
## How to build Oracle Forms & Reports 12.2.1.3.0
Get a copy of this repository on your Docker host, make sure that your Docker host have either direct Internet Connection or configure a Proxy to be able to run required `yum install` commands inside the Docker build files
**Important** As pre requirement you should create upfront the necessary volumes on your Docker Host:
mkdir -p /opt/oracle/oradata
mkdir -p /opt/oracle/user_projects
# Make sure that your oracle user on the Docker Host got:
# uid=54321(oracle) gid=54321(oinstall)
chown -R oracle:oinstall /opt/oracle/oradata
chown -R oracle:oinstall /opt/oracle/user_projects
chmod -R 777 /opt/oracle/oradata
chmod -R 777 /opt/oracle/user_projects
**Important** In case you are planning to use the new Oracle Forms 12.2.1.3.0 feature Forms Application Deployment Services (FADS), you have to name your WebLogic Admin Server "AdminServer" !!! As this name for the Admin Server is hardcoded in the configuration script for FADS and in the deployed FADS ear-file
Create your Oracle Database which will host the Metadata Repository for the Oracle Forms & Reports environment. I recommend to use the Docker Image from Oracle https://github.com/oracle/docker-images/tree/master/OracleDatabase
1. Change to the subdirectory OracleJava/java-8
- Place the JDK 8u151 tar.gz in the folder OracleJava/java-8
./buildDockerImage.sh
- This will create an Image with OracleLinux:latest containing the Oracle JDK 8u151
- **Resulting Image => oracle/serverjdk**
2. Change to the subdirectory OracleFMWInfrastructure/dockerfiles
- Place the fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip file under OracleFMWInfrastructure/dockerfiles/12.2.1.3
./buildDockerImage.sh -v 12.2.1.3
- This extend the oracle/serverjdk image with several required RPM's for Oracle Forms & Reports and install an Oracle WebLogic Server Infrastructure 12.2.1.3.0
- **Resulting Image => oracle/fmw-infrastructure TAG: 12.2.1.3**
3. Change to the subdirectory OracleFormsReports/dockerfiles
- Place the fmw_12.2.1.3.0_fr_linux64.bin and fmw_12.2.1.3.0_fr_linux64-2.zip files under OracleFormsReports/dockerfiles/12.2.1.3
- In case you want to enable Oracle Forms Application Deployment Services (FADS), you will need to place under OracleFormsReports/dockerfiles/12.2.1.3 the binary file of SQLDeveloper 17.3.1 (http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html)
- Depending on the SQLDeveloper binary file you will download, you need to align the Dockerfile named Dockerfile_fads under OracleFormsReports/dockerfiles/12.2.1.3. Search for the line `ENV SQLDEV=` and place your zip-file name there.
- In the OracleFormsReports/setenv.sh file set the environment variable `export DC_FADS12C=true`
`./buildDockerImage.sh -v 12.2.1.3`
- This extend the oracle/fmw-infrastructure image with Oracle Forms & Reports 12.2.1.3.0 Software
- **Resulting Image => localhost/oracle/formsreports TAG: 12.2.1.3**
4. Change to the subdirectory OracleFormsReports/sample
- Align the ../setenv.sh file with your personal settings (**Important**: Change the variable DC_FR_VERSION to 12.2.1.3)
- Make sure your target Oracle Database for the configuration of the RCU is up and running and reachable
- Afterwards execute following commands:
source ../setenv.sh
docker-compose up -d frfmw; docker logs frfmw -f
5. Startup the frfmw container
- To startup the frfmw container (Node Manager and AdminServer) use following command
docker start frfmw
# Tail the container logs until you see the line
# . . . <BEA-000365> <Server state changed to RUNNING.>
docker logs -f frfmw
- To startup the Managed Server and Oracle HTTP Server connect with a browser on your Docker Host to the forwarded AdminServer port (most likely 7001) to the Enterprise Manager Fusion Middleware Control (http://localhost:7001/em)
- To startup the created Oracle Reports Server use following commands:
docker exec -ti frfmw /bin/bash
cd /opt/oracle/user_projects/domains/<DOMAIN_NAME>/bin
./startComponent.sh <REPORTS_SERVER_NAME>
exit
6. Configure your Forms & Reports
- As the complete `$DOMAIN_HOME` is mapped to a volume (/opt/oracle/user_projects/<DOMAIN_NAME>) on your Docker host, you can directly edit from the Docker Host your various configuration files, e.g. formsweb.cfg, rwserver.conf, httpd.conf and so on
7. Configure FADS (only Forms & Reports 12.2.1.3.0)
- In order to complete your FADS configuration you will need to execute the fads_config.py script
docker exec -ti frfmw /bin/bash
cd /opt/oracle/oracle_common/common/bin
./wlst.sh /opt/oracle/forms/fads/fads_config.py
# Answer all questions
# Finally the fads_config.py will exit the AdminServer and therefor your Docker container frfmw
# Restart your Docker container frfmw
docker start frfmw
- After the AdminServer is started up you can access the FADS UI via http://localhost:7001/fadsui
## License
To download and run Oracle Fusion Middleware and Oracle JDK, regardless whether inside or outside a Docker container, you must download the binaries from the Oracle website and accept the license indicated at that page.