GithubHelp home page GithubHelp logo

akirill0v / docker-clojure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quantisan/docker-clojure

0.0 2.0 0.0 94 KB

Official Docker image for Clojure

Home Page: https://registry.hub.docker.com/_/clojure/

License: MIT License

docker-clojure's Introduction

docker-clojure

This is the repository for the official Docker image for Clojure. It is automatically pulled and built by Stackbrew into the Docker registry. This image runs on OpenJDK 8 and includes Leiningen.

Examples

Interactive Shell

Run an interactive shell from this image.

docker run -i -t clojure /bin/bash

Then within the shell, create a new Leiningen project and start a Clojure REPL.

lein new hello-world
cd hello-world
lein repl

clojure:onbuild

This image makes building derivative images easier. For most use cases, creating a Dockerfile in the base of your project directory with the line FROM clojure:onbuild will be enough to create a stand-alone image for your project.

Pull or build this image

docker build --rm -t clojure:onbuild onbuild

Create a Dockerfile in your Clojure app project

FROM clojure:onbuild
CMD ["lein", "run"]

Put this file in the root of your app.

This image includes multiple ONBUILD triggers which should be all you need to bootstrap most applications. The build will COPY . /usr/src/app and RUN lein deps

You can then build and run the CLojure image:

docker build -t my-clojure-app .
docker run -it --rm --name running-clojure-app my-clojure-app

Isolated Development with Fig

See this repository for instruction and example.

docker-clojure's People

Contributors

akirill0v avatar dhruvbhatia avatar quantisan avatar siscia avatar theikkila avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.