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

Simplest support of Windows with Docker #5

Closed
wants to merge 5 commits into from

Conversation

igrep
Copy link
Contributor

@igrep igrep commented Apr 26, 2017

May fix #1
But there're still problems:

  • Requires cygpath (tool to convert Windows path into the POSIX one)
  • Can't handle multiple arguments and options. (Is that really necessary for this tool?)

Tried with: Docker Toolbox v17.04.0ce

The combination of docker and MSYS2 doesn't seem to convert Windows path properly

Converting the path explicitly with cygpath worked

Tried with Docker version 17.04.0-ce, build 4845c56
@maoe
Copy link
Owner

maoe commented Apr 27, 2017

Thanks for your contribution! Could you extend the README to show how to use it?

Copy link
Owner

@maoe maoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've commented a few places.

README.md Outdated
$ cd viewprof/docker
$ docker-machine start
$ docker build -t viewprof .
$ .\viewprof.bat path/to/file.prof
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Windows accept forward slash delimiters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, actually whichever will do.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good to know.

README.md Outdated

#### How to install and launch

```bash
Copy link
Owner

@maoe maoe May 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use bat or something instead? Or is it actually bash?

README.md Outdated
#### How to install and launch

```bash
$ git clone git@github.com:maoe/viewprof.git
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please drop the $-signs to make the instructions copy-paste friendly.

README.md Outdated
@@ -17,12 +17,31 @@ It has three display modes:

## Installation

Note: Currently viewprof doesn't support Windows because the underlying library (vty) doesn't support it yet. See [#1](https://github.com/maoe/viewprof/issues/1).
For Windows users, see below.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's drop this sentence. The following instruction is short.

Copy link
Owner

@maoe maoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@maoe
Copy link
Owner

maoe commented May 8, 2017

Squashed last three commits and merged into feature/docker.

@maoe maoe closed this May 8, 2017
@igrep igrep deleted the feature/docker branch May 8, 2017 01:51
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.

None yet

2 participants