Skip to content

Commit

Permalink
Merge pull request oracle#392 from mriccell/master
Browse files Browse the repository at this point in the history
Create new sample to create a WLS 12.2.1.2 domain and to extend that …
  • Loading branch information
mriccell authored May 23, 2017
2 parents 6c5dd98 + 3371732 commit 9c4e6a5
Show file tree
Hide file tree
Showing 17 changed files with 954 additions and 0 deletions.
47 changes: 47 additions & 0 deletions OracleWebLogic/samples/12212-domain-online-config/Dockerfile
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 OracleWebLogic/samples/12212-domain-online-config/README.md
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.
2 changes: 2 additions & 0 deletions OracleWebLogic/samples/12212-domain-online-config/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker build -t 12212-domain-online-config .
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
Loading

0 comments on commit 9c4e6a5

Please sign in to comment.