We build this repository to maintain PlayFramework docker images for the latest MINOR and PATCH version of each RELEASE 1.X
All images are based on anapsix/alpine-java image and are minimalistic. This image also support CERTS so Java can connect to HTTPS.
Due a major retagging made by anapsix/alpine-java
, where they changed Alpine version, we experienced a break on compatibility. In order to avoid further problems, we added a new version tag on our side to try to keep a stable version between releases.
The version tag is added by the build-all.sh
docker run -it --rm \
-v $(pwd)/src:/app \
socialmetrix/play:1.2.5.6-1.0 \
play new test
If you have .m2
/ .ivy2
with credentials you want to use, just map them as below:
docker run \
-p 9000:9000 -d \
-v ~/.ivy2:/root/.ivy2 \
-v $(pwd)/src:/app \
socialmetrix/play:1.2.5.6-1.0 \
play run test
Below a example of Dockerfile
using version 1.2.5.6-1.0
, setting id
to prod
and installing sass
module.
FROM socialmetrix/play:1.2.5.6-1.0
MAINTAINER https://socialmetrix.com
COPY src/ /app/
RUN echo y | play install sass-1.1 && \
echo prod | play id
CMD ["play", "run"]