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

Fixing "pandoc: sh: openBinaryFile: does not exist (No such file or directory)" error #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

surenrao
Copy link

@surenrao surenrao commented Jun 1, 2021

as of today, pandoc/latex image is using version 2.6 and casing error "pandoc: sh: openBinaryFile: does not exist (No such file or directory)" this is due to changes made to entrypoint.
The fixes makes the image work again

surenrao added 4 commits May 31, 2021 22:51
Dockerfile now has new ENTRYPOINT ["/bin/sh", "-c"]
So no need of it here
CMD sh was causing "pandoc: sh: openBinaryFile: does not exist (No such file or directory)" error.
also using version 2.6 for pandoc which is latest as of now and this config works for this image
fixed [WARNING] Deprecated: markdown_github. Use gfm instead.
@dpolivaev
Copy link

Thanks for valuable fix, I hope it get merged soon

@bburns
Copy link

bburns commented Sep 9, 2021

For anyone wondering how to do this,

Install gh from https://cli.github.com

Clone this repo

git clone https://github.com/realrubberduckdev/mediawiki-to-markdown
cd mediawiki-to-markdown

Login

gh auth login

Checkout this pr

gh pr checkout 2

Build the docker image

docker build -t mw2md .

Make input and output folders

mkdir input output

Put your xml file in input folder

mv all.xml input

Convert your xml file to markdown files in the 'output' folder

docker run -v `pwd`/output/:/src/output -v `pwd`/input:/src/input mw2md "php convert.php --filename=input/all.xml --output=./output"

The original article is at https://www.rubberduckdev.com/mediawiki-to-md/

@gwarf
Copy link

gwarf commented Sep 10, 2021

docker run -v `pwd`/output/:/src/output -v `pwd`:/src/input mw2md "php convert.php --filename=input/all.xml --output=./output"

Thanks that works great, just add to adapt the input volume like this:

docker run -v `pwd`/output/:/src/output -v `pwd`/input:/src/input mw2md "php convert.php --filename=input/all.xml --output=./output"

@bburns
Copy link

bburns commented Sep 10, 2021

Thanks that works great, just add to adapt the input volume like this:

Ah, missed that - updated

@NotFazed
Copy link

Followed the instructions, now get

=> [2/7] RUN apk --update add wget curl git php7 php7-curl php7-openssl 5.0s
=> [3/7] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer 1.1s
=> [4/7] WORKDIR /src 0.0s
=> [5/7] COPY composer.* ./ 0.0s
=> ERROR [6/7] RUN composer install 0.3s

[6/7] RUN composer install:
philipashlock#10 0.323 Composer could not find a composer.json file in /src
philipashlock#10 0.323 To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage


executor failed running [/bin/sh -c composer install]: exit code: 1

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.

5 participants