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

Make local build working for non macOS #535

Open
2 of 4 tasks
sushi2k opened this issue May 13, 2021 · 5 comments · Fixed by #584
Open
2 of 4 tasks

Make local build working for non macOS #535

sushi2k opened this issue May 13, 2021 · 5 comments · Fixed by #584

Comments

@sushi2k
Copy link
Collaborator

sushi2k commented May 13, 2021

The current description of a local build only covers macOS:

#531
https://github.com/OWASP/owasp-masvs#create-new-pdf-epub-mobi-and-word-document

The local build should be working for:

  • macOS
  • macOS M1
  • Linux
  • Windows
@TheDauntless
Copy link
Collaborator

TheDauntless commented May 13, 2021

Extended for Linux, windows will probably be a bit more work.

@cpholguera
Copy link
Collaborator

We should try tu run sed in the docker container so that the script can be run anywhere.

@cpholguera
Copy link
Collaborator

Not working on macOS M1. I opened an issue including a solution: dalibo/pandocker#227

@cpholguera
Copy link
Collaborator

It should work on Windows thanks to #584, could you please test it @sushi2k / @TheDauntless ?

@cpholguera
Copy link
Collaborator

cpholguera commented Dec 11, 2021

Testing local M1 build:

PANDOCKER="docker run --rm --volume `pwd`:/pandoc dalibo/pandocker:buster-latest ${PANDOC_PARAMS}"

# remove the HTML comment from \pagebreak
docker run --rm --entrypoint '/bin/sh' --volume `pwd`:/pandoc dalibo/pandocker:buster-latest -c 'sed -i "s#<!-- \(.*\) -->#\1#g" Document/*.md'

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 a pull request may close this issue.

3 participants