- Install Java 8.
- Modify the
url
andcertPath
properties in thedocker
section of thebuild.gradle
file to point to your Docker machine. - Build the image with:
./gradlew clean buildDockerImage
- If you want to override the version of the image built, use:
./gradlew -Pversion=_VERSION_ clean buildDockerImage
- Ensure that the rest-o-rant-api Docker container is running and is called
rest-o-rant-api
. - Run the Docker image built in the previous step by executing:
docker run -dP --link rest-o-rant-api --name rest-o-rant-web dkr-reg:5000/rest-o-rant-web:v1
- Check the port at which port 80 is exposed by running
docker ps
. - Open
http://<DOCKER>:<PORT>/findrestaurants
. - See the JSON result.