Skip to content

Commit

Permalink
Added docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobstanley committed Feb 1, 2015
1 parent af959cc commit 9afa62a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git/
.cabal-sandbox/
dist/
cabal.sandbox.config
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM jystic/centos6-ghc7.8.4

## Update cabal
RUN cabal update

## Add .cabal file
ADD ./hadoop-tools.cabal /opt/hadoop-tools/hadoop-tools.cabal

# Docker will cache this command as a layer, freeing us up to
# modify source code without re-installing dependencies
RUN cd /opt/hadoop-tools && cabal install --only-dependencies -j4

# Add and install application code
ADD . /opt/hadoop-tools
RUN cd /opt/hadoop-tools && cabal install

# Add installed cabal executables to PATH
ENV PATH /root/.cabal/bin:$PATH

# Default command for container
CMD ["hh"]

0 comments on commit 9afa62a

Please sign in to comment.