An open API service indexing awesome lists of open source software.

https://github.com/buildkite/gradle-docker-example

An example pipeline that builds and tests a Java application with Gradle inside Docker using Buildkite.
https://github.com/buildkite/gradle-docker-example

buildkite dcoker-compose docker example gradle java pipeline

Last synced: 2 months ago
JSON representation

An example pipeline that builds and tests a Java application with Gradle inside Docker using Buildkite.

Awesome Lists containing this project

README

          

# Gradle Buildkite docker-compose example
[![Build status](https://badge.buildkite.com/a0977fb3a7441cbabcab56a5e92d045a5110198f1ec6007668.svg?branch=main)](https://buildkite.com/buildkite/gradle-docker-example/builds/latest?branch=main)
[![Add to Buildkite](https://img.shields.io/badge/Add%20to%20Buildkite-14CC80)](https://buildkite.com/new)

This repository is an example [Buildkite](https://buildkite.com/) pipeline for building and testing a multi-project Java application using [Gradle](https://gradle.org/) and the [Docker Compose Buildkite Plugin](https://github.com/buildkite-plugins/docker-compose-buildkite-plugin).

👉 **See this example in action:** [buildkite.com/buildkite/gradle-docker-example](https://buildkite.com/buildkite/gradle-docker-example/builds/latest?branch=main)

See the full [Getting Started Guide](https://buildkite.com/docs/guides/getting-started) for step-by-step instructions on how to get this running, or try it yourself:

[![Add to Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new)


Screenshot of example pipeline build page

## How it works

This example:
- Uses Gradle to build and test a multi-project Java application
- Runs inside the official [Gradle Docker image](https://hub.docker.com/_/gradle) via Docker Compose
- Uploads build artifacts to Buildkite
- Works with Gradle 7.6+
- Plays nicely with the [Elastic CI Stack for AWS](https://github.com/buildkite/elastic-ci-stack-for-aws)

The Java project comes from [Gradle's db-example-large-multi-project](https://github.com/gradle/db-example-large-multi-project).

## Requirements

- A [Buildkite agent](https://buildkite.com/docs/agent)
- No manual setup required — Gradle, Java, Docker, and Docker Compose are handled in the example pipeline

## License

See [LICENSE.md](LICENSE.md) (MIT)