Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Clojure/Leiningen Dockerfile. #45

Merged
merged 2 commits into from
Apr 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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