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

Attempt to fix stress builds #85342

Merged
Merged
Changes from 2 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
23 changes: 22 additions & 1 deletion eng/docker/libraries-sdk.linux.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
# Builds and copies library artifacts into target dotnet sdk image
ARG BUILD_BASE_IMAGE=mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-f39df28-20191023143754
ARG BUILD_BASE_IMAGE=mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7
ARG SDK_BASE_IMAGE=mcr.microsoft.com/dotnet/nightly/sdk:7.0-bullseye-slim

FROM $BUILD_BASE_IMAGE as corefxbuild

# Enable openssl legacy provider in system openssl config
RUN fixOpensslConf=$(mktemp) && \
printf "#!/usr/bin/env sh\n\
sed -i '\n\
# Append 'legacy = legacy_sect' after 'default = default_sect' under [provider_sect]
/^default = default_sect/a legacy = legacy_sect\n\
# Search for [default_sect]
/\[default_sect\]/ {\n\
# Go to next line
n\n\
# Uncomment '# activate = 1'
s/# //\n\
# Append new [legacy_sect], with 'activate = 1'
a\n\
a [legacy_sect]\n\
a activate = 1\n\
}\n\
' /etc/ssl/openssl.cnf\n" > $fixOpensslConf && \
sh $fixOpensslConf && \
rm $fixOpensslConf

ARG CONFIGURATION=Release

WORKDIR /repo
Expand Down