Sign inSign up

powellquiring/playbase

By powellquiring

•Updated almost 11 years ago

Image
0

250

powellquiring/playbase repository overview

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

Tag summary

Content type

Image

Digest

sha256:41aa42f6d…

Size

62.8 MB

Last updated

almost 11 years ago

docker pull powellquiring/playbase