Skip to content
Installs leiningen on a minimal Docker image. This results in a very small container (186MB) to run lein tasks.
Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile Optimize Dockerfile to improve image size Sep 5, 2015
LICENSE legal Sep 3, 2015
README.md readme Sep 5, 2015
lein Really fix the wrapper. Such annoy Sep 24, 2015

README.md

docker-lein

Recent pushes may not be reflected in the size. Click the badge to get the latest data.

Introduction

This is a minimal Docker image for leiningen tasks. It is from delitescere/jdk on Docker Hub.

This image is for development-time activities. You can run your packaged component in an image from delitescere/java) on Docker Hub (as long as you only need the JRE provided by "compact3" profile, which is likely).

Build

docker build -t delitescere/lein .

Example usage

alias lein="$PWD/lein"
lein test
lein repl :headless # nREPL container is started for this directory. Wait until you see the "started" line in `docker logs` if it's the first run.
lein repl :connect # nREPL client container connects to the detached nREPL server, no address is required.

Notes

If you have the :eval-in nrepl line in your project.clj, remove it otherwise you'll get "Connection Refused" errors when running the REPL.

There is one nREPL server per directory to allow you to run multiple project REPLs at once if you want. Using Docker's network stack sharing, you don't need to specify the address for the client REPL. The history for each project's REPL is kept separate.

Legal

See the LICENSE file. Use of Zulu is governed by the terms of use at http://www.azulsystems.com/products/zulu/terms-of-use.

Enjoy smaller containers!

You can’t perform that action at this time.