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

[sup] Set appropriate PATH for sh & bash subcommands. #531

Merged
merged 1 commit into from
May 18, 2016

Conversation

fnichol
Copy link
Collaborator

@fnichol fnichol commented May 17, 2016

This change re-introduces the bash subcommand which was mistakenly
removed (sorry y'all) and also sets an appropriate PATH environment
variable.

The logic is similar to the path-setting logic of the start subcommand
except in this case, there is no Supervisor or service to have on path.
Instead, we determine a suitable Busybox path and append any PATH
entries at the end. This should make the Docker-wrapped services more
ergonomic when using docker exec or similar tricks.

gif-keyboard-8611699104379787096

This change re-introduces the `bash` subcommand which was mistakenly
removed (sorry y'all) and also sets an appropriate `PATH` environment
variable.

The logic is similar to the path-setting logic of the `start` subcommand
except in this case, there is no Supervisor or service to have on path.
Instead, we determine a suitable Busybox path and append any `PATH`
entries at the end. This should make the Docker-wrapped services more
ergonomic when using `docker exec` or similar tricks.

Signed-off-by: Fletcher Nichol <[email protected]>
@smith
Copy link
Contributor

smith commented May 18, 2016

Looks great!

tumblr_n5u6aoiakr1qz7lxdo1_500

@thesentinels r+

@thesentinels
Copy link
Contributor

📌 Commit 57a559b has been approved by smith

@thesentinels
Copy link
Contributor

⌛ Testing commit 57a559b with merge 59beaa5...

thesentinels pushed a commit that referenced this pull request May 18, 2016
This change re-introduces the `bash` subcommand which was mistakenly
removed (sorry y'all) and also sets an appropriate `PATH` environment
variable.

The logic is similar to the path-setting logic of the `start` subcommand
except in this case, there is no Supervisor or service to have on path.
Instead, we determine a suitable Busybox path and append any `PATH`
entries at the end. This should make the Docker-wrapped services more
ergonomic when using `docker exec` or similar tricks.

Signed-off-by: Fletcher Nichol <[email protected]>

Pull request: #531
Approved by: smith
@thesentinels
Copy link
Contributor

☀️ Test successful - travis

@thesentinels thesentinels merged commit 57a559b into master May 18, 2016
@fnichol fnichol deleted the fnichol/sup-bash-subcommand branch May 18, 2016 03:06
jtimberman pushed a commit that referenced this pull request Jun 12, 2016
This change re-introduces the `bash` subcommand which was mistakenly
removed (sorry y'all) and also sets an appropriate `PATH` environment
variable.

The logic is similar to the path-setting logic of the `start` subcommand
except in this case, there is no Supervisor or service to have on path.
Instead, we determine a suitable Busybox path and append any `PATH`
entries at the end. This should make the Docker-wrapped services more
ergonomic when using `docker exec` or similar tricks.

Signed-off-by: Fletcher Nichol <[email protected]>

Pull request: #531
Approved by: smith
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.

3 participants