Note: This is a fork from eclipsesource/dockerizor
A Gradle plug-in to create a Docker image that includes an Eclipse Virgo container.
During our preparations for the EclipseCon talk about our first Docker project, we spent quite some time packaging Virgo containers inside Docker images.
We investigated how to improve the continuous delivery of Virgo powered applications using Gradle and Docker. The outcome is the Gradle Plugin ''dockerizor''.
In a first step we automated the generation of basic Virgo images.
The following build snippet applies the Gradle Plugin Dockerizor to your build script:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.de.datenkollektiv.dockerizor:dockerizor:0.9.4"
}
}
apply plugin: "de.datenkollektiv.dockerizor"Both the Docker...
dockerizor {
maintainer = 'Florian Waibel <fwaibel@datenkollektiv.de>'
description = 'Docker image build with dockerizor'
// docker client configuration
uri = "http://localhost:4243"
tag = "latest"
javaImage = 'java:8u92-jre-alpine'
}...and Virgo specific configuration is within a dockerizor block.
dockerizor {
virgoFlavour = 'VTS'
removeAdminConsole = true
removeSplash = true
imageName = 'virgo-tomcat-server'
}The snippet above creates a Docker image named 'virgo-tomcat-server' with the Virgo flavor VTS (Virgo Server for Apache Tomcat).
$ docker images | grep virgo-tomcat-server
datenkollektiv/virgo-tomcat-server 3.7.3 a95cb6faa18f 2 minutes ago 175MBThe generated basic images for Virgo are available via Docker Hub:
- Virgo Server for Apache Tomcat: https://registry.hub.docker.com/r/datenkollektiv/virgo-tomcat-server/
- Virgo Jetty Server: https://registry.hub.docker.com/r/datenkollektiv/virgo-jetty-server/
- Virgo Kernel: https://registry.hub.docker.com/r/datenkollektiv/virgo-kernel/