Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

A docker image called powellquiring/docker-playbase
can be used to create a docker image for a play application.
Just create a Dockerfile that exposes your PLAY_REPOSITORY git repository as an environment variable like the following:

FROM powellquiring/playbase
ENV PLAY_REPOSITORY https://github.com/andgrit/com.andgrit.estimate.git
RUN ./control.sh dist

After the image has been created then run it. Something like this:

docker build -t estimate .
docker run -p 80:9000 estimate

Then exercise the application (maybe open the docker host ip address in a browser?)

Be patient while the RUN command for the docker build executes. It takes a while to do the following stuff:

  • install the prerequisites for play: like jdk
  • get the play activator
  • clone the git project
  • activator dist - build the play program for distribution
  • uninstall everything
  • install a jre since it is smaller then a jdk
  • delete any intermediate stuff
Docker Pull Command
Owner
powellquiring
Source Repository