Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

New ssh permissions strategy. #1104

Merged
merged 2 commits into from
Jun 12, 2018
Merged

New ssh permissions strategy. #1104

merged 2 commits into from
Jun 12, 2018

Conversation

davidrkupton
Copy link
Contributor

Fixes [insert bug/issue number]

Adhoc Development Changes

Changes proposed in this pull request:

  • mounts local .ssh folder and then copies files to remote .ssh folder.

Add @mentions of the person or team responsible for reviewing proposed changes

@jimafisk @finneganh

@@ -23,6 +23,9 @@ do
ln -s "/host-repo/${p}" "./${p}"
done

# Uncomment next line to copy files in mounted ssh folder from host into container to ensure root:root permissions.
# cp -rfu ~/host-ssh/ ~/.ssh/
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn’t this happen automatically by the build:local steps below?

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. It gets done in the local:sync just before each time we sync the database. But if we don't want it to run each time we sync, then the best place to do it is here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Remember that if you’re running this script, the build:local commands below will completely reset your database, destroying anything that was synced in.

If you want to run this separately from ./task.sh commands I’d recommend either noting it as a one-liner in README.md that you can run after bashing in, or add it to the doit script like some of the logging commands.

@fionawhim
Copy link
Contributor

Approved!

@davidrkupton davidrkupton merged commit 77078a9 into develop Jun 12, 2018
@davidrkupton davidrkupton deleted the ssh-in-container branch June 12, 2018 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants