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

Remove --no-sandbox from Docker example #838

Merged
merged 2 commits into from Sep 21, 2017
Merged

Remove --no-sandbox from Docker example #838

merged 2 commits into from Sep 21, 2017

Conversation

ebidel
Copy link
Contributor

@ebidel ebidel commented Sep 20, 2017

part of #809


# Uncomment to skip the chromium download when installing puppeteer. If you do,
# you'll need to launch puppeteer with:
# browser.launch({executablePath: 'google-chrome-unstable'})
# ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Install puppeteer so it can be required by user code that gets ran in server.js.
# Install puppeteer so it's available in the container.
RUN yarn add puppeteer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be yarn global add puppeteer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't need to be right? node_modules/puppeteer will be installed in the root of the container and that will be resolvable by user code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not from what I'm seeing in the resolution docs. It says it will look in the global install space folder if not found. In this case that install space is /opt/yarn which means it will look in /opt/yarn/lib/node_modules. Which it would only get there with yarn global add puppeteer.

I'm not seeing any mention of checking simply in the root file-system space for a module folder. Could be missing it though or these could not be the full chain instructions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added chown -R pptruser:pptruser /node_modules works

@ebidel ebidel merged commit c2b3fe9 into master Sep 21, 2017
@ebidel ebidel deleted the ebidel-patch-2 branch September 21, 2017 16:18
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.

None yet

3 participants