Giter VIP home page Giter VIP logo

docker-play's Introduction

docker-play

dockeri.co

This is a minimal docker container based on Ubuntu 14.04 for Play Framework development.

Description

You should run this container interactivelly and launch activator console commands from within your play projects directories.

Includes:

  • Oracle JDK 1.8
  • Typesafe Activator 1.3.12 (Play 2.5.10)
  • Git, wget, curl, build-essential

Users

A user named play is created with sudoers privileges. Home is at /home/play.

Volumes

Exports a volume on /home/play/Code. You can mount the volume on run to a local directory containing your code.

ivy2 and sbt caches

Java user.home variable is defined, pointing to /home/play/Code. In this way, all dependencies are kept if you mount the /home/play/Code volume on /home/play/Code/.ivy2 and /home/play/Code/.sbt directories.

Ports

Three ports are exposed:

  • 9000: default Play port.
  • 9999: default Play debug port.
  • 8888: default Activator UI port.

Remember to map the ports to the docker host on run.

How to run the container

Using docker

You need docker v1.3+ installed. To get the container up and running and drop to an interactive shell, run:

sudo docker run --rm -it -v "/home/dordoka/Code:/home/play/Code" -p 9000:9000 -p 9999:9999 -p 8888:8888 dordoka/play-framework

Remember to change /home/dordoka/Code to the directory where your code is stored.

Using docker-compose

If you have docker-compose installed, you can just launch:

sudo docker-compose up

NOTE: compose doesn't support interactive shells directly. See Issue 423

Happy coding! :)

docker-play's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-play's Issues

Automatically run activator ui

Hi,

I'm a newbee for this docker play-framework container.
I usually use play-framework using activator ui, but the docker file is written by CMD['/bin/bash'].

What do you think if I modify CMD script from /bin/bash to activator script such as CMD['activator', 'ui', '-Dhttp.address=0.0.0.0]

activator not on PATH env

Hi!

I would do a PR but kinda constricted on time.

So, this line:

RUN echo "export PATH=$PATH:/opt/activator" >> /home/play/.bashrc
should be like this:
RUN echo "export PATH=$PATH:/opt/activator/bin" >> /home/play/.bashrc

Cheers and thanks for the awesome container.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.