jamro / jsbattle

JavaScript Programming Game (inspired by RoboCode)
http://jsbattle.jmrlab.com
MIT License
105 stars 47 forks source link

Can'r run in docker? #33

Closed chrischao-chn closed 3 years ago

chrischao-chn commented 3 years ago

Tryied different way to dockrize jsbattle server, seems always crash at following place:

image

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.

jamro commented 3 years ago

can you attach your Dockerfile and config of JsBattle?

chrischao-chn commented 3 years ago

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.

leansoler commented 2 years ago

Would be great @chris-xstem if you can share the solution

aprice-dmi commented 2 years ago

Hi @chris-xstem, I have the exact same issue, how do you solve it?

fiquarato commented 2 years ago

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 :)