An IBM WebSphere Application Server Classic Base image can be built by obtaining the following binaries:
-
IBM Installation Manager binaries from Passport Advantage
IBM Installation Manager binaries:
- Install_Mgr_v1.6.2_Lnx_WASv8.5.5.zip(CIK2GML)
-
IBM WebSphere Application Server Classic Base binaries from Passport Advantage / Fix Central
IBM WebSphere Application Server Classic v8.5.5 Base binaries:
- WAS_V8.5.5_1_OF_3.zip(CIK1QML)
- WAS_V8.5.5_2_OF_3.zip(CIK1RML)
- WAS_V8.5.5_3_OF_3.zip(CIK1SML)
Fixpack 8.5.5.8 binaries:
- 8.5.5-WS-WAS-FP0000008-part1.zip
- 8.5.5-WS-WAS-FP0000008-part2.zip
IBM WebSphere Application Server Classic Base image is created using the following Dockerfiles(multiple Dockerfiles are used to reduce the final image size):
- Dockerfile.prereq
- Dockerfile.install
- Dockerfile.profile(Optionally used to create an image with profile )
The Dockerfiles take the values for the following variables during build time:
Dockerfile.prereq
- user(optional)[default 'was'] - user used for installation
- group(optional)[default 'was'] - group the user belongs to
- URL(required) - URL from where the binaries are downloaded
Dockerfile.install
- user(optional)[default 'was'] - user used for installation
- group(optional)[default 'was'] - group the user belongs to
Dockerfile.profile
- CELL_NAME(optional)[default 'DefaultCell01'] - cell name
- NODE_NAME(optional)[default 'DefaultNode01'] - node name
- PROFILE_NAME(optional)[default 'AppSrv01'] - profile name
- HOST_NAME(optional)[default 'localhost'] - host name
Dockerfiles perform the following actions:
Dockerfile.prereq:
- Installs IBM Installation Manager
- Installs IBM WebSphere Application Server
- Updates IBM WebSphere Application Server with the Fixpack
- When the container is started a tar file of the IBM WebSphere Application Server Classic Base installation is created
Dockerfile.install:
- Extracts the tar file created by Dockerfile.prereq
- Copies the profile creation and startup script to the image
- When the container is started, profile is created and the server is started
Dockerfile.profile:
- Uses the image created by Dockerfile.install as the base image
- Copies the server startup script to the image
- When the container is started the server is started
-
Place the downloaded IBM Installation Manager and IBM WebSphere Application Server Classic binaries on the FTP or HTTP server.
-
Clone this repository.
-
Move to the directory
base/
. -
Build the prereq image using:
docker build --build-arg user=<user> --build-arg group=<group> --build-arg URL=<URL> -t <prereq-image-name> -f Dockerfile.prereq .
-
Run a container using the prereq image to create the tar file in the current folder using:
docker run --rm -v $(pwd):/tmp <prereq-image-name>
-
Build the base install image using:
docker build --build-arg user=<user> --build-arg group=<group> -t <install-image-name> -f Dockerfile.install .
Set the install image name as
baseinstall
if you are creating the base profile image. -
Build the base profile image using:
docker build --build-arg CELL_NAME=<cell-name> --build-arg NODE_NAME=<node-name> --build-arg PROFILE_NAME=<profile-name> --build-arg HOST_NAME=<host-name> -t <profile-image-name> -f Dockerfile.profile .