Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/centos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@
}
]
},
{
"platforms": [
{
"dockerfile": "src/centos/stream8/helix/amd64",
"os": "linux",
"osVersion": "centos-stream8",
"tags": {
"centos-stream8-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"centos-stream8-helix$(FloatingTagSuffix)": {}
}
}
]
},
{
"platforms": [
{
Expand Down
54 changes: 54 additions & 0 deletions src/centos/stream8/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM quay.io/centos/centos:stream8

# Install dependencies
RUN curl -LO https://packages.microsoft.com/keys/microsoft.asc && \
echo 2cfd20a306b2fa5e25522d78f2ef50a1f429d35fd30bd983e2ebffc2b80944fa microsoft.asc| sha256sum --check - && \
rpm --import microsoft.asc && \
rm microsoft.asc && \
dnf install --setopt tsflags=nodocs --refresh -y \
dnf-plugins-core \
&& \
dnf config-manager --add-repo https://packages.microsoft.com/centos/8/prod \
&& \
dnf install --setopt tsflags=nodocs -y --allowerasing \
autoconf \
automake \
curl \
file \
gcc \
gcc-c++ \
gdb \
git-core \
iputils \
libicu \
libmsquic \
libtool \
make \
openssl \
openssl-devel \
perl \
python3 \
python3-devel \
sudo \
tar \
wget \
which \
&& \
dnf clean all

RUN ln -sf /usr/bin/python3 /usr/bin/python && \
python -m pip install --upgrade pip==20.2 && \
python -m pip install virtualenv==16.6.0 && \
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

ENV LANG=en_US.utf8

# create helixbot user and give rights to sudo without password
RUN /usr/sbin/adduser --uid 1000 --shell /bin/bash --gid adm helixbot && \
chmod 755 /root && \
echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers

USER helixbot

RUN python -m virtualenv --no-site-packages /home/helixbot/.vsts-env