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

add instructions to run in linux #451

Open
bjrmatos opened this issue Jan 14, 2017 · 1 comment
Open

add instructions to run in linux #451

bjrmatos opened this issue Jan 14, 2017 · 1 comment

Comments

@bjrmatos
Copy link
Owner

based on this comment

@pofider
Copy link
Collaborator

pofider commented Jan 14, 2017

You can check the jsreport official docker file which have this working.

These packages are required for electron on ubuntu and same on node debian based images
libgtk2.0-dev libxtst-dev libxss1 libgconf2-dev libnss3-dev libasound2-dev xvfb

Note that if you restart docker container, the xvfb fails to start. That is why there is trick with removing /tmp/.X99-lock file. This took me hours to find out, but now it seems to be working nice.

echo Trying to remove the lock on displat 99
rm /tmp/.X99-lock > /dev/null 2>&1

echo Running display 99
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

echo Starting node.js
export DISPLAY=:99 && node "/usr/src/app/server.js"

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

No branches or pull requests

2 participants