-
Notifications
You must be signed in to change notification settings - Fork 315
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
Revised tutorial setup steps #869
Conversation
By analyzing the blame information on this pull request, we identified @smith and @cwebberOps to be potential reviewers |
|
||
export PATH=$PATH:~/bin | ||
|
||
To keep from typing this in for every terminal window you use, add the above statement to your shell profile. | ||
|
||
4. Open a terminal window and run `hab setup`. If your host machine is running Linux, the `hab` CLI must run as root, so we suggest running it as root through the `sudo` command. | ||
3. On Mac OS X, run `hab setup`. If your host machine is running Linux, we suggest running `sudo hab setup`. The `hab` CLI must run as root to place your [origin keys](/docs/concepts-keys#origin-keys) in the default location for the studio to use them (`/hab/cache/keys`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is sudo hab setup
necessary? hab
won't use preferences stored in $HOME/.hab
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's because when we call sudo hab studio enter
, the keys are expected to be in /hab/cache/keys
not $HOME/.hab/cache/keys
. I guess we could override with an env var to look there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It's best to minimize the scope of what needs sudo
. Basically anything short of package building does not need sudo
. If users want to re-use the keys they generated as their regular user, they can set HAB_CACHE_KEY_PATH
before entering the studio.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's an issue with getting keys imported from an overridden HAB_CACHE_KEY_PATH into the interactive studio. The only way I could get things to work was to have the keys in /hab/cache/keys
on my Linux machine.
Signed-off-by: David Wrede <[email protected]>
7b90642
to
ba284c5
Compare
📌 Commit ba284c5 has been approved by |
@thesentinels retry |
Signed-off-by: David Wrede <[email protected]> Pull request: #869 Approved by: smith
@thesentinels force |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit ba284c5 has been approved by |
@thesentinels retry |
@thesentinels clean |
@thesentinels retry |
sudo hab subcommand
in tutorial.Signed-off-by: David Wrede [email protected]