OWASP / owasp-masvs

The OWASP MASVS (Mobile Application Security Verification Standard) is the industry standard for mobile app security.
https://mas.owasp.org/
Creative Commons Attribution Share Alike 4.0 International
2.04k stars 433 forks source link

Make local build working for non macOS #535

Closed sushi2k closed 2 months ago

sushi2k commented 3 years ago

The current description of a local build only covers macOS:

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

The local build should be working for:

TheDauntless commented 3 years ago

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

cpholguera commented 2 years ago

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

cpholguera commented 2 years ago

Not working on macOS M1. I opened an issue including a solution: https://github.com/dalibo/pandocker/issues/227

cpholguera commented 2 years ago

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

cpholguera commented 2 years ago

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'