Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

wso2-attic/dockerfiles

Repository files navigation

WSO2 Dockerfiles

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.

Try it out

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 set PUPPET_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.
  • 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
  • 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
  • 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

Detailed description