-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af959cc
commit 9afa62a
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git/ | ||
.cabal-sandbox/ | ||
dist/ | ||
cabal.sandbox.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |