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

Running through docker #552

Open
mpizosdim opened this issue Apr 2, 2021 · 4 comments
Open

Running through docker #552

mpizosdim opened this issue Apr 2, 2021 · 4 comments

Comments

@mpizosdim
Copy link

Hey!

Trying to install resume-cli through docker but getting some permission errors on installing resume-cli.

Dockerfile:

FROM python:3.7-slim-buster

RUN apt-get update
RUN apt-get install -y curl

SHELL ["/bin/bash", "--login", "-c"]

RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
RUN nvm install 15.13.0

RUN npm install -g resume-cli --unsafe-perm=true --allow-root
RUN npm install -g jsonresume-theme-paper

Error:

npm ERR! code 127
npm ERR! path /root/.nvm/versions/node/v15.13.0/lib/node_modules/resume-cli/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! sh: 1: node: Permission denied

btw this RUN npm install -g jsonresume-theme-paper runs normally without permission error.

Any idea how to overpass that without removing -g?

@neviaumi
Copy link

neviaumi commented Apr 4, 2021

What do you need when running on docker ? generate HTML or PDF? because your error message including puppeteer

@mpizosdim
Copy link
Author

Ideal would be both, but I can see that generating PDF is buggy(from 'issues' I can see it is well known that pdf has some issues). I used FROM node image, among with ENV RESUME_PUPPETEER_NO_SANDBOX=1 to overpass the puppeteer error. If you get any other way I would appreciate if you share here. thanks.

@neviaumi
Copy link

neviaumi commented Apr 4, 2021

Actually, if you want building PDF i really suggest you given up this tools.

I just complete auto deploy HTML and PDF when CI pass on master recently

and turn out i removed resume-cli from my repo for below reasons:
neviaumi/resume.json#26

I would suggest you try get started with docker-puppeteer if you insist.

@mpizosdim
Copy link
Author

Thanks @davidNHK , I will have a look in your solution and help my self with it 👍

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