Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
added a dockerfile that enables executing mediawiki-to-gfm via docker.
Motivation
For users like me who don't already have php, composer and pandoc installed (but have access to a machine with docker installed), it will be very useful, to run mediawiki-to-gfm via docker.
Usage
Create a new directory and put
filename.xml
into the new directory:mkdir my_wiki mv filename.xml my_wiki/ cd my_wiki
Now you can convert
filename.xml
using docker.Note: do not use the output parameter. The output will always be written into the subdirectory
output
of the current path. (hence the creation of a new directory). This is necessary, because the docker container does not have access to your filesystem except for the current directory (because of the-v $PWD:/app
parameter for docker)docker run -v $PWD:/app thawn/mediawiki-to-gfm --filename=filename.xml
Note: in
Readme.md
I did not specify a username for the docker hub. I suggest you use your own account, so that you can push new images when you release new versions. I recommend to use a github workflow to automate that.In push.sh I already specified the username outofcontrol.
I would also be fine with using my docker account for now, but I cannot promise to release updated versions quickly.