Skip to content

Highly opinionated gradle plugin to start (Up), pause (Stop), and delete (Down) a dockerized database.

License

Notifications You must be signed in to change notification settings

project-aries/gradle-docker-databases-plugin

Repository files navigation

gradle-docker-databases-plugin

Highly opinionated gradle plugin to start (Up), pause (Stop), and delete (Down) a dockerized database.

Status

CI Codecov Docs Questions Release
Build Status codecov Docs Stack Overflow gradle-docker-databases-plugin

Getting Started

buildscript() {
    repositories {
        jcenter()
    }
    dependencies {
        classpath group: 'com.aries', name: 'gradle-docker-databases-plugin', version: 'X.Y.Z'
    }
}

apply plugin: 'gradle-docker-databases-plugin'

Motivation and Design Goals

Being based upon the gradle-docker-applications-plugin the intent is to create pre-defined dockerized database application(s) for developers to use as they see fit. Be it for desktop use, in a CICD pipeline, or for an arbitrary devops usecase you can easily manage (and customize should the need arise) a dockerized database with a handful of tasks.

Supported Databases

The below table lists the currently supported databases and their default connection details.

Type Name Username/Password Tasks
postgres postgres postgres/postgres postgresUp, postgresStop, postgresDown
sqlserver master SA/Passw0rd sqlserverUp, sqlserverStop, sqlserverDown
oracle xe system/oracle oracleUp, oracleStop, oracleDown
db2 DB2 db2inst1/db2inst1 db2Up, db2Stop, db2Down