Deploy the Microgateway as a Docker Container¶
-
Sign in to docker.cloud.wso2.com with your username and password.
docker login docker.cloud.wso2.com Username: [email protected] Password: ****** Login Succeeded
-
Pull the docker image. A sample command is given below:
docker pull docker.cloud.wso2.com/wso2am-cloud-micro-gw:2.6.0
-
Run the docker container.
docker run -p127.0.0.1:8243:8243 -p127.0.0.1:8280:8280 -e "WSO2_CLOUD_ORG_KEY=your_organization_key" -e "[email protected]" -e "WSO2_CLOUD_PASSWORD=your_cloud_password" docker.cloud.wso2.com/wso2am-cloud-micro-gw:2.6.0
You can enable gateway debug logs by passing the following environment variable when running the docker container:
-e "LOG4J_PROPERTIES=log4j.logger.org.apache.synapse.transport.http.headers=DEBUG, log4j.logger.org.apache.synapse.transport.http.wire=DEBUG"
-
If you create/update an API and publish/re-publish it from API Cloud Publisher, it could take up to a maximum of 10 minutes before your changes become effective in the Microgateway.
- If you create/update a throttling tier from API Cloud, it could take up to a maximum of 15 minutes before your changes become effective in the Microgateway.
- Statistics of API usage in your Microgateway are published to API Cloud every 6 to 6.5 hours.