Building WSO2 APIM Docker Image behind the proxy
Recently I have struggled building the docker image of WSO2 API Manager 4.5 and the client system was running behind the corporate proxy.
The usual command I ran to build the image for the below directory structure -
Root-Directory
├── custom.zip
├── docker-entrypoint.sh
├── Dockerfile
└── wso2am-4.5.0.55_16042026.zip
├── custom.zip
├── docker-entrypoint.sh
├── Dockerfile
└── wso2am-4.5.0.55_16042026.zip
Command -
sudo podman build . -t wso2am:4.5.0.55_16042026
However, the above command didn't work since proxy is expected in command. Then I added the proxy configuration both http and https and then it worked to build the custom docker image of WSO2 API manager v4.5-
sudo podman build . -t wso2am:4.5.0.55_16042026 --build-arg http_proxy=http://host:port/ --build-arg https_proxy=https://host:port/

Comments
Post a Comment