Software AG Products 10.11 | Running Business Processes and Composite Applications | Administering My webMethods Server | Startup and Configuration | Using My webMethods Server with Docker | Creating and Customizing Docker Images for My webMethods Server Installations | Creating a Dockerfile for a My webMethods Server Installation
 
Creating a Dockerfile for a My webMethods Server Installation
The mws_container.sh script provides additional command-line tooling for generating a Dockerfile for a single-instance installation of My webMethods Server.
*To generate a Dockerfile for My webMethods Server
1. Go to the Software AG_directory /MWS/tools/docker/bin directory of your My webMethods Server installation.
2. Run mws_docker.sh createDockerfile, and customize the generated Dockerfile by specifying one or more of the following parameters:
Parameter
Description
-Dfile.path
Optional. The file path for the generated Dockerfile. Specify a full path, or a file name only. The default values are: Software AG_directory /MWS/tools/docker/scripts/file.path if you specify only a file name, and Software AG_directory /MWS/tools/docker/scripts/Dockerfile_MWS if not specified.
-Dimage.name
Optional. The name of the base image on top of which to build the My webMethods Server image. The default is centos:7.
-Dcreate.user.group
Optional. Boolean. Whether to create a user and group for the image. The default is true.
-Dbase.user.group
Specify as userid:groupid. Optional. Use when -Dcreate.user.group is set to false. Specify the user and group to supply to the chown statements in the generated Dockerfile and use when copying files/directories from the local installation to the image. You must make sure that the specified user and group exist, i.e. your base image or additional scripts must create the user/group.
-Dinstance.name
Optional. The name of the My webMethods Server instance for which to create an image. The default is default.
-Dinclude.jdk
Optional. Boolean. Whether to include the JDK from the host installation in the image. The default is true.
-Dimage.java.home
Optional. Full path to the java home directory. Applies only when -Dinclude.jdk is set to false.
-Dport.list
Optional. A comma-separated list of ports to expose in the Docker container. The default is 8585.
-Dcreate.volumes
Optional. Boolean. Whether to set up volumes. The default is true.
-Dcreate.dockerignore
Optional. Boolean. Whether to generate a .dockerignore file. The default is true.