Sign inSign up

rxacevedo/docker-clojure

By rxacevedo

•Updated about 11 years ago

Image
0

1.3K

rxacevedo/docker-clojure repository overview

Stories in Ready

⁠docker-clojure

A containzerized Clojure dev environment.

⁠Prerequisites

You will need Docker⁠ 1.5.0 or above, since that's what I built this against. You will also need VirtualBox⁠ to create a Docker host via Docker Machine⁠ if you don't already have one set up.

⁠Mac

If you have Homebrew⁠ and Homebrew Cask⁠, you can install all the pre-requisites like so:

brew install docker docker-machine && brew cask install virtualbox

Then create a VM with a Docker engine:

docker-machine create -d virtualbox -d

Finally, set your environment variabels so that docker knows where the Docker engine resides:

eval "$(docker-machine env dev)"

⁠Running

  • With Docker CLI:
docker build -t rxacevedo/docker-clojure . && \
docker run -it rxacevedo/docker-clojure

If you want to hook into your REPL via Emacs/CIDER, etc:

docker run -it -p 4001:4001 -e LEIN_REPL_HOST=0.0.0.0 LEIN_REPL_PORT=4001 rxacevedo/docker-clojure

Setting LEIN_REPL_HOST to 0.0.0.0 will cause the REPL server in the container to listen on all configured NICs instead of just the loopback interface (localhost/127.0.0.1).

⁠License

I don't own any of this.

Tag summary

Content type

Image

Digest

sha256:73504b653…

Size

311.2 MB

Last updated

about 11 years ago

docker pull rxacevedo/docker-clojure