This commit is contained in:
Chris Patterson 2017-05-04 10:38:26 -04:00
Родитель 7e61132afd 1c24ec9243
Коммит 3f242bf6b7
102 изменённых файлов: 1169 добавлений и 1630 удалений

114
README.md
Просмотреть файл

@ -6,32 +6,52 @@ This repository contains images for the Visual Studio Team Services (VSTS) agent
## Supported tags and `Dockerfile` links
VSTS agent images are tagged according to the base OS, an optional Team Foundation Server (TFS) version, and tools that are installed:
- [`ubuntu-14.04`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/Dockerfile) [(ubuntu/14.04/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/Dockerfile)
- [`ubuntu-14.04-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.11.2/Dockerfile) [(ubuntu/14.04/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.11.2/Dockerfile)
- [`ubuntu-14.04-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.11.2/standard/Dockerfile) [(ubuntu/14.04/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-14.04-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.12.1/Dockerfile) [(ubuntu/14.04/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.12.1/Dockerfile)
- [`ubuntu-14.04-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.12.1/standard/Dockerfile) [(ubuntu/14.04/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/Dockerfile) [(ubuntu/14.04/tfs/2017/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.11.2/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.11.2/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.11.2/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.12.1/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.12.1/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.12.1/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/14.04/tfs/2017/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-16.04`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/Dockerfile) [(ubuntu/16.04/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/Dockerfile)
- [`ubuntu-16.04-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.11.2/Dockerfile) [(ubuntu/16.04/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.11.2/Dockerfile)
- [`ubuntu-16.04-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.11.2/standard/Dockerfile) [(ubuntu/16.04/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-16.04-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.12.1/Dockerfile) [(ubuntu/16.04/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.12.1/Dockerfile)
- [`ubuntu-16.04-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.12.1/standard/Dockerfile), [`latest`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.12.1/standard/Dockerfile) [(ubuntu/16.04/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/Dockerfile) [(ubuntu/16.04/tfs/2017/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.11.2/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.11.2/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.11.2/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.12.1/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.12.1/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.12.1/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/21a1290f988e996b3737803ec58b13c79209bdce/ubuntu/16.04/tfs/2017/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-14.04`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/Dockerfile) [(ubuntu/14.04/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/Dockerfile)
- [`ubuntu-14.04-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/standard/Dockerfile) [(ubuntu/14.04/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/standard/Dockerfile)
- [`ubuntu-14.04-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.11.2/Dockerfile) [(ubuntu/14.04/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.11.2/Dockerfile)
- [`ubuntu-14.04-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.11.2/standard/Dockerfile) [(ubuntu/14.04/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-14.04-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.12.1/Dockerfile) [(ubuntu/14.04/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.12.1/Dockerfile)
- [`ubuntu-14.04-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.12.1/standard/Dockerfile) [(ubuntu/14.04/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-14.04-docker-1.13.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.13.1/Dockerfile) [(ubuntu/14.04/docker/1.13.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.13.1/Dockerfile)
- [`ubuntu-14.04-docker-1.13.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.13.1/standard/Dockerfile) [(ubuntu/14.04/docker/1.13.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/1.13.1/standard/Dockerfile)
- [`ubuntu-14.04-docker-17.03.0-ce`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/17.03.0-ce/Dockerfile) [(ubuntu/14.04/docker/17.03.0-ce/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/17.03.0-ce/Dockerfile)
- [`ubuntu-14.04-docker-17.03.0-ce-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/17.03.0-ce/standard/Dockerfile) [(ubuntu/14.04/docker/17.03.0-ce/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/docker/17.03.0-ce/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/Dockerfile) [(ubuntu/14.04/tfs/2017/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/Dockerfile)
- [`ubuntu-14.04-tfs-2017-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.11.2/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.11.2/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.11.2/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.12.1/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.12.1/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.12.1/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.13.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.13.1/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.13.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.13.1/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-1.13.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.13.1/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/1.13.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/1.13.1/standard/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-17.03.0-ce`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/17.03.0-ce/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/17.03.0-ce/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/17.03.0-ce/Dockerfile)
- [`ubuntu-14.04-tfs-2017-docker-17.03.0-ce-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/17.03.0-ce/standard/Dockerfile) [(ubuntu/14.04/tfs/2017/docker/17.03.0-ce/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/14.04/tfs/2017/docker/17.03.0-ce/standard/Dockerfile)
- [`ubuntu-16.04`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/Dockerfile) [(ubuntu/16.04/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/Dockerfile)
- [`ubuntu-16.04-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/standard/Dockerfile) [(ubuntu/16.04/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/standard/Dockerfile)
- [`ubuntu-16.04-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.11.2/Dockerfile) [(ubuntu/16.04/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.11.2/Dockerfile)
- [`ubuntu-16.04-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.11.2/standard/Dockerfile) [(ubuntu/16.04/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-16.04-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.12.1/Dockerfile) [(ubuntu/16.04/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.12.1/Dockerfile)
- [`ubuntu-16.04-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.12.1/standard/Dockerfile) [(ubuntu/16.04/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-16.04-docker-1.13.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.13.1/Dockerfile) [(ubuntu/16.04/docker/1.13.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.13.1/Dockerfile)
- [`ubuntu-16.04-docker-1.13.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.13.1/standard/Dockerfile) [(ubuntu/16.04/docker/1.13.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/1.13.1/standard/Dockerfile)
- [`ubuntu-16.04-docker-17.03.0-ce`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/17.03.0-ce/Dockerfile) [(ubuntu/16.04/docker/17.03.0-ce/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/17.03.0-ce/Dockerfile)
- [`ubuntu-16.04-docker-17.03.0-ce-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/17.03.0-ce/standard/Dockerfile), [`latest`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/17.03.0-ce/standard/Dockerfile) [(ubuntu/16.04/docker/17.03.0-ce/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/docker/17.03.0-ce/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/Dockerfile) [(ubuntu/16.04/tfs/2017/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/Dockerfile)
- [`ubuntu-16.04-tfs-2017-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.11.2`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.11.2/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.11.2/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.11.2/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.11.2-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.11.2/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.11.2/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.11.2/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.12.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.12.1/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.12.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.12.1/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.12.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.12.1/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.12.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.12.1/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.13.1`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.13.1/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.13.1/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.13.1/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-1.13.1-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.13.1/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/1.13.1/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/1.13.1/standard/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-17.03.0-ce`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/17.03.0-ce/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/17.03.0-ce/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/17.03.0-ce/Dockerfile)
- [`ubuntu-16.04-tfs-2017-docker-17.03.0-ce-standard`](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/17.03.0-ce/standard/Dockerfile) [(ubuntu/16.04/tfs/2017/docker/17.03.0-ce/standard/Dockerfile)](https://github.com/microsoft/vsts-agent-docker/blob/0f00197c34679f8ba9974f921313a46f04337613/ubuntu/16.04/tfs/2017/docker/17.03.0-ce/standard/Dockerfile)
Ubuntu 14.04 and Ubuntu 16.04 are the currently supported OSes with plans for CentOS 7.2 support.
When used with VSTS, the agent version is automatically determined and downloaded at container startup based on the account to which the agent is connecting. When used with TFS, an image that matches the installed TFS version should be chosen.
Additional images that are based on the standalone agent images provide a variety of capabilities that enable it to support specific VSTS build and release tasks.
Derived images that are based on the standalone agent images provide a variety of capabilities that enable it to support specific VSTS build and release tasks.
The `latest` tag always points at a standard image based on the best supported OS that targets VSTS and includes capabilities enabling many of the built-in VSTS build and release tasks.
@ -50,7 +70,24 @@ docker run \
-it microsoft/vsts-agent
```
VSTS agents can be further configured with additional environment variables:
When using an image that targets a specific TFS version, the connection information is instead supplied through one of the following environment variables:
- `TFS_HOST`: the hostname of the Team Foundation Server
- `TFS_URL`: the full URL of the Team Foundation Server
- `VSTS_TOKEN`: a personal access token (PAT) for the Team Foundation Server account that has been given at least the **Agent Pools (read, manage)** scope.
If `TFS_HOST` is provided, the TFS URL is set to `http://$TFS_HOST:8080/tfs`. If `TFS_URL` is provided, any `TFS_HOST` environment variable is ignored.
To run a VSTS agent image for TFS 2017 that identifies the server at `http://mytfs:8080/tfs`:
```
docker run \
-e TFS_HOST=mytfs \
-e VSTS_TOKEN=<pat> \
-it microsoft/vsts-agent:ubuntu-16.04-tfs-2017
```
Whether targeting VSTS or TFS, agents can be further configured with additional environment variables:
- `VSTS_AGENT`: the name of the agent (default: `"$(hostname)"`)
- `VSTS_POOL`: the name of the agent pool (default: `"Default"`)
@ -71,12 +108,27 @@ docker run \
-it microsoft/vsts-agent:ubuntu-14.04
```
## Additional Images
## Derived Images
### `standard` images
These derived images include a set of standard capabilities that enable many of the built-in VSTS build and release tasks. For instance, the Ubuntu-based standard images include:
- Basic command-line utilities (curl, ftp, etc.)
- Essential build tools (gcc, make, etc.)
- Oracle JDK 6, 7 (default on 14.04) and 8 (default on 16.04)
- Java tools (ant, gradle, maven)
- Python and Python 3
- Node.js (latest stable version)
- .NET Core SDK
The standard images are updated periodically with newer versions of the above tools. If you want to lock down to specific versions, you can reference a specific build of a standard image.
For more details on the Ubuntu-based standard images, see [this](https://github.com/Microsoft/vsts-agent-docker/tree/master/ubuntu/derived/standard) page.
### `docker` images
These derived images include a version of the Docker CLI and a recent version of the Docker Compose CLI. This image cannot run most of the built-in VSTS build or release tasks but it can run tasks that invoke arbitrary Docker workloads.
These derived images include a version of the Docker CLI and a recent version of the Docker Compose CLI (currently 1.8.0). This image cannot run most of the built-in VSTS build or release tasks but it can run tasks that invoke arbitrary Docker workloads.
These images do not run "Docker in Docker", but rather re-use the host instance of Docker. To enable this, volume map the host's Docker socket into the container:
These images do not run "Docker in Docker", but rather re-use the host instance of Docker. To ensure this works correctly, volume map the host's Docker socket into the container:
```
docker run \
@ -86,13 +138,5 @@ docker run \
-it microsoft/vsts-agent:ubuntu-16.04-docker-1.11.2
```
### `standard` images
These derived images are based on the `docker` images and include a set of standard capabilities that enable many of the built-in VSTS build and release tasks. The standard toolset includes:
- Basic command-line utilities (curl, ftp, etc.)
- Essential build tools (gcc, make, etc.)
- Python and Python 3
- OpenJDK 7 (Ubuntu 14.04) or 8 (Ubuntu 16.04)
- Java tools (ant, gradle, maven)
- .NET Core SDK
- Node.js (latest stable version)
### `docker-standard` images
These derived images bring together a docker image and a standard image.

Просмотреть файл

@ -9,6 +9,11 @@ ubuntu() {
dirs() {
BASE_DIR=$1
echo $BASE_DIR
while read TARGET_UBUNTU_VERSION na; do
if [ -n "$(echo $BASE_DIR | grep ^ubuntu/$TARGET_UBUNTU_VERSION)" ]; then
echo $BASE_DIR/standard
fi
done < <(cat derived/standard/versions | sed 's/\r//')
while read DOCKER_VERSION na; do
DOCKER_DIR=$BASE_DIR/docker/$DOCKER_VERSION
echo $DOCKER_DIR

Просмотреть файл

@ -1 +1 @@
ubuntu-16.04-docker-1.12.1-standard
ubuntu-16.04-docker-17.03.0-ce-standard

Просмотреть файл

@ -3,7 +3,14 @@ set -e
cd "$(dirname $0)"
DATE=${1:-$(date +%Y%m%d)}
while read dir; do
if [ -n "$(echo $dir | grep /standard$)" ]; then
docker tag microsoft/vsts-agent:${dir//\//-} microsoft/vsts-agent:${dir//\//-}-$DATE
docker push microsoft/vsts-agent:${dir//\//-}-$DATE
docker rmi microsoft/vsts-agent:${dir//\//-}-$DATE
fi
docker push microsoft/vsts-agent:${dir//\//-}
done < <(./dirs.sh)

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:14.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu52 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.106.0/vsts-agent-ubuntu.14.04-x64-2.106.0.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:14.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu52 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.107.0/vsts-agent-ubuntu.14.04-x64-2.107.0.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:14.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu52 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.107.1/vsts-agent-ubuntu.14.04-x64-2.107.1.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.107.1
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.107.1
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:14.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu52 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.108.0/vsts-agent-ubuntu.14.04-x64-2.108.0.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.108.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.108.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -13,6 +13,8 @@ RUN apt-get update \
libcurl3 \
libicu52 \
libunwind8 \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /vsts

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-docker-1.11.2
FROM microsoft/vsts-agent:ubuntu-14.04-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-7-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-docker-1.12.1
FROM microsoft/vsts-agent:ubuntu-14.04-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-7-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -1,8 +1,8 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.107.0
FROM microsoft/vsts-agent:ubuntu-14.04
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
@ -13,15 +13,9 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +1,8 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.106.0
FROM microsoft/vsts-agent:ubuntu-14.04-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
@ -13,15 +13,9 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +1,8 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.107.0
FROM microsoft/vsts-agent:ubuntu-14.04
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
@ -13,15 +13,9 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +1,8 @@
FROM microsoft/vsts-agent:ubuntu-14.04-2.106.0
FROM microsoft/vsts-agent:ubuntu-14.04-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
@ -13,15 +13,9 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -0,0 +1,85 @@
FROM microsoft/vsts-agent:ubuntu-14.04
# Install basic utilities and build tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Install Oracle JDKs
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-add-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
oracle-java6-installer \
oracle-java7-installer \
oracle-java8-installer \
oracle-java7-set-default \
&& ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java \
&& rm -rf /var/lib/apt/lists/*
# Install ant separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ant \
ant-optional \
&& rm -rf /var/lib/apt/lists/*
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
# Install python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Install .NET Core SDK
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-dev-1.0.1 \
&& rm -rf /var/lib/apt/lists/*
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_6_X64=/usr/lib/jvm/java-6-oracle \
JAVA_HOME_7_X64=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_8_X64=/usr/lib/jvm/java-8-oracle \
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 \
M2_HOME=/usr/share/maven

Просмотреть файл

@ -1,6 +1,10 @@
#!/bin/bash
set -e
if [ -e /vsts/agent -a ! -e /vsts/agent/.agent ]; then
rm -rf /vsts/agent
fi
if [ -e /vsts/agent ]; then
export VSO_AGENT_IGNORE=_,MAIL,OLDPWD,PATH,PWD,UBUNTU_VERSION,VSO_AGENT_IGNORE
if [ -n "$VSTS_AGENT_IGNORE" ]; then

Просмотреть файл

@ -11,6 +11,8 @@ RUN apt-get update \
libcurl3 \
libicu52 \
libunwind8 \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /vsts

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017-docker-1.11.2
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-7-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017-docker-1.12.1
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-7-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,85 @@
FROM microsoft/vsts-agent:ubuntu-14.04-tfs-2017
# Install basic utilities and build tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Install Oracle JDKs
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-add-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
oracle-java6-installer \
oracle-java7-installer \
oracle-java8-installer \
oracle-java7-set-default \
&& ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java \
&& rm -rf /var/lib/apt/lists/*
# Install ant separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ant \
ant-optional \
&& rm -rf /var/lib/apt/lists/*
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
# Install python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Install .NET Core SDK
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-dev-1.0.1 \
&& rm -rf /var/lib/apt/lists/*
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_6_X64=/usr/lib/jvm/java-6-oracle \
JAVA_HOME_7_X64=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_8_X64=/usr/lib/jvm/java-8-oracle \
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 \
M2_HOME=/usr/share/maven

Просмотреть файл

@ -45,6 +45,8 @@ source ./env.sh
./bin/Agent.Listener configure --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "$TFS_URL" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu55 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.106.0/vsts-agent-ubuntu.16.04-x64-2.106.0.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.106.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.106.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu55 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.107.0/vsts-agent-ubuntu.16.04-x64-2.107.0.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.107.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.107.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu55 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.107.1/vsts-agent-ubuntu.16.04-x64-2.107.1.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.107.1
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.107.1
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -1,29 +0,0 @@
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
libcurl3 \
libicu55 \
libunwind8 \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --system --group vsts
WORKDIR /home/vsts/agent
RUN set -x \
&& curl -fSL https://github.com/Microsoft/vsts-agent/releases/download/v2.108.0/vsts-agent-ubuntu.16.04-x64-2.108.0.tar.gz -o agent.tgz \
&& tar -xzf agent.tgz \
&& chown -R vsts:vsts . \
&& rm agent.tgz
COPY ./start.sh .
RUN chown vsts:vsts start.sh \
&& chmod +x start.sh
CMD ["./start.sh"]

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.108.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,27 +0,0 @@
FROM microsoft/vsts-agent:ubuntu-16.04-2.108.0
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v
COPY ./docker-start.sh .
RUN chown vsts:vsts docker-start.sh \
&& chmod +x docker-start.sh
CMD ["./docker-start.sh"]

Просмотреть файл

@ -1,8 +0,0 @@
#!/bin/bash
if [ -e /var/run/docker.sock ]; then
groupadd -g $(stat -c %g /var/run/docker.sock) docker
usermod -aG docker vsts
fi
. ./start.sh

Просмотреть файл

@ -1,49 +0,0 @@
#!/bin/bash
set -e
if [ -z "$VSTS_ACCOUNT" ]; then
echo 1>&2 error: missing VSTS_ACCOUNT environment variable
exit 1
fi
if [ -z "$VSTS_TOKEN" ]; then
echo 1>&2 error: missing VSTS_TOKEN environment variable
exit 1
fi
if [ -n "$VSTS_AGENT" ]; then
export VSTS_AGENT=$(eval echo $VSTS_AGENT)
fi
if [ -n "$VSTS_WORK" ]; then
export VSTS_WORK=$(eval echo $VSTS_WORK)
mkdir -p "$VSTS_WORK"
chown -R vsts:vsts "$VSTS_WORK"
fi
cd /home/vsts/agent
cleanup() {
su vsts -s /bin/bash -c './config.sh remove --unattended \
--auth PAT \
--token "$VSTS_TOKEN"'
}
trap 'cleanup; exit 130' INT
trap 'cleanup; exit 143' TERM
export VSO_AGENT_IGNORE=_,MAIL,PATH,VSO_AGENT_IGNORE,VSTS_AGENT,VSTS_ACCOUNT,VSTS_TOKEN,VSTS_POOL,VSTS_WORK
if [ -n "$VSTS_AGENT_IGNORE" ]; then
export VSO_AGENT_IGNORE=$VSO_AGENT_IGNORE,VSTS_AGENT_IGNORE,$VSTS_AGENT_IGNORE
fi
su vsts -s /bin/bash -c './config.sh --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "https://$VSTS_ACCOUNT.visualstudio.com" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace' & wait $!
su vsts -s /bin/bash -c ./run.sh & wait $!

Просмотреть файл

@ -13,6 +13,8 @@ RUN apt-get update \
libcurl3 \
libicu55 \
libunwind8 \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /vsts

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-docker-1.11.2
FROM microsoft/vsts-agent:ubuntu-16.04-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-8-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-docker-1.12.1
FROM microsoft/vsts-agent:ubuntu-16.04-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-8-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,85 @@
FROM microsoft/vsts-agent:ubuntu-16.04
# Install basic utilities and build tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Install Oracle JDKs
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-add-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
oracle-java6-installer \
oracle-java7-installer \
oracle-java8-installer \
oracle-java8-set-default \
&& ln -s /usr/lib/jvm/java-8-oracle /usr/lib/jvm/default-java \
&& rm -rf /var/lib/apt/lists/*
# Install ant separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ant \
ant-optional \
&& rm -rf /var/lib/apt/lists/*
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
# Install python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Install .NET Core SDK
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-dev-1.0.1 \
&& rm -rf /var/lib/apt/lists/*
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-8-oracle \
JAVA_HOME_6_X64=/usr/lib/jvm/java-6-oracle \
JAVA_HOME_7_X64=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_8_X64=/usr/lib/jvm/java-8-oracle \
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 \
M2_HOME=/usr/share/maven

Просмотреть файл

@ -1,6 +1,10 @@
#!/bin/bash
set -e
if [ -e /vsts/agent -a ! -e /vsts/agent/.agent ]; then
rm -rf /vsts/agent
fi
if [ -e /vsts/agent ]; then
export VSO_AGENT_IGNORE=_,MAIL,OLDPWD,PATH,PWD,UBUNTU_VERSION,VSO_AGENT_IGNORE
if [ -n "$VSTS_AGENT_IGNORE" ]; then

Просмотреть файл

@ -11,6 +11,8 @@ RUN apt-get update \
libcurl3 \
libicu55 \
libunwind8 \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /vsts

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017-docker-1.11.2
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-8-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.2
ENV DOCKER_SHA256 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -13,7 +13,7 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.8.0
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \

Просмотреть файл

@ -1,59 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017-docker-1.12.1
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017-standard
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-8-jdk \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.1
ENV DOCKER_SHA256 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_COMPOSE_VERSION 1.11.2
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 \
M2_HOME=/usr/share/maven \
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.13.1
ENV DOCKER_SHA256 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,21 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017-standard
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 17.03.0-ce
ENV DOCKER_SHA256 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e
RUN set -x \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/`uname -s`/`uname -m`/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
ENV DOCKER_COMPOSE_VERSION 1.11.2
RUN set -x \
&& curl -fSL "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose -v

Просмотреть файл

@ -0,0 +1,85 @@
FROM microsoft/vsts-agent:ubuntu-16.04-tfs-2017
# Install basic utilities and build tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
dnsutils \
ftp \
iproute2 \
iputils-ping \
openssh-client \
sudo \
telnet \
time \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Install Oracle JDKs
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-add-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
oracle-java6-installer \
oracle-java7-installer \
oracle-java8-installer \
oracle-java8-set-default \
&& ln -s /usr/lib/jvm/java-8-oracle /usr/lib/jvm/default-java \
&& rm -rf /var/lib/apt/lists/*
# Install ant separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ant \
ant-optional \
&& rm -rf /var/lib/apt/lists/*
# Install maven separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
maven \
&& rm -rf /var/lib/apt/lists/*
# Install gradle separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gradle \
&& rm -rf /var/lib/apt/lists/*
# Install python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Install .NET Core SDK
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-dev-1.0.1 \
&& rm -rf /var/lib/apt/lists/*
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-8-oracle \
JAVA_HOME_6_X64=/usr/lib/jvm/java-6-oracle \
JAVA_HOME_7_X64=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_8_X64=/usr/lib/jvm/java-8-oracle \
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 \
M2_HOME=/usr/share/maven

Просмотреть файл

@ -45,6 +45,8 @@ source ./env.sh
./bin/Agent.Listener configure --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "$TFS_URL" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace & wait $!

Просмотреть файл

@ -13,6 +13,8 @@ RUN apt-get update \
libcurl3 \
libicu$(LIBICU_VERSION) \
libunwind8 \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /vsts

Просмотреть файл

@ -1,3 +1,4 @@
1.11.2 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1 1.8.0
1.12.1 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79 1.8.0
17.03.0 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e 1.11.0
1.11.2 8c2e0c35e3cda11706f54b2d46c2521a6e9026a7b13c7d4b8ae1f3a706fc55e1 1.11.2
1.12.1 05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79 1.11.2
1.13.1 97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75 1.11.2
17.03.0-ce 4a9766d99c6818b2d54dc302db3c9f7b352ad0a80a2dc179ec164a3ba29c2d3e 1.11.2

Просмотреть файл

@ -1,11 +1,9 @@
FROM microsoft/vsts-agent:$(VSTS_AGENT_TAG)
# Install packages
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ $(UBUNTU_RELEASE) main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 \
&& apt-get update \
# Install basic utilities and build tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
# Basic utilities
build-essential \
curl \
dnsutils \
ftp \
@ -18,17 +16,26 @@ RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release
unzip \
wget \
zip \
# Essential build tools (gcc, make, etc.)
build-essential \
# Python
python \
python3 \
# Java and related build tools
openjdk-$(OPENJDK_VERSION)-jdk \
&& rm -rf /var/lib/apt/lists/*
# Install Oracle JDKs
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-add-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
oracle-java6-installer \
oracle-java7-installer \
oracle-java8-installer \
oracle-java$(DEFAULT_JDK_VERSION)-set-default \
&& ln -s /usr/lib/jvm/java-$(DEFAULT_JDK_VERSION)-oracle /usr/lib/jvm/default-java \
&& rm -rf /var/lib/apt/lists/*
# Install ant separately to avoid apt-get errors
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ant \
ant-optional \
# .NET Core SDK
dotnet-dev-1.0.0-preview2-003131 \
&& rm -rf /var/lib/apt/lists/*
# Install maven separately to avoid apt-get errors
@ -43,17 +50,36 @@ RUN apt-get update \
gradle \
&& rm -rf /var/lib/apt/lists/*
# Install python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Install stable Node.js and related build tools
RUN curl -sL https://git.io/n-install | bash -s -- -ny - \
&& ~/n/bin/n stable \
&& npm install -g bower grunt gulp n \
&& rm -rf ~/n
# Install .NET Core SDK
RUN echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet-release/ $(UBUNTU_RELEASE) main" > /etc/apt/sources.list.d/dotnetdev.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-dev-1.0.1 \
&& rm -rf /var/lib/apt/lists/*
# Configure environment variables
ENV ANT_HOME=/usr/share/ant \
bower=/usr/local/bin/bower \
dotnet=/usr/bin/dotnet \
GRADLE_HOME=/usr/share/gradle \
grunt=/usr/local/bin/grunt \
JAVA_HOME=/usr/lib/jvm/java-$(OPENJDK_VERSION)-openjdk-amd64 \
M2_HOME=/usr/share/maven \
JAVA_HOME=/usr/lib/jvm/java-$(DEFAULT_JDK_VERSION)-oracle \
JAVA_HOME_6_X64=/usr/lib/jvm/java-6-oracle \
JAVA_HOME_7_X64=/usr/lib/jvm/java-7-oracle \
JAVA_HOME_8_X64=/usr/lib/jvm/java-8-oracle \
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 \
M2_HOME=/usr/share/maven

Просмотреть файл

@ -0,0 +1,66 @@
## Standard images
The Ubuntu-based standard images include a set of standard capabilities that enable many of the built-in VSTS build and release tasks.
This page describes the versions of tools that are available in specific builds of the standard image.
## ubuntu-14.04
### build 2017-04-05 (20170405)
- Oracle JDK 6 (1.6.0_45)
- Oracle JDK 7 (1.7.0_80)
- Oracle JDK 8 (1.8.0_121)
- Ant 1.9.3
- Gradle 1.4
- Maven 3.0.5
- Python 2.7.6, 3.4.3
- Node.js v7.8.0
- .NET Core SDK 1.0.1
### build 2017-03-27 (20170327)
- Python 2.7.6, 3.4.3
- OpenJDK 1.7.0_121
- Ant 1.9.3
- Gradle 1.4
- Maven 3.0.5
- .NET Core SDK 1.0.1
- Node.js v7.6.0
### build 2017-03-15 (20170315)
- Python 2.7.6, 3.4.3
- OpenJDK 1.7.0_121
- Ant 1.9.3
- Gradle 1.4
- Maven 3.0.5
- .NET Core SDK 1.0.1
- Node.js v7.6.0
## ubuntu-16.04
### build 2017-04-05 (20170405)
- Oracle JDK 6 (1.6.0_45)
- Oracle JDK 7 (1.7.0_80)
- Oracle JDK 8 (1.8.0_121)
- Ant 1.9.6
- Gradle 2.10
- Maven 3.3.9
- Python 2.7.12, 3.5.2
- Node.js v7.8.0
- .NET Core SDK 1.0.1
### build 2017-03-27 (20170327)
- Python 2.7.12, 3.5.2
- OpenJDK 1.8.0_121
- Ant 1.9.6
- Gradle 2.10
- Maven 3.3.9
- .NET Core SDK 1.0.1
- Node.js v7.6.0
### build 2017-03-15 (20170315)
- Python 2.7.12, 3.5.2
- OpenJDK 1.8.0_111
- Ant 1.9.6
- Gradle 2.10
- Maven 3.3.9
- .NET Core SDK 1.0.1
- Node.js v7.2.0

Просмотреть файл

@ -1,6 +1,10 @@
#!/bin/bash
set -e
if [ -e /vsts/agent -a ! -e /vsts/agent/.agent ]; then
rm -rf /vsts/agent
fi
if [ -e /vsts/agent ]; then
export VSO_AGENT_IGNORE=_,MAIL,OLDPWD,PATH,PWD,UBUNTU_VERSION,VSO_AGENT_IGNORE
if [ -n "$VSTS_AGENT_IGNORE" ]; then

Просмотреть файл

@ -11,6 +11,8 @@ RUN apt-get update \
libcurl3 \
libicu$(LIBICU_VERSION) \
libunwind8 \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /vsts

Просмотреть файл

@ -45,6 +45,8 @@ source ./env.sh
./bin/Agent.Listener configure --unattended \
--agent "${VSTS_AGENT:-$(hostname)}" \
--url "$TFS_URL" \
--auth PAT \
--token "$VSTS_TOKEN" \
--pool "${VSTS_POOL:-Default}" \
--work "${VSTS_WORK:-_work}" \
--replace & wait $!

26
update.sh Normal file → Executable file
Просмотреть файл

@ -33,6 +33,21 @@ ubuntu() {
fi
cp $TEMPLATE_DIR/start.sh $TARGET_DIR
while read TARGET_UBUNTU_VERSION UBUNTU_RELEASE DEFAULT_JDK_VERSION; do
if [ "$UBUNTU_VERSION" == "$TARGET_UBUNTU_VERSION" ]; then
STANDARD_DIR=$TARGET_DIR/standard
mkdir -p $STANDARD_DIR
sed \
-e s/'$(VSTS_AGENT_TAG)'/$VSTS_AGENT_TAG/g \
-e s/'$(UBUNTU_RELEASE)'/$UBUNTU_RELEASE/g \
-e s/'$(DEFAULT_JDK_VERSION)'/$DEFAULT_JDK_VERSION/g \
derived/standard/Dockerfile.template > $STANDARD_DIR/Dockerfile
if [ -n "$(which unix2dos)" ]; then
unix2dos -q $STANDARD_DIR/Dockerfile
fi
fi
done < <(cat derived/standard/versions | sed 's/\r//')
while read DOCKER_VERSION DOCKER_SHA256 DOCKER_COMPOSE_VERSION; do
DOCKER_DIR=$TARGET_DIR/docker/$DOCKER_VERSION
mkdir -p $DOCKER_DIR
@ -46,15 +61,16 @@ ubuntu() {
unix2dos -q $DOCKER_DIR/Dockerfile
fi
while read TARGET_UBUNTU_VERSION UBUNTU_RELEASE OPENJDK_VERSION; do
while read TARGET_UBUNTU_VERSION UBUNTU_RELEASE DEFAULT_JDK_VERSION; do
if [ "$UBUNTU_VERSION" == "$TARGET_UBUNTU_VERSION" ]; then
STANDARD_DIR=$DOCKER_DIR/standard
mkdir -p $STANDARD_DIR
sed \
-e s/'$(VSTS_AGENT_TAG)'/$VSTS_AGENT_TAG-docker-$DOCKER_VERSION/g \
-e s/'$(UBUNTU_RELEASE)'/$UBUNTU_RELEASE/g \
-e s/'$(OPENJDK_VERSION)'/$OPENJDK_VERSION/g \
derived/standard/Dockerfile.template > $STANDARD_DIR/Dockerfile
-e s/'$(VSTS_AGENT_TAG)'/$VSTS_AGENT_TAG-standard/g \
-e s/'$(DOCKER_VERSION)'/$DOCKER_VERSION/g \
-e s/'$(DOCKER_SHA256)'/$DOCKER_SHA256/g \
-e s/'$(DOCKER_COMPOSE_VERSION)'/$DOCKER_COMPOSE_VERSION/g \
derived/docker/Dockerfile.template > $STANDARD_DIR/Dockerfile
if [ -n "$(which unix2dos)" ]; then
unix2dos -q $STANDARD_DIR/Dockerfile
fi

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше