WSO2 Dockerfiles define the resources and instructions to build the Docker images with the WSO2 products and runtime configurations. This process uses Puppet and Hiera to configure the Docker images.
Quick steps to build the WSO2 Product's docker image and run in your local machine
-
Get Puppet Modules
- The Puppet modules for WSO2 products can be found in the WSO2 Puppet Modules repository. You can obtain the latest release from the releases page.
- After getting the
wso2-puppet-modules-<version>.zip
file, extract it and setPUPPET_HOME
environment variable pointing to extracted folder.
-
Add product packs and dependencies
- Download and copy JDK 1.7 (jdk-7u80-linux-x64.tar.gz) pack to
<PUPPET_HOME>/modules/wso2base/files
- Download the necessary product packs and copy them to
<PUPPET_HOME>/modules/<MODULE>/files
. For example, for WSO2 API Manager 1.9.1 download the product pack and copy the zip file to<PUPPET_HOME>/modules/wso2am/files
.
- Download and copy JDK 1.7 (jdk-7u80-linux-x64.tar.gz) pack to
-
Build docker image
- Navigate to the module folder of the WSO2 product. For example, for WSO2 API Manager (eg:
<REPOSITORY_HOME>/wso2am
). - Execute
build.sh
script and provide the product version, image version and the product profiles to be built../build.sh -v 1.9.1 -i 1.0.0
- Navigate to the module folder of the WSO2 product. For example, for WSO2 API Manager (eg:
-
Docker run
- Execute
run.sh
script and provide the product version, image version and the product profiles to be run../run.sh -v 1.9.1 -i 1.0.0
- Execute
-
Access management console
- Add an
etc/hosts
entry in your local machine for<docker_host_ip> am.wso2.com
. For example:127.0.0.1 am.wso2.com
- To access the management console.
https://am.wso2.com:32004/carbon
- Add an
-
[Introduction] (https://docs.wso2.com/display/DF100/Introduction+to+Docker+Images)
-
[Build docker images] (https://docs.wso2.com/display/DF100/Building+Product+Docker+Images)
-
[Run docker images] (https://docs.wso2.com/display/DF100/Running+and+Migrating+Images)