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

[WIP] Dockerize to streamline setup #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Andr3wHur5t
Copy link

@Andr3wHur5t Andr3wHur5t commented Oct 28, 2017

Ref #19

  • Dockerize application and dependencies
  • Make application accessible via HTTP(S)
  • Add setup instructions in readme

@thibmaek
Copy link

thibmaek commented Nov 7, 2017

Doesn't this need to be setup_8x instead of node v6?

@chrisachard
Copy link
Collaborator

There was a change made that used babel to make it work with v6, but that may actually not be working quite right. If it's not working, then yes - v8+ is needed.

@thibmaek
Copy link

thibmaek commented Nov 7, 2017

After creating a container from this and setting up the token for the juypter notebook I can't seem to start the cli-tool:

docker build -t sketch-to-rn:local .
docker run sketch-to-rn:local --name sketch-to-rn
docker exec sketch-to-rn sketch-to-react-native examples/Log\ In\ Page.svg

outputs:

gathering elements...
Error: Failed to launch chrome!
/notebooks/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

    at Interface.onClose (/notebooks/node_modules/puppeteer/lib/Launcher.js:142:14)
    at emitNone (events.js:111:20)
    at Interface.emit (events.js:208:7)
    at Interface.close (readline.js:370:8)
    at Socket.onend (readline.js:149:10)
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

@Andr3wHur5t
Copy link
Author

Sorry for lag on this; have been swamped at work.

Yah, was going to upgrade to v8; my local env was running this under v6 so I was tying to work from a known configuration before I diverge.

Think we just need to apt-get install chromium to fix that error.

@waltim
Copy link

waltim commented Nov 7, 2019

Good evening, i installed "apt-get install chromium-browser -y" but i recived this:

Error: Failed to launch chrome!
/notebooks/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

at Interface.onClose (/notebooks/node_modules/puppeteer/lib/Launcher.js:142:14)
at emitNone (events.js:111:20)
at Interface.emit (events.js:208:7)
at Interface.close (readline.js:370:8)
at Socket.onend (readline.js:149:10)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

can you help me?

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

Successfully merging this pull request may close these issues.

4 participants