Friday, October 5, 2018

Disabling Docker DataPower features

Introduction


DataPower image ibmcom/datapower for Docker comes with all features enabled. However, you might want to test functionality/do the development without any extra features installed especially if you are not planning to acquire those licenses to production use. Removing features can be accomplished by using Dockerfile where you can disable features you don't need.

Instructions


Features can be checked from the WebGUI or from the CLI.



'show license' -command also shows the installed licenses/features.




Features that can be disabled are found here:
https://www.ibm.com/support/knowledgecenter/en/SS9H2Y_7.7.0/com.ibm.dp.doc/docker_features.html

appopt: Application Optimization feature
b2b: B2B feature
dg: Binary processing feature
ims: IMS™ feature
sql: SQL ODBC feature

First let's make a Dockerfile -file, in this case to the C:\Docker\build -directory:




Content of the Dockerfile (this disables all features that can be disabled):

FROM ibmcom/datapower
USER root
RUN /bin/disable-feature appopt b2b dg ims sql
RUN set-user drouter
USER drouter




Next go to the C:\Docker\build -directory in the cmd and enter the command:
docker build -t ibmcom/datapower .



Then you can create a new virtual device where the selected features are disabled, for example:

docker run -it -v C:/Docker/idg02/config:/drouter/config -v C:/Docker/idg02/local:/drouter/local -e DATAPOWER_ACCEPT_LICENSE=true -e DATAPOWER_INTERACTIVE=true -p 9090:9090 -p 5550:5550 -p 8086:8086 -p 8087:8087 -p 8088:8088 -p 8089:8089 -p 8090:8090 -p 8091:8091  --name idg02 ibmcom/datapower

In the newly created DataPower you can now check that features you excluded are not installed:







No comments:

Post a Comment