Containerized Weblogic in Docker with deployment scripts.
-
Make sure all required packages exist in their respective directory:
- oraclelinux-slim-7/oraclelinux-7-slim-rootfs.tar.xz
- jre-8u171/server-jre-8u171-linux-x64.tar.gz
- weblogic-12.1.3/fmw_12.1.3.0.0_wls.jar
-
For deployments, war file is expected to be copied from container-scripts/*.war; change that inside deploy.py in the future to wherever the war is delivered.
-
For experiments, use the convenience script
rebuild.sh
to destroy/recreate needed containers/images if you made a change in an image, but modify as needed.
$ docker build -t oracle/oraclelinux/slim-7 oraclelinux-slim-7
$ docker build -t oracle/serverjre:8 jre-8u171
$ docker build -t oracle/weblogic:12.1.3 weblogic-12.1.3
$ docker build -t wl-domain --build-arg ADMIN_PASSWORD=<define> wl-domain
$ docker build -t webtt-deployment wl-deployment
$ docker run -d --name wlsadmin --hostname wlsadmin -p 7001:7001 webtt-deployment
$ docker run -d --name wlsmanaged --link wlsadmin:wlsadmin -p 7002:7002 webtt-deployment createServer.sh
$ docker contanier ls
# Kill/Remove a container:
$ docker kill <container_id>
$ docker rm <container_id>
# List all containers (running/killed):
$ docker container ls -a
# Restart killed containers (whose changes are not gone till you do a $ docker container rm)
$ docker start <container_id>