X

The Digital Experience Platform blog covers the latest in innovative technologies to help you transform your business.

Oracle WebCenter Sites Docker Image

Sripathy Rao
Product Manager

You always wanted a lightweight environment to build solutions with Oracle WebCenter Sites. We heard you loud and clear.

Introducing the Oracle WebCenter Sites Docker image...

Jump Start Kit, aka JSK, was shouldering this responsibility all these years. However, you wanted an environment that closely matched the characteristics of the Test, Management, and Production systems in terms of the database and application server apart from WebCenter Sites server itself. This enables finding potential issues faster, rather than having to wait until your solution deploys to the higher systems, tested, and hopefully discovering soon enough.

You can build self-contained WebCenter Sites Docker image to include Sites, Oracle Database, and WebLogic Server. Alternatively, you may build one with just WebCenter Sites server and WebLogic server, and use an external database.

You can build WebCenter Sites Docker image in 4 steps:

  1. Download—
    • Scripts that build WebCenter Sites Docker image from GitHub
    • Oracle Database & Oracle Fusion Middleware Infrastructure Docker images
    • WebCenter Sites 12c install binary
  2. Build WebCenter Sites Docker image
  3. Start Oracle Database and WebLogic Server Admin containers
  4. Start WebCenter Sites managed container
  5. Bonus step.  Happy Development...

In this blog, I’ll outline the main steps very briefly. Full instructions to build and run WebCenter Sites Docker container is available on GitHub.  The Readme has a FAQ section with answers for common questions.

Download the required stuff

Head over to GitHub and download the scripts you’ll use to build the WebCenter Sites Docker image—

  git clone https://github.com/oracle/docker-images.git

Next, download Oracle Database and Oracle Fusion Middleware Infrastructure Docker images. You need to tag these images so that the script picks these images up—

  docker pull container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.3
  docker pull container-registry.oracle.com/database/enterprise:12.2.0.1

Download WebCenter Sites 12.2.1.3 install binary into this folder.

You’re all set to start building WebCenter Sites Docker image.

Build the Docker Image

With all the required files in place, you can build the WebCenter Sites Docker image with this command—

  sh buildDockerImage.sh -v 12.2.1.3

The script takes about 45 minutes to complete this step, which involves setting up WebCenter Sites' RCU, configuring domain, and WebLogic Admin container.

Crank things up

Now that you’ve created the WebCenter Sites Docker image, it’s time to kick things off.

Start the Database container and watch until it completes booting up—

   docker run -d --name … --network=… -p … --env-file … database/enterprise:12.2.0.1

Soon after, start the WebLogic Server Admin container. As with the database, watch until the Admin server is ready—

   docker run -d --name … --network=… -p … -v … --env-file … oracle/fmw-infrastructure:12.2.1.3

Run this command to start WebCenter Sites managed container—

   docker run -d -t --name … --network=… --volumes-from … -p … --env-file … oracle/wcsites:12.2.1.3 /bin/bash -c "/u01/oracle/sites-container-scripts/startSitesServer.sh; /bin/bash"

Once WebCenter Sites starts up, you can access it from your browser.

Open http://<host:7002>/sites

That’s It

You can use WebCenter Sites Docker container for development. If you want the entire development team to use this container, you can do that too with WebCenter Sites' Developer Tools.

Again, Happy Development!

 

 

Notes

Support Information for Oracle WebLogic Server and Oracle Fusion Middleware Running in Docker Containers (Doc ID 2017945.1).

Supported Virtualization and Partitioning Technologies for Oracle Fusion Middleware.

 


Co-authors

Ashish Chalak
Senior Member Technical Staff, Oracle WebCenter Sites Engineering

Ashish Chalak is a Senior Member Techincal Staff at Oracle, interested in DevOps Engineering and Java Development. He loves discussing DevOps, Java, Cloud Computing, and Software Development. Ashish considers himself a software engineer, and is convinced that we all can create a better world for people with better software.

Vedesh Mohandas
Senior Member Technical Staff, Oracle WebCenter Sites Engineering

Vedesh Mohandas is passionate about Cloud Computing, DevOps and likes to actively talk about them. He believes that any problem, however complex it may look can be broken down into simpler sub problems with thorough analysis. Proficient in Java, Shell scripts. Helping with queries that come under his area of expertise is something that he enjoys doing.

Join the discussion

Comments ( 3 )
  • Al Monday, March 5, 2018
    Great article, however I am wondering can this works with the following too?
    i) WCS 11g
    ii) On MacOS

    If not what do I need to change to make it work?
  • Sripathy Rao Tuesday, March 13, 2018
    The scripts are designed to work with Oracle Fusion Middleware 12c version of Oracle Database, WebLogic Server, and WebCenter Sites.

    Getting this to work on 11g is going to be major effort.
  • rajanikota Monday, February 25, 2019
    Nice Article!! Thanks for sharing very useful...
    Docker Training in Hyderabad
    Docker and Kubernetes Online Training
    Docker Training
    Docker Online Training
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha