Skip to content

Commit 519a096

Browse files
authored
Added python3.7 installation
Merged from develop branch
2 parents 8c0b4ed + 15cf97b commit 519a096

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ async function updateUbuntu() {
1818
)
1919
}
2020

21+
// Installs python3.7
22+
async function installPython() {
23+
await exeq(
24+
'echo Installing python3...',
25+
'sudo apt-get install software-properties-common -y',
26+
'sudo add-apt-repository ppa:deadsnakes/ppa -y',
27+
'sudo apt-get install python3.7 -y',
28+
'sudo python --version'
29+
)
30+
}
31+
2132
// Reinstalls Docker on Ubuntu
2233
async function installDocker() {
2334
await exeq(
@@ -63,6 +74,7 @@ async function handler() {
6374
await installDocker()
6475
await installServerlessAndPlugins()
6576
// var setCredentials = await setServerlessCredentials()
77+
await installPython()
6678
await runServerlessDeploy()
6779
}
6880

0 commit comments

Comments
 (0)