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

build: Use Centos 7 as base image for the linux build [INGEST-1340] #1279

Merged
merged 8 commits into from
May 24, 2022

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented May 20, 2022

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 and crash-handling, which comes with an additional dependency to curl. To make this work under CentOS, there was a fix necessary in the relay-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

@jan-auer jan-auer requested a review from a team May 20, 2022 16:36
@jan-auer jan-auer self-assigned this May 20, 2022
@jan-auer jan-auer marked this pull request as draft May 21, 2022 08:26
// 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")
Copy link
Contributor

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)
@andriisoldatenko andriisoldatenko self-requested a review May 23, 2022 15:11
@jan-auer jan-auer marked this pull request as ready for review May 23, 2022 15:43
@jan-auer jan-auer requested a review from tonyo May 23, 2022 15:43

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
Copy link
Member Author

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.

@jan-auer jan-auer merged commit 984717e into master May 24, 2022
@jan-auer jan-auer deleted the build/centos-7 branch May 24, 2022 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RHEL/Centos 7 compatibility
4 participants