Sign inSign up

devizervlad/crossplatform-azure-pipelines-agent

By devizervlad

•Updated over 2 years ago

Image
0

100K+

devizervlad/crossplatform-azure-pipelines-agent repository overview

⁠azure-pipeline-agent-in-docker

azure pipeline agent in docker for armv7, arm64 and x86_64

  • Preconfigured SystemD. Intended for background services testing.
  • Azure pipelines agent configured as SystemD service. Self-update is fully supported.
  • Pre-installed latest docker-compose and Docker CE client with experimental features such as buildx.
  • Pre-installed latest .Net core, Mono, Node LTS, NUnit & xUnit test runners, git, etc.
  • Supported 3 architectures: armv7, arm64 and x86_64.
  • Preconfigured en_US.UTF8 as LC_ALL and LANG.
Image TagsBase ImageSSL Ver
focal, latestUbuntu 20.04 LTS, Focal Fossa1.1.1f
bionicUbuntu 18.04.5 LTS, Bionic Beaver1.1.1
xenialUbuntu 16.04 LTS, Xenial Xerus1.0.2g
busterDebian 10.3, Buster1.1.1d
stretchDebian 9, Stretch1.1.0l, 1.0.2u
⁠Create container and Configure azure pipelines agent
# Create container and make it start on boot
docker run -d --restart on-failure --privileged \
 --name agent007 \
 --hostname agent007 \
 -v /sys/fs/cgroup:/sys/fs/cgroup \
 -v /var/run/docker.sock:/var/run/docker.sock \
 devizervlad/crossplatform-azure-pipelines-agent:latest

# Configure azure pipelines agent 
HOST_DOCKER_GROUP_ID=$(getent group docker | awk -F: '{printf $3}')
docker exec -it agent007 bash -c '
 export HOST_DOCKER_GROUP_ID='$HOST_DOCKER_GROUP_ID';
 export VSTS_URL="https://devizer.visualstudio.com/";
 export VSTS_PAT=<your agent pool token>;
 export VSTS_POOL=my-pool;
 export VSTS_AGENT=my-agent-007; 
 export VSTS_WORK=work;
 /pre-configure/config-agent.sh'
⁠Troubleshooting
systemctl status azure-pipelines-agent
journalctl -u azure-pipelines-agent
cat /home/user/azure-pipelines-agent/_diag/*.log

Tag summary

Content type

Image

Digest

sha256:3de875407…

Size

2 GB

Last updated

over 2 years ago

docker pull devizervlad/crossplatform-azure-pipelines-agent