Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

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.
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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