Skip to content

Instantly share code, notes, and snippets.

@dmouse
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmouse/086347c1c7d2cd3afee7 to your computer and use it in GitHub Desktop.
Save dmouse/086347c1c7d2cd3afee7 to your computer and use it in GitHub Desktop.
Dockerfile to build a image with conscript and n8han/giter8 for Scala application
FROM centos
MAINTAINER David Flores "dmousex@gmail.com"
RUN yum update -y
RUN yum install java-1.7.0-openjdk.x86_64 -y
RUN yum install wget unzip which -y >/dev/null
ENV HOME /root
RUN cd /tmp && wget https://raw.githubusercontent.com/n8han/conscript/master/setup.sh
RUN sh /tmp/setup.sh
RUN /root/bin/cs n8han/giter8
RUN ln -s /root/bin/cs /usr/local/bin
RUN ln -s /root/bin/g8 /usr/local/bin
@dmouse
Copy link
Author

dmouse commented May 23, 2014

Docker image for Scala

Contains

Usage

local $ docker build -t user/scala Dockerfile
local $ docker run -i -v /loca/path:/var/ww -t user/scala /bin/bash
container $ g8 scalatra/scalatra-sbt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment