Packaging and deploying Akka application inside a Docker container
In this recipe, you will learn how to run our Akka application inside a docker container. This is done assuming that most of you are familiar with docker and have a working installation of docker on your Linux machine. Docker is an application container engine. The focus of this recipe is to run the application inside docker.
Note
For more information on how to install docker, visit https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04.
Getting ready
In the previous recipe, you learned how to package the Akka application into an assembly jar. It is recommended that you go through that recipe, Packaging and deploying the Akka standalone application. We will use this assembly jar while building a docker image.
How to do it…
- First of all, ensure that docker is properly installed on your machine. Run the following command to check the version:
sudo docker version
If the preceding command...