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

JBR-6639 Docker images for JBR/JCEF testing #284

Merged
merged 7 commits into from
Apr 3, 2024
Merged

Conversation

vprovodin
Copy link
Collaborator

No description provided.

@vprovodin vprovodin requested review from artemm-bochkarev and ujpv and removed request for ujpv February 2, 2024 08:32
@vprovodin
Copy link
Collaborator Author

vprovodin commented Feb 2, 2024

Images on github:

  • jetbrains/runtime:jbrTest_ubuntu22.04-arm64v8
  • jetbrains/runtime:jbrTest_ubuntu20.04-arm64v8
  • jetbrains/runtime:jbrTest_ubuntu20.04-amd64
  • jetbrains/runtime:jbrTest_ubuntu22.04-amd64

# Install the necessary build tools
RUN apt-get update -y; \
apt-get install -y \
fontconfig \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installing packages without specifying concrete versions will make this image less reproducible over time.
This may be acceptable for a test image, though; your call.

jb/project/docker/Dockerfile-xvfb Outdated Show resolved Hide resolved
@artemm-bochkarev
Copy link
Contributor

Next packets are necessary to run cef on ubuntu20.04 (arm64):
apt install libnss3
apt install libatk-bridge2.0-0
apt install libgbm1
apt install libxkbcommon0
apt install libasound2

After installing all of them CEF still doesn't starts because of missing DISPLAY. Log:

./cefsimple --url=google.com --no-sandbox --enable-logging=stderr --v=2 --password-store=basic
[0213/101650.989811:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
[0213/101651.009944:VERBOSE1:cdm_registration.cc(208)] Widevine enabled but no library found
[0213/101651.009946:VERBOSE1:cdm_registration.cc(208)] Widevine enabled but no library found
[0213/101651.010414:INFO:cpu_info.cc(53)] Available number of cores: 4
[0213/101651.010414:INFO:cpu_info.cc(53)] Available number of cores: 4
[0213/101651.011366:VERBOSE1:zygote_main_linux.cc(201)] ZygoteMain: initializing 0 fork delegates
[0213/101651.011368:VERBOSE1:zygote_main_linux.cc(201)] ZygoteMain: initializing 0 fork delegates
[0213/101651.018350:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[0213/101651.077687:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
[0213/101651.077717:ERROR:env.cc(257)] The platform failed to initialize. Exiting.
[0213/101651.077770:ERROR:main_runner.cc(259)] ContentMainRun failed with exit code 1

Investigation in progress.

@vprovodin
Copy link
Collaborator Author

vprovodin commented Feb 15, 2024

./cefsimple --url=google.com --no-sandbox --enable-logging=stderr --v=2 --password-store=basic

Where can I find cefsimple ?

As for packages required for CEF: they were added, docker images were updated on github

@ujpv
Copy link
Collaborator

ujpv commented Feb 15, 2024

./cefsimple --url=google.com --no-sandbox --enable-logging=stderr --v=2 --password-store=basic

Where can I find cefsimple ?

As for packages required for CEF: they were added, docker images were updated on github

It's a native demo app for CEF. Basically it's a very simple browser. It's a window app. It's distributed as part of the Standard Distribution.
https://cef-builds.spotifycdn.com/index.html#linux64

E.g. current CEF distribution:
https://cef-builds.spotifycdn.com/cef_binary_119.4.7%2Bg55e15c8%2Bchromium-119.0.6045.199_linux64.tar.bz2.

Inside there is a cmake project. cefsimple - is one of the targets in this project.

@vprovodin vprovodin merged commit bb3e626 into main Apr 3, 2024
23 checks passed
@vprovodin vprovodin deleted the main_JBR-6639 branch April 3, 2024 22:45
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.

None yet

4 participants