Skip to content

Commit

Permalink
Merge pull request #45 from mhaji/clojure-lein
Browse files Browse the repository at this point in the history
Add a Clojure/Leiningen Dockerfile.
  • Loading branch information
treeder committed Apr 21, 2016
2 parents a6d0948 + a16fc6b commit 314bf53
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
14 changes: 14 additions & 0 deletions clojure/Dockerfile
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/*
11 changes: 11 additions & 0 deletions clojure/README.md
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
17 changes: 17 additions & 0 deletions clojure/dev/Dockerfile
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/*
11 changes: 11 additions & 0 deletions clojure/dev/README.md
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

0 comments on commit 314bf53

Please sign in to comment.