Skip to content

Commit

Permalink
Add helix images for Azure Linux 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
richlander committed Aug 8, 2024
1 parent 4cf84c9 commit c41d95c
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/azurelinux/3.0/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM mcr.microsoft.com/azurelinux/base/core:3.0

# Install Helix Dependencies

ENV LANG=en_US.utf8

RUN tdnf install --setopt tsflags=nodocs --refresh -y \
build-essential \
ca-certificates-microsoft \
gcc \
icu \
iputils \
llvm \
python3-devel \
python3-pip \
shadow-utils \
tar \
tzdata \
which \
&& tdnf clean all

RUN ln -sf /usr/bin/python3 /usr/bin/python && \
python -m pip install --upgrade setuptools && \
pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
pip install ./helix_scripts-*-py3-none-any.whl && \
rm ./helix_scripts-*-py3-none-any.whl

# create helixbot user and give rights to sudo without password
RUN /usr/sbin/useradd -c '' --uid 1000 --shell /bin/bash --groups adm helixbot && \
chmod 755 /root && \
echo "helixbot ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
mkdir /home/helixbot/ && chown -R helixbot /home/helixbot/

USER helixbot

RUN python -m venv /home/helixbot/.vsts-env
44 changes: 44 additions & 0 deletions src/azurelinux/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,50 @@
}
}
]
},
{
"platforms": [
{
"architecture": "amd64",
"dockerfile": "src/azurelinux/3.0/helix",
"os": "linux",
"osVersion": "azurelinux3.0",
"tags": {
"azurelinux-3.0-helix-amd64$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"azurelinux-3.0-helix-amd64-$(FloatingTagSuffix)": {}
}
}
]
},
{
"platforms": [
{
"architecture": "arm64",
"dockerfile": "src/azurelinux/3.0/helix",
"os": "linux",
"osVersion": "azurelinux3.0",
"tags": {
"azurelinux-3.0-helix-arm64v8$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"azurelinux-3.0-helix-arm64v8-$(FloatingTagSuffix)": {}
},
"variant": "v8"
}
]
},
{
"platforms": [
{
"architecture": "arm",
"dockerfile": "src/azurelinux/3.0/helix",
"os": "linux",
"osVersion": "azurelinux3.0",
"tags": {
"azurelinux-3.0-helix-arm32v7$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"azurelinux-3.0-helix-arm32v7-$(FloatingTagSuffix)": {}
},
"variant": "v7"
}
]
}
]
}
Expand Down

0 comments on commit c41d95c

Please sign in to comment.