An IBM WebSphere Application Server Classic for Developers image can be built by obtaining the following binaries:
-
IBM Installation Manager binaries from developerWorks
IBM Installation Manager binaries:
- agent.installer.linux.gtk.x86_64_1.6.2000.20130301_2248.zip
-
IBM WebSphere Application Server Classic for Developers binaries from developerWorks
IBM WebSphere Application Server Classic v8.5.5 for Developers binaries
- was.repo.8550.developers.ilan_part1.zip
- was.repo.8550.developers.ilan_part2.zip
- was.repo.8550.developers.ilan_part3.zip
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 for Developers 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 for Developers 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
developer/
. -
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 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
devinstall
if you are creating the developer profile image -
Build the 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 .