Dockerizing an existing Project

I have a web based application using Play framework and Scala which I would like to Dockerize. Essentially, I would like to do the following:

  1. Create a docker file that would be my docker container for the play application
  2. Be able to pass in a configuration to this docker file so that I can build the docker image either for my local code base or pull from master branch

Any suggestions on how do I get started?

  • How to launch my docker container automatically on ECS?
  • Cannot add controller replica to the existing UCP cluster
  • In Docker, how can I share files between containers and then save them to an image?
  • Docker Jenkins slave wrong character encoding
  • Unable to access local network IP from docker container
  • Possible to make incremental checkpoints CRIU
  • How to substitute a command output into a string and append that to a file (in Alpine Linux running in Docker)
  • docker image for a go package
  • Dockerfile: Permission denied during build when running ssh-agent on /tmp
  • Number of threads used by Go runtime
  • Django and nginx with docker compose - static files are not loaded
  • Is it possible to view docker-compose logs in the output window running in Windows?
  • One Solution collect form web for “Dockerizing an existing Project”

    Hm, no real need to create a new Dockerfile when thankfully many existing ones already exist for this purpose.

    By quickly searching on DockerHub these [1, 2] images for the Play Framework already exist. You can use these “as is” or simply base a new image on them if for some reason you want more additional functionality.

    docker pull <image name> and docker run <image name> suffice to get them up and running, with plenty of parameters according to your needs

    Whatever your choice may be, it’s probably a good idea to first familiarize yourself with the concepts of Docker by reading the Docs (which are written nicely).

    Additionally, to address your configuration requirements, focus specifically on volumes in Docker, which allow you to share a folder from your host with your container.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.