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

Migrate the build on redhat ubi-minimal 8, QA #7

Closed

Conversation

teresanovielloatinstana
Copy link
Collaborator

Reference

Jira ticket

WHAT

  1. Migrate base image of the ebpf-profiler building image from debian:testing to registry.redhat.io/ubi8/ubi-minimal:latest
    Attention: Clang version on this image is 18, not 16.

  2. Refactor the files to build the ebpf-profiler building image to the directory docker-image
    The docker image entrypoint moves to /agent/go/bin all the binaries needed by GO for the generation and linting

  3. Makefile: pin GO deps versions
    Attention: pin porto version to "v0.6.0" (instead of latest). The latest version of porto requires GO 1.23.

  4. Makefile: fix the clean target.

  5. Makefiles: substitute clang-16 with clang.

  6. Makefile: remove the installation of GolangCi deps during linting.

  7. Makefile: add targets for GO deps management

WHY

  1. Compliance
    2-7: Fixes

@teresanovielloatinstana teresanovielloatinstana force-pushed the migrate_to_redhat-ubi-minimal-8 branch 2 times, most recently from ed0d03f to 0a92245 Compare December 13, 2024 20:00
Migrate the build on redhat ubi-minimal 8.
Attention: Clang version on this image is 18, not 16.
Isolate docker files in directory docker-image.
Introduce an entrypoint for the docker image, to better deal with the GO
environment.
Dockerfile: install GolangCi deps in the docker image, copy the binaries
in the container's workdir in /agent/go/bin.
Makefile: fix the clean target.
Makefiles: substitute clang-16 with clang.
Makefile: remove the installation of GolangCi deps during linting.
Makefile: add targets for GO deps management
Makefile: pin GO deps versions
Makefile: pin porto version to "v0.6.0" (instead of latest).
The latest version of porto requires GO 1.23.
Makefile: improve target linter-version, print all GolangCi deps
versions.
GO: touch go/bin/.gitkeep, the directory bin contains the GO deps
@teresanovielloatinstana teresanovielloatinstana force-pushed the migrate_to_redhat-ubi-minimal-8 branch from 6840c00 to 7357764 Compare December 13, 2024 20:02
@bhavnajindal
Copy link

According to the PR, clang-18 would break some tests on kernels 4.19.314 and 5.4.276. They are considering to use clang-17.
However, our baseline Amazon Linux 2 kernel is 5.10 version, so ideally we should be good there? WDYTH @teresanovielloatinstana

@teresanovielloatinstana
Copy link
Collaborator Author

According to the PR, clang-18 would break some tests on kernels 4.19.314 and 5.4.276. They are considering to use clang-17. However, our baseline Amazon Linux 2 kernel is 5.10 version, so ideally we should be good there? WDYTH @teresanovielloatinstana

We decided during a team meeting to follow the community and do a first integration step using clang-17. I will close this PR and work in another branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants