Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Fedora35 Helix image #509

Closed
wants to merge 6 commits into from
Closed
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
42 changes: 21 additions & 21 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,70 +291,70 @@
},
{
"platforms": [{
"dockerfile": "src/fedora/32/amd64",
"dockerfile": "src/fedora/33/amd64",
"os": "linux",
"osVersion": "fedora32",
"osVersion": "fedora33",
"tags": {
"fedora-32-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"fedora-32": {
"fedora-33-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"fedora-33": {
"isLocal": true
}
}
}]
},
{
"platforms": [{
"dockerfile": "src/fedora/32/helix/amd64",
"dockerfile": "src/fedora/33/helix/amd64",
"os": "linux",
"osVersion": "fedora32",
"osVersion": "fedora33",
"tags": {
"fedora-32-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
"fedora-33-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
}
}]
},
{
"platforms": [{
"dockerfile": "src/fedora/33/amd64",
"dockerfile": "src/fedora/34/amd64",
"os": "linux",
"osVersion": "fedora33",
"osVersion": "fedora34",
"tags": {
"fedora-33-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"fedora-33": {
"fedora-34-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"fedora-34": {
"isLocal": true
}
}
}]
},
{
"platforms": [{
"dockerfile": "src/fedora/33/helix/amd64",
"dockerfile": "src/fedora/34/helix/amd64",
"os": "linux",
"osVersion": "fedora33",
"osVersion": "fedora34",
"tags": {
"fedora-33-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
"fedora-34-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
}
}]
},
{
"platforms": [{
"dockerfile": "src/fedora/34/amd64",
"dockerfile": "src/fedora/35/amd64",
"os": "linux",
"osVersion": "fedora34",
"osVersion": "fedora35",
"tags": {
"fedora-34-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"fedora-34": {
"fedora-35-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
"fedora-35": {
"isLocal": true
}
}
}]
},
{
"platforms": [{
"dockerfile": "src/fedora/34/helix/amd64",
"dockerfile": "src/fedora/35/helix/amd64",
"os": "linux",
"osVersion": "fedora34",
"osVersion": "fedora35",
"tags": {
"fedora-34-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
"fedora-35-helix-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
}
}]
},
Expand Down
2 changes: 1 addition & 1 deletion src/fedora/34/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python && \
RUN dnf install -y dotnet gem lttng-tools perl-FindBin rpmdevtools ruby-devel && \
rpm -i https://github.com/PowerShell/PowerShell/releases/download/v7.0.6/powershell-lts-7.0.6-1.rhel.7.x86_64.rpm && \
gem install fpm && \
git clone --depth 1 --single-branch --recursive https://github.com/dotnet/msquic && \
git clone --depth 1 --single-branch -b release/6.0 --recursive https://github.com/dotnet/msquic && \
cd msquic/src/msquic && PATH=~/.dotnet/tools:$PATH pwsh scripts/build.ps1 -Config Release -DisableLogs && \
touch artifacts/bin/linux/x64_Release_openssl/libmsquic.lttng.so && ./scripts/make-packages.sh --output /tmp && \
rpm -i /tmp/libmsquic*rpm && \
Expand Down
51 changes: 51 additions & 0 deletions src/fedora/35/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM registry.fedoraproject.org/fedora:35

RUN sleep 30
RUN cat /etc/resolv.conf
RUN curl -v http://google.com/
RUN curl -v http://fedora.org/
RUN curl -vL http://mirrors.fedoraproject.org/

# Install the base toolchain we need to build anything (clang, cmake, make and the like)
# this does not include libraries that we need to compile different projects, we'd like
# them in a different layer.
RUN dnf --setopt=install_weak_deps=False install -y \
clang \
cmake \
dnf-plugins-core \
findutils \
gdb \
glibc-langpack-en \
lldb-devel \
llvm-devel \
make \
python \
which \
&& dnf clean all

# Install tools used by build automation.
RUN dnf --setopt=install_weak_deps=False install -y \
git \
tar \
procps \
zip \
&& dnf clean all

# Dependencies of CoreCLR, Mono and CoreFX.
RUN dnf --setopt=install_weak_deps=False install -y \
autoconf \
automake \
glibc-locale-source \
iputils \
krb5-devel \
libcurl-devel \
libgdiplus \
libicu-devel \
libomp-devel \
libtool \
libunwind-devel \
libuuid-devel \
lttng-ust-devel \
openssl-devel \
uuid-devel \
&& dnf clean all
19 changes: 19 additions & 0 deletions src/fedora/35/amd64/microsoft.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.7 (GNU/Linux)

mQENBFYxWIwBCADAKoZhZlJxGNGWzqV+1OG1xiQeoowKhssGAKvd+buXCGISZJwT
LXZqIcIiLP7pqdcZWtE9bSc7yBY2MalDp9Liu0KekywQ6VVX1T72NPf5Ev6x6DLV
7aVWsCzUAF+eb7DC9fPuFLEdxmOEYoPjzrQ7cCnSV4JQxAqhU4T6OjbvRazGl3ag
OeizPXmRljMtUUttHQZnRhtlzkmwIrUivbfFPD+fEoHJ1+uIdfOzZX8/oKHKLe2j
H632kvsNzJFlROVvGLYAk2WRcLu+RjjggixhwiB+Mu/A8Tf4V6b+YppS44q8EvVr
M+QvY7LNSOffSO6Slsy9oisGTdfE39nC7pVRABEBAAG0N01pY3Jvc29mdCAoUmVs
ZWFzZSBzaWduaW5nKSA8Z3Bnc2VjdXJpdHlAbWljcm9zb2Z0LmNvbT6JATUEEwEC
AB8FAlYxWIwCGwMGCwkIBwMCBBUCCAMDFgIBAh4BAheAAAoJEOs+lK2+EinPGpsH
/32vKy29Hg51H9dfFJMx0/a/F+5vKeCeVqimvyTM04C+XENNuSbYZ3eRPHGHFLqe
MNGxsfb7C7ZxEeW7J/vSzRgHxm7ZvESisUYRFq2sgkJ+HFERNrqfci45bdhmrUsy
7SWw9ybxdFOkuQoyKD3tBmiGfONQMlBaOMWdAsic965rvJsd5zYaZZFI1UwTkFXV
KJt3bp3Ngn1vEYXwijGTa+FXz6GLHueJwF0I7ug34DgUkAFvAs8Hacr2DRYxL5RJ
XdNgj4Jd2/g6T9InmWT0hASljur+dJnzNiNCkbn9KbX7J/qK1IbR8y560yRmFsU+
NdCFTW7wY0Fb1fWJ+/KTsC4=
=J6gs
-----END PGP PUBLIC KEY BLOCK-----
49 changes: 49 additions & 0 deletions src/fedora/35/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-35

# Install Helix Dependencies
RUN sleep 30
RUN cat /etc/resolv.conf
RUN ping -c 1 google.com
RUN ping -c 1 fedora.org
RUN ping -c 1 mirrors.fedoraproject.org

RUN dnf install -y \
openssl \
python3 \
python3-devel \
libatomic \
libffi-devel \
redhat-rpm-config \
sudo && \
dnf clean all

RUN pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
python -m pip install virtualenv && \
pip install ./helix_scripts-*-py3-none-any.whl

# This is temporary until we have flow to packages.microsoft.com

RUN dnf install -y dotnet gem lttng-tools perl-FindBin rpmdevtools ruby-devel && \
rpm -i https://github.com/PowerShell/PowerShell/releases/download/v7.0.6/powershell-lts-7.0.6-1.rhel.7.x86_64.rpm && \
gem install fpm && \
git clone --depth 1 --single-branch --recursive https://github.com/dotnet/msquic && \
cd msquic/src/msquic && PATH=~/.dotnet/tools:$PATH pwsh scripts/build.ps1 -Config Release -DisableLogs && \
touch artifacts/bin/linux/x64_Release_openssl/libmsquic.lttng.so && ./scripts/make-packages.sh --output /tmp && \
rpm -i /tmp/libmsquic*rpm && \
cd ~ ; rm -rf msquic /tmp/libmsquic* && \
rpm -e powershell-lts dotnet lttng-tools perl-FindBin rpmdevtools ruby-devel && \
dnf clean all

# Needed for .NET corefx tests to pass
ENV LANG=en-US.UTF-8

# create helixbot user and give rights to sudo without password
# Fedora does not have all options as other Linux systems
RUN /usr/sbin/adduser --uid 1000 --shell /bin/bash --group adm helixbot && \
chmod 755 /root && \
echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers && \
chmod +s /usr/bin/ping

USER helixbot

RUN python -m virtualenv /home/helixbot/.vsts-env