faressoft / terminalizer

🦄 Record your terminal and generate animated gif images or share a web player
https://terminalizer.com
MIT License
15.31k stars 498 forks source link

Dockerfile #230

Open jesseduffield opened 1 year ago

jesseduffield commented 1 year ago

Could you provide a docker file that can be used to render a recording? I've been trying for a while to get one working myself but have had no luck, currently failing with the current error:

[render] [256:0731/054305.187553:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[render] [256:0731/054305.392112:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[256:0731/054305.392296:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[render] [256:0731/054305.397091:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[256:0731/054305.398598:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[render] [256:0731/054305.430330:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[render] [281:0731/054305.498103:ERROR:gl_surface_egl.cc(320)] No suitable EGL configs found.
[render] [281:0731/054305.498414:ERROR:gl_context_egl.cc(140)] eglGetConfigAttrib failed with error EGL_BAD_CONFIG
[render] [281:0731/054305.498950:ERROR:gl_surface_egl.cc(320)] No suitable EGL configs found.
[render] [281:0731/054305.499131:ERROR:gl_surface_egl.cc(1090)] eglCreatePbufferSurface failed with error EGL_BAD_CONFIG
[render] [281:0731/054305.499321:ERROR:gpu_info_collector.cc(81)] gl::GLContext::CreateOffscreenGLSurface failed
[281:0731/054305.499810:ERROR:gpu_info_collector.cc(397)] Could not create surface for info collection.
[render] [281:0731/054305.499883:ERROR:gpu_init.cc(88)] CollectGraphicsInfo failed.
[render] [281:0731/054305.503090:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[render] [291:0731/054305.548594:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[render] Error occurred in handler for 'capturePage': Error: ENOTDIR: not a directory, open '/usr/local/lib/node_modules/terminalizer/render/index.js/0.png'
    at Object.openSync (node:fs:601:3)
    at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:1822)
    at Object.writeFileSync (node:fs:2249:35)
    at /usr/local/lib/node_modules/terminalizer/render/index.js:78:6
    at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:88876) {
  errno: -20,
  syscall: 'open',
  code: 'ENOTDIR',
  path: '/usr/local/lib/node_modules/terminalizer/render/index.js/0.png'
}