Docker image with all the commonly used tools to build Java applications on Jenkins slaves
10K+
Docker image with all the commonly used tools to build Java applications on Jenkins slaves.
We have decided to bundle many tools in the same image to cover as many Java use cases as possible. In a second iteration, we plan to offer granularity in the tools installed on the image, maybe using a Dockerfile generator.
Dockerfile linksThis Docker image is intended to be used with the Jenkins Docker Pipeline Plugin.
Sample with Maven and the Jenkins Docker Pipeline Plugin and Pipeline Maven Plugin.
node ("docker"){
git "https://github.com/lj020326/game-of-life"
docker.image("lj020326/java-build-tools").inside {
withMaven(mavenSettingsConfig:'my-maven-settings') {
sh "mvn clean deploy"
}
}
}
The docker image enables Selenium tests bundling Firefox and starting selenium-server-standalone (listening on the default port 4444).
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
WebDriver webDriver = new RemoteWebDriver(DesiredCapabilities.firefox());
webDriver.get("http://www.python.org");
webDriver.getTitle();
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = webdriver.Remote(
command_executor='http://127.0.0.1:4444/wd/hub',
desired_capabilities=DesiredCapabilities.FIREFOX)
driver.get('http://python.org')
az): 2.0.81/usr/local/bin/cf: 6.51.0/usr/bin/firefox: 68.1.0esr/usr/bin/geckodriver: v0.26.0/opt/jmeter//usr/local/bin/kubectl: 1.16.1/usr/share/maven/: 3.6.3/usr/bin/nodejs: 10.22.0/usr/bin/npm: 6.14.6/usr/local/bin/oc: 3.11.0/opt/selenium/selenium-server-standalone.jar: 3.141.59az): 2.0.74/usr/local/bin/cf: 6.46.1/usr/bin/firefox: 68.1.0esr/usr/bin/geckodriver: v0.25.0/opt/jmeter//usr/local/bin/kubectl: 1.16.1/usr/share/maven/: 3.6.2/usr/bin/nodejs: 10.16.3/usr/bin/npm: 6.9.0/usr/local/bin/oc: 3.11.0/opt/selenium/selenium-server-standalone.jar: 3.141.59The automated build is on the Docker Hub.
Content type
Image
Digest
sha256:39a8ed530…
Size
657.4 MB
Last updated
about 5 hours ago
docker pull lj020326/cicd-build-tools