-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from mhaji/clojure-lein
Add a Clojure/Leiningen Dockerfile.
- Loading branch information
Showing
4 changed files
with
53 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,14 @@ | ||
FROM iron/java:1.8 | ||
|
||
# To disable warning | ||
ENV LEIN_ROOT 1 | ||
ENV LEIN_VERSION 2.6.1 | ||
|
||
RUN apk add --update wget ca-certificates bash && \ | ||
wget -q "https://raw.githubusercontent.com/technomancy/leiningen/$LEIN_VERSION/bin/lein" -O /usr/local/bin/lein && \ | ||
chmod 0755 /usr/local/bin/lein && \ | ||
lein && \ | ||
|
||
# Do clean up | ||
apk del wget ca-certificates && \ | ||
rm -rf /tmp/* /var/cache/apk/* |
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,11 @@ | ||
# Leiningen Docker image | ||
This is a small [Alpine Linux](http://www.alpinelinux.org/) based image for running Clojure applications that are built using [Leiningen](http://leiningen.org/). | ||
|
||
## Build | ||
|
||
docker build -t leiningen . | ||
|
||
## Run | ||
To run a Clojure repl: | ||
|
||
docker run -it leiningen lein repl |
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,17 @@ | ||
FROM iron/java:1.8 | ||
|
||
# To disable warning | ||
ENV LEIN_ROOT 1 | ||
ENV LEIN_VERSION 2.6.1 | ||
|
||
RUN apk add --update wget ca-certificates bash curl git | ||
|
||
# Required by Figwheel | ||
RUN apk add rlwrap --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted | ||
|
||
RUN wget -q "https://raw.githubusercontent.com/technomancy/leiningen/$LEIN_VERSION/bin/lein" -O /usr/local/bin/lein | ||
|
||
RUN chmod 0755 /usr/local/bin/lein && lein | ||
|
||
# Clean up | ||
RUN apk del wget ca-certificates && rm -rf /tmp/* /var/cache/apk/* |
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,11 @@ | ||
# Leiningen Docker image | ||
This is a small [Alpine Linux](http://www.alpinelinux.org/) based image for running Clojure applications that are built using [Leiningen](http://leiningen.org/). | ||
|
||
## Build | ||
|
||
docker build -t leiningen:dev . | ||
|
||
## Run | ||
To run a Clojure repl: | ||
|
||
docker run -it leiningen:dev lein repl |