-
Notifications
You must be signed in to change notification settings - Fork 93
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
build: Use Centos 7 as base image for the linux build [INGEST-1340] #1279
Conversation
// build a static library | ||
.define("BUILD_SHARED_LIBS", "OFF") | ||
// cmake sets the install dir to `lib64` sometimes, but rust expects `lib` | ||
.define("CMAKE_INSTALL_LIBDIR", "lib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* master: fix(build): Use cli git to save ram with cargo (#1280)
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal | ||
|
||
COPY --from=sentry-cli /bin/sentry-cli /bin/sentry-cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this from the relay-builder stage to relay-deps. It looks like this was placed there to ensure we have a more recent sentry-cli
, but since sentry-cli is now more stable, we can also copy it into the deps right away.
I can look into updating to sentry-cli v2 in a separate step.
Moves docker builds to a container based on CentOS 7, which is currently the oldest long-term supported Linux still under maintenance along with RHEL 7. This makes Relay compatible with glibc 2.17 or newer. Apart from CentOS and RHEL, this change also makes Relay compatible with the current AWS lambda runtime.
The main docker container published to the DockerHub registry continues to include
processing
andcrash-handling
, which comes with an additional dependency tocurl
. To make this work under CentOS, there was a fix necessary in therelay-crash
native build to ensure the static library gets installed into the correct directory.A build with all binaries can be seen here (download artifacts).
Fixes #1137
cc @antonpirker