terminal_markdown_viewer icon indicating copy to clipboard operation
terminal_markdown_viewer copied to clipboard

Docker

Open vtrbtf opened this issue 6 years ago • 3 comments

Add reference to docker image https://hub.docker.com/r/rawkode/mdv/

vtrbtf avatar May 05 '18 12:05 vtrbtf

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.

g00nix avatar Feb 04 '19 13:02 g00nix

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 avatar Mar 13 '19 23:03 robertmarkbram

@robertmarkbram Windows is usually a pain with a lot of software. Try running GNU/Linux.

g00nix avatar Mar 14 '19 08:03 g00nix

Added hint to this issue in readme.

axgkl avatar Oct 02 '23 22:10 axgkl