cloudbees / Java Build Tools Dockerfile
Labels
Deprecation notice
java-build-tools docker container will be deprecated effective 31 January 2021, the container image will still be available for use however no further updates will be provided.
Description
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
links
Supported tags and respective latest
(latest/Dockerfile)2.5.1
(2.5.1/Dockerfile)2.5.0
(2.5.0/Dockerfile)2.4.0
(2.4.0/Dockerfile)2.3.0
(2.3.0/Dockerfile)2.2.0
(2.2.0/Dockerfile)2.1.0
(2.1.0/Dockerfile)2.0.0
(2.0.0/Dockerfile)1.0.1
(1.0.1/Dockerfile)1.0.0
(1.0.0/Dockerfile)0.0.7.1
(0.0.7.1/Dockerfile)0.0.6
(0.0.6/Dockerfile)0.0.5
(0.0.5/Dockerfile)0.0.4
(0.0.4/Dockerfile)0.0.3
(0.0.3/Dockerfile)0.0.2
(0.0.2/Dockerfile)0.0.1
(0.0.1/Dockerfile)
How to use this Docker image
This Docker image is intended to be used with the Jenkins Docker Pipeline Plugin.
Java
Sample with Maven and the Jenkins Docker Pipeline Plugin and Pipeline Maven Plugin.
node ("docker"){
git "https://github.com/cloudbees-community/game-of-life"
docker.image("cloudbees/java-build-tools").inside {
withMaven(mavenSettingsConfig:'my-maven-settings') {
sh "mvn clean deploy"
}
}
}
Selenium
The docker image enables Selenium tests bundling Firefox and starting selenium-server-standalone (listening on the default port 4444).
Selenium Sample with Java
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();
Selenium Sample with Python
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')
Version latest
- OS: Ubuntu 20.04
- Common tools: openssh-client, unzip, wget, curl, git, jq, rsync
- Ant 1.10.8
- AWS CLI: aws-cli/1.18.108
- Azure CLI (
az
): 2.0.81 - Yarn 1.22.4
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.51.0 - Firefox at
/usr/bin/firefox
: 68.1.0esr - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.26.0 - gcc (latest): 9.3.0
- Grunt CLI: 1.3.2
- Gulp: 4.0.2
- Java: OpenJDK 8 (latest): 1.8.0_252-8u252
- JMeter (5.3.1) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.16.1 - Make (latest): 4.2.1
- Maven located in
/usr/share/maven/
: 3.6.3 - MySQL Client: 8.0.21
- Node.js at
/usr/bin/nodejs
: 10.22.0 - Npm at
/usr/bin/npm
: 6.14.6 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.11.0 - Python/3.8.2
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.141.59 - XVFB: 2:1.20.8
Version 2.5.1
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git, jq, rsync
- Ant 1.10.7
- AWS CLI: aws-cli/1.16.257
- Azure CLI (
az
): 2.0.74 - Bower: 1.8.4
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.46.1 - Firefox at
/usr/bin/firefox
: 68.1.0esr - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.25.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.3.1
- Gulp: 4.0.0
- Java: OpenJDK 8 (latest): 1.8.0_222
- JMeter (5.1.1) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.16.1 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.6.2 - MySQL Client: Ver 14.14 Distrib 5.7.27
- Node.js at
/usr/bin/nodejs
: 10.16.3 - Npm at
/usr/bin/npm
: 6.9.0 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.11.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.141.59 - XVFB: 2:1.18.4
Version 2.5.0
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git, jq, rsync
- Ant 1.10.5
- AWS CLI: aws-cli/1.16.77
- Azure CLI: 2.0.52
- Bower: 1.8.4
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.41 - Firefox at
/usr/bin/firefox
: 60.4.0esr - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.23.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.3.1
- Gulp: 4.0.0
- Java: OpenJDK 8 (latest): 1.8.0_191
- JMeter (5.0) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.13.0 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.6.0 - MySQL Client: Ver 14.14 Distrib 5.7.24
- Node.js at
/usr/bin/nodejs
: 10.11.0 - Npm at
/usr/bin/npm
: 6.4.1 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.11.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.141.59 - XVFB: 2:1.18.4
Version 2.4.0
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git, jq, rsync
- Ant 1.10.5
- AWS CLI: aws-cli/1.16.27
- Azure CLI: 2.0.46
- Bower: 1.8.4
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.39.1 - Firefox at
/usr/bin/firefox
: 60.2.2esr - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.23.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.3.1
- Gulp: 4.0.0
- Java: OpenJDK 8 (latest): 1.8.0_181
- JMeter (5.0) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.12.0 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.5.4 - MySQL Client: 5.7.23
- Node.js at
/usr/bin/nodejs
: 10.11.0 - Npm at
/usr/bin/npm
: 5.6.0 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.10.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.14.0 - XVFB: 2:1.18.4
Version 2.3.0
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git, jq, rsync
- Ant 1.10.4
- AWS CLI: aws-cli/1.15.53
- Azure CLI: 2.0.41
- Bower: 1.8.4
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.37.0 - Firefox at
/usr/bin/firefox
: 60.1.0esr - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.21.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.2.0
- Gulp: 4.0.0
- Java: OpenJDK 8 (latest): 1.8.0_162
- JMeter (4.0) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.10.0 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.5.4 - MySQL Client: 5.7.22
- Node.js at
/usr/bin/nodejs
: 8.11.3 - Npm at
/usr/bin/npm
: 5.6.0 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.9.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.13.0 - XVFB: 2:1.18.4
Version 2.2.0
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git, jq
- AWS CLI: aws-cli/1.14.70
- Azure CLI: 2.0.30
- Bower: 1.8.4
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.36.0 - Firefox at
/usr/bin/firefox
: 60 - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.20.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.2.0
- Gulp: 4.0.0
- Java: OpenJDK 8 (latest): 1.8.0_162
- JMeter (4.0) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.10.0 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.5.3 - MySQL Client: 5.7.21
- Node.js at
/usr/bin/nodejs
: 8.11.1 - Npm at
/usr/bin/npm
: 3.10.10 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.9.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.11.0 - XVFB: 2:1.18.4
Version 2.1.0
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git
- AWS CLI: aws-cli/1.11.163
- Azure CLI: 0.10.8
- Bower: 1.8.0
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.32.0 - Firefox at
/usr/bin/firefox
: 56 - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.19.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.2.0
- Gulp: 3.9.1
- Java: OpenJDK 8 (latest): 1.8.0_131
- JMeter (3.3) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.8.0 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.5.0 - MySQL Client: 5.7.19
- Node.js at
/usr/bin/nodejs
: 6.11.3 - Npm at
/usr/bin/npm
: 3.10.10 - Open Shift V3 CLI at
/usr/local/bin/oc
: 3.6.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 3.6.0 - XVFB: 2:1.18.4
Version 2.0.0
- OS: Ubuntu 16.04
- Common tools: openssh-client, unzip, wget, curl, git
- AWS CLI: aws-cli/1.11.41
- Azure CLI: 0.10.8
- Bower: 1.8.0
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.23.1 - Firefox at
/usr/bin/firefox
: 50.1.0 - Firefox Geckodriver at
/usr/bin/geckodriver
: v0.13.0 - gcc (latest): 5.4.0
- Grunt CLI: 1.2.0
- Gulp: 3.9.1
- Java: OpenJDK 8 (latest): 1.8.0_111
- JMeter (3.1) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.5.2 - Make (latest): 4.1
- Maven located in
/usr/share/maven/
: 3.3.9 - MySQL Client: 5.7.17
- Node.js at
/usr/bin/nodejs
: 6.9.4 - Npm at
/usr/bin/npm
: 3.10.10 - Open Shift V3 CLI at
/usr/local/bin/oc
: 1.3.0 - Python/2.7.12
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 2.53 - XVFB: 2:1.18.4
Version 1.0.1
- OS: Ubuntu 15.04
- Common tools: openssh-client, unzip, wget, curl, git
- AWS CLI: aws-cli/1.11.360.10.8
- Azure CLI: 0.10.8
- Bower: 1.8.0
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.23.1 - Firefox (latest) at
/usr/bin/firefox
: Mozilla Firefox 44.0 - gcc (latest): 4.9.2-10ubuntu13
- Grunt CLI: 1.2.0
- Gulp: 3.9.1
- Java: OpenJDK 8 (latest): 1.8.0_45
- JMeter (3.1) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.5.2 - Make (latest): 4.0
- Maven located in
/usr/share/maven/
: 3.3.9 - MySQL Client: 5.6.28
- Node.js at
/usr/bin/nodejs
: 4.4.2 - Npm at
/usr/bin/npm
: 2.15.0 - Open Shift V3 CLI at
/usr/local/bin/oc
: 1.3.0 - Python/2.7.9
- Selenium at
/opt/selenium/selenium-server-standalone.jar
: 2.53 - Web Browser tests: XVFB (latest)
Version 1.0.0
- OS: Ubuntu 15.04
- Common tools: openssh-client, unzip, wget, curl, git
- AWS CLI: aws-cli/1.10.0
- Azure CLI: 0.10.1
- Bower: 1.7.9
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.15.0 - Firefox (latest) at
/usr/bin/firefox
: Mozilla Firefox 43.0.4 - gcc (latest): 4.9.2-10ubuntu13
- Grunt CLI: 0.1.2
- Gulp: 3.9.1
- Java: OpenJDK 8 (latest): 1.8.0_45
- JMeter (3.0) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.2.3 - Make (latest): 4.0
- Maven located in
/usr/share/maven/
: 3.3.9 - MySQL Client: 5.6.27
- Node.js at
/usr/bin/nodejs
: 4.4.2 - Npm at
/usr/bin/npm
: 2.14.20 - Open Shift V3 CLI at
/usr/local/bin/oc
: 1.2.0 - Selenium at
/opt/selenium/selenium-server-standalone.jar
: 2.53 - Web Browser tests: XVFB (latest)
Version 0.0.7.1
- OS: Ubuntu 15.04
- Common tools: openssh-client, unzip, wget, curl, git
- AWS CLI: aws-cli/1.10.35
- Azure CLI: 0.9.14
- Bower: 1.7.2
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
: 6.18.1 - Firefox (latest) at
/usr/bin/firefox
: Mozilla Firefox 44 - gcc (latest): 4.9.2-10ubuntu13
- Grunt CLI: 0.1.13
- Gulp: 3.9.0
- Java: OpenJDK 8 (latest): 1.8.0_45
- JMeter (3.0) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.2.3 - Make (latest): 4.0
- Maven located in
/usr/share/maven/
: 3.3.9 - MySQL Client (latest): 5.6.28
- Node.js: 4.4.2
- Open Shift V3 CLI at
/usr/local/bin/oc
: 1.2.0 - Selenium at
/opt/selenium/selenium-server-standalone.jar
: 2.49.1 - Web Browser tests: XVFB (latest)
Version 0.0.6
This version has been tested with Docker 1.9.1
- OS: Ubuntu 15.04
- Common tools: unzip, wget, curl, git
- Make (latest): 4.0
- gcc (latest): 4.9.2-10ubuntu13
- Java: OpenJDK 8 (latest): 1.8.0_45
- Maven located in
/usr/share/maven/
: 3.3.9 - Node.js: 4.2.4
- Bower: 1.7.2
- Grunt CLI: 0.1.13
- Gulp: 3.9.0
- Web Browser tests: XVFB (latest)
- Firefox (latest) at
/usr/bin/firefox
: Mozilla Firefox 43.0.4 - Selenium at
/opt/selenium/selenium-server-standalone.jar
: 2.48.2 - AWS CLI: 1.9.17
- Azure CLI: 0.9.13
- Cloud Foundry CLI (latest) at
/usr/local/bin/cf
- Open Shift V3 CLI at
/usr/local/bin/oc
: 1.1.0.1 - JMeter (2.13) located in
/opt/jmeter/
- Kubernetes CLI at
/usr/local/bin/kubectl
: 1.1.3 - MySQL Client (latest): 5.6.27
Release Notes
See the GitHub release notes.
About this repository
This repository is available on github.com/cloudbees/java-build-tools-dockerfile/, and the automated build is on the Docker Hub.
User Feedback
Issues
If you have any problems with or questions about this image, please submit a GitHub issue.
Contributing
If you have a contribution for this repository, please send a pull request.
If you want to contribute to Jenkins CI, see the Contributing to Jenkins.
License
The cloudbees/java-build-tools image is licensed under the Apache License, Version 2.0, and this repository is too:
Copyright 2015 CloudBees, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.