Skip to content

Update pip.js #356

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

Closed
wants to merge 2 commits into from
Closed

Conversation

wviana
Copy link

@wviana wviana commented Apr 26, 2019

Add a keyFile option, so you could replace the default keyfile for one that is not id_rds

This change was made to make possible a work arround for #272

But it may also be a interesting feature.

wviana added 2 commits April 15, 2019 14:51
Add a `keyFile` option, so you could replace the default keyfile for one that is not `id_rds`

This change was made to make possible a work arround for serverless#272 

But it mey also be a interesting feature.
@@ -194,7 +194,7 @@ function installRequirements(targetFolder, serverless, options) {
// Mount necessary ssh files to work with private repos
dockerCmd.push(
'-v',
`${process.env.HOME}/.ssh/id_rsa:/root/.ssh/id_rsa:z`,
`${process.env.HOME}/.ssh/${options.keyFile || 'id_rsa'}:/root/.ssh/id_rsa:z`,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be more flexible if keyFile was a full path to a file:

Suggested change
`${process.env.HOME}/.ssh/${options.keyFile || 'id_rsa'}:/root/.ssh/id_rsa:z`,
options.keyFile ? `${options.keyFile}:/root/.ssh/id_rsa:z`: `${process.env.HOME}/.ssh/id_rsa:/root/.ssh/id_rsa:z`,

Copy link
Author

@wviana wviana May 2, 2019

Choose a reason for hiding this comment

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

Or maybe search on absolute path. then current path, then .ssh.
What do you think?
Too much complex?

Copy link
Contributor

Choose a reason for hiding this comment

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

if you want to implement what you suggested(with test coverage 😉) I'm cool with that. Definitely more complex tho.

@bsamuel-ui
Copy link
Contributor

Hi @wviana, are you still interested in completing this PR?

@miketheman miketheman added Docker enhancement waiting-on-response If an issue goes without response for a while, close it. labels Feb 22, 2020
@wviana
Copy link
Author

wviana commented Mar 4, 2020

@bsamuel-ui hi there. Yes, cause I do change this file on my node_modules till today.
What do I have to improve to get it approved? Just increment the tests?

Here on mine I'm just changing to load the entire .ssh folder instead of choosing a file.

@pgrzesik
Copy link
Contributor

Hey @wviana - it's been a long time since this PR was proposed. I'm going to close it, if you feel like the issue is valid, please open a new issue or a new PR against the latest main branch. Thanks 🙇

@pgrzesik pgrzesik closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docker enhancement waiting-on-response If an issue goes without response for a while, close it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants