-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helix images for Azure Linux 3.0
- Loading branch information
1 parent
4cf84c9
commit c41d95c
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters