From 6cce1394c96ddf29bd8023d74b255384cfb52602 Mon Sep 17 00:00:00 2001 From: Wesley Viana Date: Mon, 15 Apr 2019 14:51:17 -0300 Subject: [PATCH] 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 https://github.com/UnitedIncome/serverless-python-requirements/issues/272 But it mey also be a interesting feature. --- lib/pip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pip.js b/lib/pip.js index 3da432af..1843e5cb 100644 --- a/lib/pip.js +++ b/lib/pip.js @@ -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`, '-v', `${process.env.HOME}/.ssh/known_hosts:/root/.ssh/known_hosts:z`, '-v',