Public | Automated Build

Last pushed: a year ago
Short Description
Automated build for wso2am gateway
Full Description

wso2am - updated

This image is meant to be used in Rancher and fronted through a haproxy container.

To run locally, use the following:

docker run -it --rm -p 9443:443 -p 8080:80 -p 8243:8243 -e API_HOSTNAME=<<your ip address>:8080 -e API_MGMT_HOSTNAME=<<your ip address>:9443 xpologistics/wso2am:latest will make the following changes to the config files in the container -

replace_reverse_proxy_host $API_HOSTNAME $STORE_CONF_FILE $STORE
replace_reverse_proxy_disabled "6" $STORE_CONF_FILE
replace_reverse_proxy_disabled "3" $PUBLISHER_CONF_FILE
replace_gateway_endpoint $API_HOSTNAME $API_XML_FILE
replace_nttp_proxy_host $CATALINA_XML_FILE


The function replace_reverse_proxy_host will update the reverse proxy host value with the API_HOSTNAME value in the store and publisher conf files. This is to get redirects from the site working.

The function replace_reverse_proxy_disabled turns the disabled value from false to true in the store and publisher conf files. It does this by changing the "6"th or "3"rd instance of false to true

The function replace_gateway_endpoint changes the endpoint info in the api.xml file to be the API_HOSTNAME value.

The function replace_nttp_proxy_host changes the proxy host port in the catalina-server.xml file from 9443 to 443 and from 9763 to port 80.

Docker Pull Command
Source Repository