https://github.com/ekino/gradle-docker-plugin
Docker plugin applying some configuration for your builds
https://github.com/ekino/gradle-docker-plugin
docker docker-compose ekino gradle
Last synced: 5 months ago
JSON representation
Docker plugin applying some configuration for your builds
- Host: GitHub
- URL: https://github.com/ekino/gradle-docker-plugin
- Owner: ekino
- License: mit
- Created: 2019-06-13T09:42:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-25T07:53:08.000Z (over 2 years ago)
- Last Synced: 2025-04-06T12:26:32.955Z (about 1 year ago)
- Topics: docker, docker-compose, ekino, gradle
- Language: Kotlin
- Homepage: https://plugins.gradle.org/plugin/com.ekino.oss.gradle.plugin.docker
- Size: 345 KB
- Stars: 2
- Watchers: 20
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ekino gradle docker plugin
Docker gradle plugin for ekino projects
[](https://github.com/ekino/gradle-docker-plugin/actions?query=branch%3Amaster+event%3Apush)
[](https://github.com/ekino/gradle-docker-plugin/releases)
[](https://github.com/ekino/gradle-docker-plugin/blob/master/LICENSE.md)
[](https://sonarcloud.io/dashboard?id=ekino_gradle-docker-plugin)
## 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:
```groovy
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.