Weblogic Servers for deploying applications in IntelliJ IDEA
3.6K
Base docker images to run a WebLogic application server in developer mode: versions 12.1.3 and 12.2.1
opavlova/weblogic:12.1.3
opavlova/weblogic:12.2.1
WebLogic Server
Admin Username: weblogic
Admin Password: admin_password
Oracle Linux Username: oracle
Oracle Linux Password: welcome1
WebLogic Domain Name: base_domain
Admin Server on port: 8001
NodeManager on port: 5556
Managed Server on port: 7001
JAVA_HOME = /usr/java/default
ORACLE_HOME = /u01/oracle
DOMAIN_HOME = /u01/oracle/user_projects/domains/base_domain
Working directory: DOMAIN_HOME
Create HelloDocker.war file and place it to the same directory where will be the corresponding Dockerfile
Create this Dockerfile:
FROM opavlova/weblogic:12.2.1
ADD HelloDocker.war $DOMAIN_HOME/autodeploy/
Create and run a New Run Configuration
click on the "Run on Docker' gutter (near "FROM" in the Editor) -> choose "New Run Configuration"
enter "-p 18001:8001" into the "Run options" field
enter an image/container name if needed
Run ( results are in the Services View )
Go to the corresponding url with the deployed artifact http://localhost:18001/HelloDocker/
For server administration, use the WebLogic Server console at http://localhost:18001/console)
Go to the Services View
Connect to Docker
Pull the image
Select "Images" item
Enter "opavlova/weblogic:12.2.1"
Press ctrl+click to pull the image
Run a container
Select the pulled image in the list of images->Call context menu->Create Container
Enter into the "Run options" field in the opened Docker Run Configuration
-p 18001:8001 -v "/c/Users/opavlova/IdeaProjects/HelloDocker/out/":/u01/oracle/user_projects/domains/base_domain/autodeploy/
where port binding: "-p :"
and volume binding: "-v :"
Run
Go to the deployed application, in our case http://localhost:18001/HelloDocker/
For server administration, use the WebLogic Server console at http://localhost:18001/console)
Content type
Image
Digest
Size
786.4 MB
Last updated
about 10 years ago
docker pull opavlova/weblogic:12.1.3