Skip to content

Commit 6cce139

Browse files
authored
Update pip.js
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.
1 parent 1c14588 commit 6cce139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function installRequirements(targetFolder, serverless, options) {
194194
// Mount necessary ssh files to work with private repos
195195
dockerCmd.push(
196196
'-v',
197-
`${process.env.HOME}/.ssh/id_rsa:/root/.ssh/id_rsa:z`,
197+
`${process.env.HOME}/.ssh/${options.keyFile || 'id_rsa'}:/root/.ssh/id_rsa:z`,
198198
'-v',
199199
`${process.env.HOME}/.ssh/known_hosts:/root/.ssh/known_hosts:z`,
200200
'-v',

0 commit comments

Comments
 (0)