mikepqr / resume.md

Write your resume in Markdown, style it with CSS, output to HTML and PDF
MIT License
569 stars 229 forks source link

add --no-sandbox parameter to Chromium #32

Closed oupala closed 2 years ago

mikepqr commented 2 years ago

Why? Please write a meaningful commit message.

oupala commented 2 years ago

When running resume.md with GitLab CI, the process is running inside a container, and hence Chromium require a specific configuration in order to run as a headless browser. The process is also often running as root and this has a specific issue:

# python3 resume.py
Wrote /lab/resume.html
Found Chrome or Chromium at /usr/bin/google-chrome
[0715/191521.895591:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

It is hence a common workaround to run Chromium with --no-sandbox.

mikepqr commented 2 years ago

Fair enough! Please say that in the commit message and I'll be happy to land this,

oupala commented 2 years ago

I've edited the commit message. I have not found how to do this using GitHub web interface, I had to use my terminal...

mikepqr commented 2 years ago

Thanks!