8000 Clarify Mac OS X experience. Signed-off by: Mary Anthony (moxieandmore@g... by moxiegirl · Pull Request #9657 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Clarify Mac OS X experience. Signed-off by: Mary Anthony (moxieandmore@g... #9657

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

Merged
merged 4 commits into from
Dec 19, 2014
Merged

Conversation

moxiegirl
Copy link
Contributor

...mail.com)

Newb here just running through the process for setting up dev environment and contributing. In the process, I saw a chance to clarify some make instructions.

  • Took out the unnecessary future tense. (Readers use technical documents to perform tasks or gather information. For readers, these activities take place in the present. Therefore, the present tense is appropriate in most cases. -- Read Me First, A Style Guide for the Computer Industry)
  • Put the Mac OS X command line closer to the "Linux standard" example -- was a bit buried in the note
  • Clarified the note -- I think this is Docker-specific not make targets in general
  • Added the bit about running this in the boot2docker shell just cause I skimmed past the phrase at the top about the containerized make. When I ran the make from a standard terminal the error was not exactly "run this build in a container dummy" so it took me a moment to suss out.

@thaJeztah
Copy link
Member

@moxiegirl it think your sign-off is not in the right format. Needs to be on a separate line, Signed-off by -> Signed-off-by and () need to be <> (see: https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work).

Perhaps you can amend your last commit and force-push, that should update the PR. Thanks!

@moxiegirl
Copy link
Contributor Author

Hi, thanks, I amended the commit message.

@thaJeztah
Copy link
Member

Hm. Automated test is still failing, please check the link for the right format, it has to be exactly like that, otherwise it is refused. Sorry for the hassle, but this will make it easier for the maintainers to review and merge your changes. :)

Signed-off-by: Mary Anthony <moxieandmore@gmail.com>
@moxiegirl
Copy link
Contributor Author

For the want of a hyphen and two stinking parens! Hopefully it is sorted now.

@thaJeztah
Copy link
Member

\o/ all green! Thanks!

@SvenDowideit
Copy link
Contributor

LGTM - @fredlf @jamtur01

This following command will build a development environment using the
Dockerfile in the current directory. Essentially, it will install all
This following command builds a development environment using the
Dockerfile in the current directory. Essentially, it installs all
Copy link
Contributor

Choose a reason for hiding this comment

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

Dockerfile

@SvenDowideit
Copy link
Contributor

hey @moxiegirl would you like to make the requested changes to this PR, or would you like me to carry it?

@SvenDowideit SvenDowideit self-assigned this Dec 16, 2014
Signed-off-by: Mary Anthony <moxieandmore@gmail.com>
Signed-off-by: Mary Anthony <moxieandmore@gmail.com>
@moxiegirl
Copy link
Contributor Author

No worries. Updated per PR comments.


> **Note**:
> On Mac OS X, **do not** build Docker make targets such as `build`, `binary`, and `test`
> under root using the `sudo` command.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's clarify the relationships a little more:
On Mac OS X, Docker make targets such as build, binary, and test should not be built under root. Therefore, you shouldn't use sudo when running these commands on OS X.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fred, I actually find the use of "root" ambiguous in the original text. Can you clarify this for me? By root was it meant the root directory or the root user?

In my rewrite, I assumed the meaning was the "root" user because 1) isn't that the purpose of sudo in this case and 2) the make command as it appears in the example could only be run in the root directory where the makefile is located (if I recall correctly; I'm not at my desk to test).

The way the note reads to me now is "do not build in the root of the Docker repo" and "do not use sudo" -- is that the correct interpretation? Maybe the preposition "under" is the issue:

On Mac OS X, Docker make targets such as build, binary, and test should not be built as root. Therefore, you shouldn't use sudo when running these commands on OS X.

Copy link
Contributor

Choose a reason for hiding this comment

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

I had assumed "root" meant "with root user privileges", but now I'm not sure about that assumption. Some testing would reveal the correct interpretation. Asking @SvenDowideit to weigh in might help too.

Copy link
Contributor

Choose a reason for hiding this comment

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

it means to say, don't use sudo - and shouldn't imply anything wrt the path.

@fredlf
Copy link
Contributor
fredlf commented Dec 17, 2014

Not sure why tests are still failing. @SvenDowideit ? Also, you need to squash commits.

Good changes otherwise. We should add the stuff about present tense to the style guide.

Made one suggestion to clarify use of sudo better, otherwise LGTM.

Thanks for the contribution.

@jamtur01
Copy link
Contributor

The last commit lacks a sign-off which is why the fail.

Signed-off-by: Mary Anthony <moxieandmore@gmail.com>
@SvenDowideit
Copy link
Contributor

LGTM - @jamtur01 ?

jamtur01 added a commit that referenced this pull request Dec 19, 2014
Clarify Mac OS X experience. Signed-off by: Mary Anthony (moxieandmore@g...
@jamtur01 jamtur01 merged commit 3e3749f into moby:master Dec 19, 2014
SvenDowideit pushed a commit to SvenDowideit/docker that referenced this pull request Dec 19, 2014
Clarify Mac OS X experience. Signed-off by: Mary Anthony (moxieandmore@g...
(cherry picked from commit 3e3749f)

Signed-off-by: Sven Dowideit <SvenDowideit@docker.com>

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
@moxiegirl
Copy link
Contributor Author

Woot! Thanks gents.

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
0