Unofficial Ubuntu image to run the VSTS build agent for building Java with Ant, Maven or gradlew.
679
The OFFICIAL VSTS Docker Build Agent is kept here (including for Java): https://github.com/Microsoft/vsts-agent-docker
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: https://github.com/Microsoft/vsts-dockerfiles/tree/master/ubuntu-minjava-build
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: https://github.com/Azure/azure-quickstart-templates/tree/master/docker-simple-on-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 javaalm/vsts-ubuild-minjava ./vsts-startup.sh
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 ./vsts-startup.sh https://myaccount.visualstudio.com/ spqnoh4j2sqklayog3ipsjovc3z5njvthpm2o4jdrdre2ztqxxxx default docker-xplat-minjava
Content type
Image
Digest
Size
537.7 MB
Last updated
about 10 years ago
docker pull javaalm/vsts-ubuild-minjava