/clj-builder

Docker container for building and deploying clojure applications

Primary LanguageDockerfileApache License 2.0Apache-2.0

Docker Development Container

Why Does This Exist?

  1. A consistent, isolated, build environment is important.
  2. Using this, you can develop in Clojure without the risks of having a JVM/JDK installed on your host system!
  3. The use of alternative JVM hosts is made simpler.
  4. This container initializes and starts a headless REPL for development.
  5. It’s small coming in around 200M or less for my use-cases.

Usage

  1. Install and run Docker
  2. 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"
  1. docker-compose up -d clojure