Skip to content

Commit f3b5065

Browse files
authored
Merge pull request #438 from janvorli/add-helix-alpine-3.13
Add Alpine 3.13 Helix image for ARM
2 parents 19bba5c + 1ea6b0a commit f3b5065

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

manifest.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,20 @@
563563
}
564564
]
565565
},
566+
{
567+
"platforms": [
568+
{
569+
"architecture": "arm",
570+
"dockerfile": "src/alpine/3.13/helix/arm32v7",
571+
"os": "linux",
572+
"osVersion": "alpine3.13",
573+
"tags": {
574+
"alpine-3.13-helix-arm32v7-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
575+
},
576+
"variant": "v7"
577+
}
578+
]
579+
},
566580
{
567581
"platforms": [
568582
{
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
FROM arm32v7/alpine:3.13
2+
3+
# Install .NET Core Dependencies for Alpine
4+
5+
RUN apk update && \
6+
apk add --no-cache \
7+
autoconf \
8+
automake \
9+
bash \
10+
build-base \
11+
clang \
12+
clang-dev \
13+
cmake \
14+
coreutils \
15+
curl \
16+
gcc \
17+
gettext-dev \
18+
git \
19+
icu-dev \
20+
iputils \
21+
krb5-dev \
22+
libtool \
23+
libunwind-dev \
24+
libffi \
25+
libffi-dev \
26+
linux-headers \
27+
llvm \
28+
lttng-ust-dev \
29+
make \
30+
openssl \
31+
openssl-dev \
32+
py-cffi \
33+
python3 \
34+
python3-dev \
35+
sudo \
36+
tzdata \
37+
userspace-rcu-dev \
38+
util-linux-dev \
39+
wget \
40+
zlib-dev
41+
42+
# Install Helix Dependencies
43+
44+
# Workaround: https://github.com/pypa/wheel/issues/367
45+
ENV _PYTHON_HOST_PLATFORM=linux_armv7l
46+
47+
RUN ln -sf /usr/bin/python3 /usr/bin/python && \
48+
curl https://bootstrap.pypa.io/get-pip.py -o ./get-pip.py --fail --silent --show-error && \
49+
python ./get-pip.py && rm ./get-pip.py && \
50+
python -m pip install --upgrade pip==20.2 && \
51+
python -m pip install virtualenv==16.6.0 && \
52+
pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
53+
export CRYPTOGRAPHY_DONT_BUILD_RUST=1 && \
54+
pip install ./helix_scripts-*-py3-none-any.whl
55+
56+
# Needed for corefx tests to pass
57+
ENV LANG=en-US.UTF-8
58+
59+
# create helixbot user and give rights to sudo without password
60+
# Alpine does not support long options
61+
RUN /usr/sbin/adduser -D -g '' -G adm -s /bin/bash -u 1001 helixbot && \
62+
chmod 755 /root && \
63+
echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot
64+
65+
USER helixbot
66+
67+
RUN python -m virtualenv --no-site-packages /home/helixbot/.vsts-env

0 commit comments

Comments
 (0)