MuleSoft Anypoint API Gateway Docker image
963
1.1. Getting a Docker image from Docker Hub:
$ docker pull chilcano/mule-api-gw
1.2. Building and tagging the Docker base image (if the Docker Hub is not used), make sure Dockerfile is under docker-mulesoft-dev/mule-api-gw/:
$ git clone https://github.com/chilcano/docker-mulesoft-dev
$ docker build --rm -t chilcano/mule-api-gw docker-mulesoft-dev/mule-api-gw/.
1.3. Creating/starting a container in detached mode:
$ docker run -dt --name muleapigw01 chilcano/mule-api-gw
1.4. Creating/starting a container in interactive mode:
$ docker run -it --name muleapigw02 chilcano/mule-api-gw
1.5. Creating/starting a container in detached mode with volumes and accessible ports:
$ docker run -dt --name muleapigw03 \
-p 17777:7777 -p 18082:8082 \
-v ~/3docker/muleapigw01/logs:/opt/muleapigw/logs \
-v ~/3docker/muleapigw01/conf:/opt/muleapigw/conf \
-v ~/3docker/muleapigw01/apps:/opt/muleapigw/apps \
chilcano/mule-api-gw
1.6. Getting Shell access in interactive mode:
$ docker exec -it muleapigw01 bash
1.7. Destroying the containers and base image:
$ docker rm muleapigw01 muleapigw03 muleapigw03
$ docker rmi -f chilcano/mule-api-gw
1.8. Listing containers and images:
$ docker ps -a
$ docker images
Considerations:
conf directory, previously to map conf to your host.client_id and client_secret. Next update the wrapper.conf file to include the below two lines:wrapper.java.additional.<n>=-Danypoint.platform.client_id=<your-client-id>
wrapper.java.additional.<n>=-Danypoint.platform.client_secret=<your-client-secret>
apps directory and place the zip there.Content type
Image
Digest
Size
871.2 MB
Last updated
over 9 years ago
docker pull chilcano/mule-api-gw