Skip to content

ihcsim/docker-wso2apim

Repository files navigation

docker-wso2apim

Codeship Status for ihcsim/docker-wso2apim

Docker image to install and run WSO2 API Manager.

Description

The Dockerfile will:

  • Use wget to pull the WSO2 API Manager 2.1.0 zip file from a S3 bucket into the container /opt folder.
  • Install zip.
  • Unzip the APIM 2.1.0 ZIP.
  • Remove the APIM 2.1.0 ZIP.
  • Expose the container port 9443, 9736, 8243, 8280, 10397, 7711.
  • Set the wso2server.sh start-up script as the container entrypoint.

Usage

To build the api-manager and test images with earthly:

earth +image

earth +test-image

To run the WSO2 API Manager:

export API_MANAGER_HOST=apim
export TEST_NETWORK=test

docker network create "$TEST_NETWORK"

docker run -d --name "$API_MANAGER_HOST" \
  --network "$TEST_NETWORK" \
  -p 9443:9443 \
  wso2am:2.1.0-update14

docker run --network "$TEST_NETWORK" \
  --env API_MANAGER_HOST="$API_MANAGER_HOST" \
  wso2am-test

To access the web UI:

License

Refer to the LICENSE file. WSO2 license can be found here.