Skip to content

Conversation

@johnmccabe
Copy link

@johnmccabe johnmccabe commented Jan 31, 2017

This PR tidies up the build steps and sets the ownership of authorized_hosts to root:root, was inheriting the uid/gid of the user on the host OS. I've also added an uninstall recipe to the Makefile.

I've cherry picked in the fixes from the PRs raised by @netj.

This is currently working for me as expected on OSX 10.11.6 (I'll check with Sierra in the morning).

John McCabe and others added 6 commits January 31, 2017 05:38
Prior to this commit following the `make`/`make install` steps would
fail due to the `pinata-build-sshd.sh` attempting to cd to
`/usr/local/share/pinata-ssh-agent` directory before it had been created
by `make install`. This commit builds the image in the workspace
directory, removes the unused `ssh-build.sh` and tidies the Makefile
accordingly.
Prior to this commit the mapped public key to authorized hosts would
inherit the uid/gid from the OSX host, this commit sets the ownership
back to root in the container before starting sshd.
This commit adds an uninstall recipe for the scripts installed to
/usr/local/bin.

```
make uninstall
```
@johnmccabe
Copy link
Author

Thanks for the work on this @avsm, its unblocked me while waiting on docker/for-mac#483 to be resolved

@johnmccabe johnmccabe changed the title Maint/master/tidy build steps and fix permissions Tidy build steps and fix permissions Jan 31, 2017
@johnmccabe johnmccabe changed the title Tidy build steps and fix permissions Tidy build steps, fix permissions and add uninstall recipe Jan 31, 2017
@johnmccabe
Copy link
Author

Works fine on Sierra.

@johnmccabe johnmccabe changed the title Tidy build steps, fix permissions and add uninstall recipe (maint) tidy build steps, fix permissions and add uninstall recipe Feb 1, 2017
@BlinkyStitt
Copy link

BlinkyStitt commented Feb 13, 2017

I've included this and more in https://github.com/uber-common/docker-ssh-agent-forward

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