Giter VIP home page Giter VIP logo

gradle-kotlin-docker-multiproject-boilerplate's Introduction

Multiproject Gradle + Kotlin + Docker Boilerplate

A small boilerplate covering a bunch of things at the same time:

  • Setting up a Gradle project with multi-artifact support (in our case, two executable Docker containers)

  • Setting up a Kotlin project

  • Building a JVM container with Docker. So you can put your interpreter inside your JVM inside your Docker container inside your Kubernetes inside your VPS inside your OS and be happy.

Why?

  • Multi-artifact projects are a must when dealing with a monorepo

  • Docker containers are very easy to distribute, version, package, etc. It also simplifies orchestration (with compose, making maintaining development environments a much smaller pain in the long run)

  • Kotlin is awesome. There's not a lot of Kotlin code to see in this example, though, which is far less awesome.

How?

  • Clone this project

  • To build the containers, run: ./gradlew foo:dockerBuildImage bar:dockerBuildImage

  • Run your containers with docker run foo:latest and docker run bar:latest

Dependencies

You need to have Docker configured locally, as well as a working JDK (Java 7+). The DOCKER_HOST, DOCKER_CERT_PATH environment variables are also expected - these are set by docker machine env and will tell the Docker plugin where to build the images.

Future improvements

  • Move the copy+pasted docker{} directives to the top-level build.gradle

gradle-kotlin-docker-multiproject-boilerplate's People

Contributors

herval avatar

Stargazers

Tom Coates avatar Will avatar Jacob Pedersen avatar Nick Cipollo avatar Ilkka Harmanen avatar Huy Z avatar  avatar Cristián Berríos avatar

Watchers

 avatar Huy Z avatar James Cloos avatar Cristián Berríos 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.