Public Repository

Last pushed: 2 years ago
Short Description
Unofficial Ubuntu image to run the VSTS build agent for building Java with Ant, Maven or gradlew.
Full Description

The OFFICIAL VSTS Docker Build Agent is kept here (including for Java):

This Docker Image is meant to serve only as an example.

Dockerfile and shell script to build an Ubuntu docker container to run the Team Services coreCLR build agent for building Java (OpenJDK 7 and 8) with Ant, Maven or Gradle (via gradlew).

Built from Dockerfile:

This Dockerfile was built and tested on an Ubuntu 16.04 host running Docker v1.11.2. Earlier versions may or may not work. If you don't already have a host running Docker, you can use the Azure QuickStart template to set up one for Ubuntu:

Example of how to build on an Ubuntu Docker host:

cd vsts-dockerfiles/ubuntu-minjava-build

sudo docker build --tag javaalm/vsts-ubuild-minjava .

Example of how to run a container once the image above is built:

docker run -d --privileged --name <Docker container name> javaalm/vsts-ubuild-minjava ./ <Team Services Account url> <PAT> <Pool Name> <Agent Name>

so something like this (but using your Team Services Account, PAT, and Pool and Agent names):

docker run -d --privileged --name docker-xplat-minjava javaalm/vsts-ubuild-minjava ./ spqnoh4j2sqklayog3ipsjovc3z5njvthpm2o4jdrdre2ztqxxxx default docker-xplat-minjava

Docker Pull Command