Posts

Showing posts with the label Hospital Service

Dockerizing WSO2 hospital service from source

In this blog post, we are going to build the hospital service backend jar used in WSO2 Enterprise Integrator samples from the source and bundle it inside a Docker container. Sources for this project are available in this GitHub repo . Steps to create, run and test the hospital service docker container Clone the GitHub repo to the local machine. Open a Powershell window and navigate to the folder where the cloned project is located. Execute “ docker build -t hospitalserviceagent:v2 . ” to create the Docker image. Execute “ docker run -p 9090:8080 hospitalserviceagent:v2 ” to run a container based on the created image. Navigate to http://localhost:9090/healthcare/surgery in a browser window and you should see an output as in step 5 in Sending requests to the ESB . Explanation   This Docker file used two docker images in a two-step process to build this final Docker image.  The first step is the build stage which uses the maven:3-openjdk-8 image as the build image. This image h...

Dockerizing WSO2 hospital service jar

In this blog post, we are going to build a Docker container to run the hospital service backend jar used in WSO2 Enterprise Integrator samples. Sources for this project are available in this GitHub repo . Steps to create, run and test the hospital service docker container Create a new folder and download the Hospital-Service-2.0.0-EI7.jar file and Dockerfile into the folder. Open a Powershell window and navigate to the folder where files are downloaded to. Execute “ docker build -t hospitalserviceagent:v1 . ” to create the Docker image. Execute “ docker run -p 9090:9090 hospitalserviceagent:v1 ” to run a container based on the created image. Navigate to http://localhost:9090/healthcare/surgery in a browser window and you should see an output as in step 5 in Sending requests to the ESB . This Hospital-Service-2.0.0-EI7.jar file in the above repository is downloaded from the WSO2 Docs GitHub repo. Instead of using the jar file link from above step 1, you can use the jar file from the ...