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

docker image on linux still has permissions issues #360

Closed
jlevon opened this issue Jul 2, 2021 · 5 comments · Fixed by #379
Closed

docker image on linux still has permissions issues #360

jlevon opened this issue Jul 2, 2021 · 5 comments · Fixed by #379
Labels
bug Something isn't working

Comments

@jlevon
Copy link
Contributor

jlevon commented Jul 2, 2021

Version of Marp Tool

latest marp-cli docker image

Operating System

Linux

Environment

Running docker on Ubuntu

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.2 LTS
Release:	20.04
Codename:	focal

How to reproduce

$ docker run --rm --init -v $PWD:/home/marp/app/ -e MARP_USER="$(id -u):$(id -g)" -e LANG=$LANG marpteam/marp-cli --pdf --allow-local-files -o ioregionfd.pdf ioregionfd.md
[  INFO ] Converting 1 markdown...
[  WARN ] Insecure local file accessing is enabled for conversion from
          ioregionfd.md.
[ ERROR ] Failed converting Markdown. (EACCES: permission denied, open
          '/tmp-7-DArfLrvtsb2d-.html')

There's no mention of this issue on the hub page.

Expected behavior

I can follow the instructions and build OK.

Actual behavior

EACCES on writing to / inside the container

Additional information

No response

@jlevon jlevon added the bug Something isn't working label Jul 2, 2021
@yhatt
Copy link
Member

yhatt commented Jul 2, 2021

It probably a permission trouble for writing intermediate HTML file. What would happen if run without --allow-local-files? (It will convert Marp slide without file system)

CC: @davebaird (#334)

@yhatt yhatt added the help wanted Extra attention is needed label Jul 2, 2021
@jlevon
Copy link
Contributor Author

jlevon commented Jul 2, 2021

You're right, it works without that, thanks. Is there a way to not use that flag, but still include images (for example)

@yhatt
Copy link
Member

yhatt commented Jul 2, 2021

You still can use online images, just like ![](https://example.com/xxxxxx.jpg).

@jlevon
Copy link
Contributor Author

jlevon commented Jul 2, 2021

Thanks, but that's an issue for content that needs to be behind a VPN etc.

@yhatt
Copy link
Member

yhatt commented Aug 18, 2021

Fixed by #379.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants