Skip to content

ekino/gradle-docker-plugin

Repository files navigation

Ekino gradle docker plugin

Docker gradle plugin for ekino projects

Build Status GitHub (pre-)release GitHub license Quality Gate Status

Overview

This plugin configures the following tasks for any ekino projects :

  • Manage docker-compose

Build

This will create the JAR and run the tests

./gradlew build

Publish locally

This will publish the JAR in your local Maven repository

./gradlew publishToMavenLocal

Publish

This will upload the plugin to Nexus repository

./gradlew build publish

Requirements

  • JDK 8
  • Gradle 6.9.1

Usage

Add the plugin in your Gradle build script:

plugins {
    id "com.ekino.oss.gradle.plugin.docker" version "0.0.1"
}

Docker compose

If you have a docker-compose.yml at the root of your project, this plugin will start your docker compose before :

  • The bootRun task
  • The integrationTest

And it will stop the docker compose after.

It can be very useful to start servers in order to perform good integration tests or start a microservice with all its requirements offline.