forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request oracle#392 from mriccell/master
Create new sample to create a WLS 12.2.1.2 domain and to extend that …
- Loading branch information
Showing
17 changed files
with
954 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
OracleWebLogic/samples/12212-domain-online-config/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# LICENSE CDDL 1.0 + GPL 2.0 | ||
# | ||
# Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# ORACLE DOCKERFILES PROJECT | ||
# -------------------------- | ||
# This Dockerfile extends the Oracle WebLogic image by creating an domain on which | ||
# a managed server can be launched in Managed Server Independence (MSI) mode | ||
# | ||
# REQUIRED FILES TO BUILD THIS IMAGE | ||
# ---------------------------------- | ||
# | ||
# HOW TO BUILD THIS IMAGE | ||
# ----------------------- | ||
# Put all downloaded files in the same directory as this Dockerfile | ||
# Run: | ||
# $ sudo docker build -t 12212-domain-resources-online -f Dockerfile . | ||
# | ||
|
||
# Pull base image | ||
# --------------- | ||
FROM 12212-domain | ||
|
||
# Maintainer | ||
# ---------- | ||
MAINTAINER Monica Riccelli <monica.riccelli@oracle.com> | ||
|
||
# Environment variables required for this build (do NOT change) | ||
# ------------------------------------------------------------- | ||
ENV PATH=$PATH:/u01/oracle | ||
|
||
# Copy scripts | ||
# -------------------------------- | ||
USER root | ||
COPY container-scripts/* /u01/oracle/ | ||
|
||
RUN chmod +xr /u01/oracle/jms-wlst-online-config.sh && \ | ||
chown oracle:oracle -R /u01/oracle | ||
|
||
|
||
# Default directory creation, Admin Server boot | ||
# --------------------------------------------- | ||
USER oracle | ||
RUN . $ORACLE_HOME/wlserver/server/bin/setWLSEnv.sh && \ | ||
cd /u01/oracle && \ | ||
./jms-wlst-online-config.sh | ||
|
26 changes: 26 additions & 0 deletions
26
OracleWebLogic/samples/12212-domain-online-config/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Example of Image with WLS Domain | ||
================================ | ||
This Dockerfile extends the Oracle WebLogic image built under 12212-domain with tag name '12212-domain' | ||
|
||
WLST Online script are used during Docker image build phase to deploy the | ||
|
||
- JMS artifacts (JMS Server, Queue etc). | ||
|
||
# How to build and run | ||
First make sure you have built sample image inside **12212-domain**. Now to build this sample, run: | ||
|
||
$ docker build -t 12212-domain-online-config . | ||
|
||
You should now be able to see the JMS components | ||
To start the containerized Admin Server, run: | ||
|
||
$ docker run -d --name wlsadmin --hostname wlsadmin -p 7001:7001 1221-domain-online-config | ||
|
||
To start a containerized Managed Server to self-register with the Admin Server above, run: | ||
|
||
$ docker run -d --link wlsadmin:wlsadmin -p 7002:7002 1221-domain-online-config createServer.sh | ||
|
||
|
||
|
||
# Copyright | ||
Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
docker build -t 12212-domain-online-config . |
22 changes: 22 additions & 0 deletions
22
OracleWebLogic/samples/12212-domain-online-config/container-scripts/jms-config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#Migratable Target name | ||
migratabletarget.name=JMSMigratableTarget | ||
#machine.name=mymachine | ||
|
||
# 2 - JMSServer details | ||
jms.server.name=myJMSServer | ||
store.name=myFileStore | ||
store.path=/u01/oracle/user_projects/domains/base_domain/FileStore | ||
|
||
# 3 - SystemModule Details | ||
system.module.name=mySystemModule | ||
|
||
# 4 - ConnectionFactory Details | ||
connection.factory.name=myJMSConnectionFactory | ||
connection.factory.jndi.name=jndi.myJMSConnectionFactory | ||
|
||
# 5 - SubDeployment, Queue & Topic Details | ||
sub.deployment.name=mySubDeployment | ||
queue.name=myDistributedQueue | ||
queue.jndi.name=jndi.myDistributedQueue | ||
topic.name=myDistributedTopic | ||
topic.jndi.name=jndi.myDistributedTopic |
Oops, something went wrong.