Created to support multistage/multiplatform docker build solutions with Azure DevOPS.
309
#Azure DevOPS (vsts) pipeline agent
Includes my Powershell (core) image and Docker 19.03 tools (buildx et al)
Created to support multistage/multiplatform docker build solutions with Azure DevOPS.
Be sure to mount your horst /var/run to the container's /var/run i.e.: You also need to specify your target architecture in the env vars:
'linux-x64', 'linux-arm64', 'linux-arm'
You also nee the same environment variables as documented from Microsoft:
docker run -it -d -v /var/run:/var/run -e TARGETARCH:linux-x64 -e AZP_TOKEN:akjfgakjfgakjdfgakjdfaksdjg -e AZP_AGENT_NAME:myname1 -e AZP_URL:https://dev.azure.com/myorg drjp81/vstsagt:latest
or via a docker-compose
version: "2.1"
services:
azp:
container_name: azp
image: drjp81/vstsagt:latest
restart: unless-stopped
privileged: true
hostname: azp
dns:
- 192.168.1.12
- 192.168.1.1
network_mode: host
environment:
- TZ=America/Toronto
- AZP_TOKEN=askldjfhaiufhoaiweufhlaksdjfh
- AZP_AGENT_NAME=mydockeragent1
- AZP_URL=https://dev.azure.com/myorg
# Can be 'linux-x64', 'linux-arm64', 'linux-arm', 'rhel.6-x64'.
- TARGETARCH=linux-x64
- DOCKER_BUILDKIT=1
volumes:
- /var/run/:/var/run/
Content type
Image
Digest
sha256:fd63e0ce3…
Size
589.4 MB
Last updated
about 4 years ago
docker pull drjp81/vstsagt