Public Repository

Last pushed: 12 days ago
Short Description
PlayFramework! minimalistic docker images for the latest MINOR and PATCH version of each release 1.x
Full Description

PlayFramework! Docker Images

We build this repository to maintain PlayFramework docker images for the latest MINOR and PATCH version of each RELEASE 1.X

Supported tags and respective Dockerfile links

All images are based on anapsix/alpine-java image and are minimalistic. This image also support CERTS so Java can connect to HTTPS.

Usage

You can use this image as development environment:

docker run -it --rm \
  -v $(pwd)/src:/app \
  socialmetrix/play:1.2.5.6-alpine \
  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-alpine \
  play run test

As base image to pack your application:

Below a example of Dockerfile using version 1.2.5.6-alpine, setting id to prod and installing sass module.

FROM socialmetrix/play:1.2.5.6-alpine
MAINTAINER https://socialmetrix.com

COPY src/ /app/

RUN echo y | play install sass-1.1 && \
  echo prod | play id

CMD ["play", "run"]
Docker Pull Command
Owner
socialmetrix

Comments (0)