terminal_markdown_viewer
terminal_markdown_viewer copied to clipboard
Docker
Add reference to docker image https://hub.docker.com/r/rawkode/mdv/
I've been using mdv with docker and it works wonders (as suggested by @rawkode within his autobuild README.md).
function mdv() {
docker run --rm -v $PWD:/sandbox -w /sandbox -it rawkode/mdv:latest $@
}
This should be part of documentation. I prefer this to installing from AUR (tried and failed) and to installing with pip on bare metal (pip never works ok with pacman). With Docker it's just clean and easy.
Cross-post from another issue, but I think this is more appropriate.
I installed docker and am using it with Cygwin. I created my mdvDocker script as below. Had to add winpty (https://github.com/zeit/hyper/issues/2888)
#!/bin/bash
winpty docker run --rm -v $PWD:/sandbox -w /sandbox -it rawkode/mdv:latest $@
No matter what file path I give it, docker cannot find it..
$ mdvDocker.sh README.md
Traceback (most recent call last):
File "/usr/local/bin/mdv", line 11, in <module>
sys.exit(run())
File "/usr/local/lib/python2.7/site-packages/mdv/markdownviewer.py", line 1351, in run
print(str(run_args(args)))
File "/usr/local/lib/python2.7/site-packages/mdv/markdownviewer.py", line 1309, in run_args
tab_length = args.get('-b', 4))
File "/usr/local/lib/python2.7/site-packages/mdv/markdownviewer.py", line 997, in main
with open(filename) as f:
IOError: [Errno 2] No such file or directory: 'README.md'
@robertmarkbram Windows is usually a pain with a lot of software. Try running GNU/Linux.
Added hint to this issue in readme.