This Image can be used as an agent on AKS, docker run command is :
257
This Image can be used as an agent on AKS (Azure) , following is the docker command :
docker run -e AZP_URL=<ORG_URL> -e AZP_TOKEN=<PAT_TOKEN> -e AZP_POOL=<POOL_NAME> -e LICENSE=accept -e AZP_AGENT_NAME=<AGENT_NAME> mayankahuja/aksagent:1.0
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops Docker file used (contains other packages as well like powershell, kubectl, azcopy, docker, etc.) FROM ubuntu:20.04 RUN DEBIAN_FRONTEND=noninteractive apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends
apt-transport-https
apt-utils
ca-certificates
curl
git
iputils-ping
jq
lsb-release
software-properties-common
RUN apt-get update -y
&& apt-get install -y --no-install-recommends
bash
curl
file
grep
maven
mount
sudo
tar
util-linux
RUN apt-get -y install libgtk2.0-0 libxtst6 xvfb curl libswt-gtk-4-java libswt-gtk-4-jni jq
vim
maven
git
zip
unzip
RUN apt-get update
RUN apt-get install -y wget apt-transport-https software-properties-common
RUN wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update
RUN apt-get install -y powershell
#pwsh
RUN wget https://aka.ms/downloadazcopy-v10-linux
#Expand Archive RUN tar -xvf downloadazcopy-v10-linux
#(Optional) Remove existing AzCopy version #RUN rm /usr/bin/azcopy
#Move AzCopy to the destination you want to store it RUN cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends
apt-transport-https
apt-utils
ca-certificates
curl
git
iputils-ping
netcat
lsb-release
software-properties-common
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" #RUN curl -LO https://dl.k8s.io/release/v1.25.2/bin/linux/amd64/kubectl RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
RUN az config set extension.use_dynamic_install=yes_without_prompt RUN az extension add --name azure-devops
RUN apt-get update
RUN apt-get install
ca-certificates
curl
gnupg
lsb-release
RUN mkdir -p /etc/apt/keyrings RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN chmod a+r /etc/apt/keyrings/docker.gpg RUN apt-get update -y
RUN apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
ENV TARGETARCH=linux-x64
WORKDIR /azp
COPY ./start.sh .
RUN chmod +x start.sh RUN chmod +x ./start.sh
ENTRYPOINT [ "./start.sh" ]
Content type
Image
Digest
sha256:1656233ed…
Size
763.8 MB
Last updated
almost 4 years ago
docker pull mayankahuja/aksagentwithdocker:2.0