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 synthetics to the new Wolfi image of Heartbeat #40564

Closed
rdner opened this issue Aug 20, 2024 · 9 comments · Fixed by #40689
Closed

Add synthetics to the new Wolfi image of Heartbeat #40564

rdner opened this issue Aug 20, 2024 · 9 comments · Fixed by #40689
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@rdner
Copy link
Member

rdner commented Aug 20, 2024

Describe the enhancement:
At the time of adding the new Wolfi-based Docker image for Heartbeat, it didn't appear possible to install synthetics on Wolfi due to the lack of support on the Playwright's end.

We need to install Playwright dependencies in order to make it work and it did not seem to be possible on Wolfi. Perhaps there is a workaround or manual way to do so.

$NODE_PATH/node/lib/node_modules/@elastic/synthetics/node_modules/.bin/playwright install-deps chromium && \

Additionally, the fonts we install for synthetics are not available in apk on Wolfi:

fonts-noto \
fonts-noto-cjk && \

Describe a specific use case for the enhancement or feature:

Using Synthetics with Heartbeat.

Follow up to #40524

@rdner rdner added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Aug 20, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@mauri870
Copy link
Member

mauri870 commented Aug 20, 2024

Looks like noto-cjk was added to Wolfi back in February https://github.com/wolfi-dev/os/pull/12887/files. We could contribute the fonts-noto the same way.

Edit: Looking a bit more into this, the source code of the formal noto font is in https://github.com/notofonts/noto-fonts/tree/v20201206-phase3

@emilioalvap
Copy link
Collaborator

@rdner Please let us know if @elastic/obs-ds-hosted-services-synthrum can help on the migration.

@pierrehilbert
Copy link
Collaborator

Hey @emilioalvap,
FYI @rdner is in PTO.
We will indeed need your help here to solve the issue as this is not something we are familiar with.

@jlind23
Copy link
Collaborator

jlind23 commented Sep 3, 2024

@emilioalvap @graphaelli were you able to make any progress on this? This would block Beats if not resolved in time.
cc @amitkanfer

@emilioalvap
Copy link
Collaborator

@pierrehilbert @jlind23 I'm working on a PR to install synthetics on wolfi based images.
@jlind23 if you don't mind me asking, in what sense does this block beats migration to wolfi? This restriction only affects heartbeat-wolfi images afaik.

@jlind23
Copy link
Collaborator

jlind23 commented Sep 4, 2024

@emilioalvap this is the problem that prevents us from generating/building the Elastic Agent complete image.

@emilioalvap
Copy link
Collaborator

@jlind23 just to clarify, will you be replicating these changes on the elastic-agent-complete template or would you like me to create the PR for that?

@jlind23
Copy link
Collaborator

jlind23 commented Sep 5, 2024

@emilioalvap it is ok for now, @rdner will take care of the elastic-agent-complete. Thanks for your help 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants