Public Repository

Last pushed: 2 years ago
Short Description
Development environment with Play Framework 2.
Full Description

Inspired by https://registry.hub.docker.com/u/mzkrelx/playframework2-dev/, but is based on Ubuntu and includes dependancies that activator downloads when you start new application first time.

I use it in multi-containers environment:

Data Volume Container:

docker run -i -t --name ar_storage -v /opt/workspace/ -v /data/db/ busybox /bin/sh

Database

https://registry.hub.docker.com/u/dockerfile/mongodb/

docker pull dockerfile/mongodb
docker run -d --name ar_db --volumes-from ar_storage dockerfile/mongodb

“/data/db” is container's Volume and default db location

Play2

docker run -i -t -p 9000:9000 --link ar_db:db --volumes-from ar_storage --name ar_web akramarev/play2

"/opt/workspace" is container's Volume and current directory after logged in. Git is installed so feel free to clone repo with code into it:

git clone https://github.com/xxx/yyy.git

Finally run the application that must be available on http://localhost:9000 from host. The DB container is available from the Web container as "db" host (try "ping db").

play run
Docker Pull Command
Owner
akramarev