Closed chrischao-chn closed 3 years ago
can you attach your Dockerfile and config of JsBattle?
Hi, Jamro,
Thanks for the attention.
I have it fixed.
--
Chris
From: Krzysztof Jamroz notifications@github.com Reply-To: jamro/jsbattle reply@reply.github.com Date: Sunday, February 14, 2021 at 2:15 AM To: jamro/jsbattle jsbattle@noreply.github.com Cc: chris-xstem chris.chen@cocode.cn, Author author@noreply.github.com Subject: Re: [jamro/jsbattle] Can'r run in docker? (#33)
can you attach your Dockerfile and config of JsBattle?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Would be great @chris-xstem if you can share the solution
Hi @chris-xstem, I have the exact same issue, how do you solve it?
JSBattle uses Puppeteer (Headless Chromium https://github.com/GoogleChrome/puppeteer) to play battles on the server-side.
I had the same problems when I tried to dockerize my application. But finally following these recommendations I could fix it: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix
But I think will be great if @jamro could add a Dockerfile in the documentation :)
Tryied different way to dockrize jsbattle server, seems always crash at following place:
is there special setting or config we shall be aware of, to make it running in docker?
BTW, we have fixed the --no-sandbox issue.