Run Engine command framework
The Run Engine command framework provides predefined commands, that we can use to change environment parameters or container configurations. This framework is built into the IBM provided Docker images. For example, we can use Run Engine commands to update the WebSphere Application Server JVM parameters using the a predefined set-system-property Run Engine command.
Implementation methods
Although we can use Run Engine commands inside a running container, IBM recommends that you build new Docker images to set new configurations by default, or pass in the parameters during Docker start up. For example,
- Create a Dockerfile and define Run Engine commands in the Dockerfile. Then use the Dockerfile to build a new image so that your new environment parameters or configurations are set by default. For more information, see Building custom Docker images based on customization packages.
- Each Docker image contains a call to a preconfigure.sh script. Create our own preconfigure.sh script to set environment variables or container configurations. See Docker container start up logic for 9.0.0.0 and 9.0.0.1.
- Run Engine commands
The following Run Engine commands are available by default for you to configure the applications running inside the containers.- Creating our own Run Engine commands
If the predefined Run Engine commands do not satisfy your requirements, we can create our own commands.