Skip to content

9.4 Docker Image

Rathna edited this page Jul 26, 2022 · 5 revisions

Running APIM CLI as docker image

Sample Dockerfile located at root directory

Build Docker Image

  • Download apim-cli release binary and copy it local director and build a docker image
docker build -t apimcli .

Above build hardcode with the release version 1.12.1

  • Build docker image with specific apim-cli version
docker build -t apimcli --build-arg APIM_CLI_ARCHIVE=axway-apimcli-1.12.0.tar.gz .

Run Docker image

docker run -e "JAVA_TOOL_OPTIONS=-Dlog4j.configurationFile=/opt/apim-cli-1.12.1/conf/log4j2.xml" -e LOG_LEVEL=debug apimcli app get -u apiadmin -p changeme2 -h 172.17.0.1

Clone this wiki locally