Docker Development Container
- A consistent, isolated, build environment is important.
- Using this, you can develop in Clojure without the risks of having a
JVM/JDK installed on your host system!
- The use of alternative JVM hosts is made simpler.
- This container initializes and starts a headless REPL for development.
- It’s small coming in around 200M or less for my use-cases.
- Install and run Docker
- Create a =docker-compose= configuration:
version: "3.5"
services:
clojure:
image: tobytripp/clj-builder:latest
environment:
APP_HOME: "${PWD}"
build:
context: .
args:
APP_HOME: "${PWD}"
volumes:
- ./src:${PWD}/src
- ./test:${PWD}/test
- ./log:${PWD}/log
command: repl
ports:
- "5888:5888"
docker-compose up -d clojure