From beb51912ce0bc815ec21d029faa09971939e7510 Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Wed, 18 May 2022 15:22:11 -0500 Subject: [PATCH] Pin v0.38 install script to compatible package versions Specify versions of each mixin and plugin to install so that it's compatible with porter v0.38. I'm still using the same tag for both porter and exec since they move in lockstep. Before we cut a v1.0.0 release of porter we need to update this script to replace latest with the last stable version of v0.38 Signed-off-by: Carolyn Van Slyck --- scripts/install/install-linux.sh | 21 ++++++++++----------- scripts/install/install-mac.sh | 20 ++++++++++---------- scripts/install/install-windows.ps1 | 20 ++++++++++---------- 3 files changed, 30 insertions(+), 31 deletions(-) diff --git a/scripts/install/install-linux.sh b/scripts/install/install-linux.sh index 67cda4486..1b3616560 100755 --- a/scripts/install/install-linux.sh +++ b/scripts/install/install-linux.sh @@ -6,12 +6,11 @@ set -euo pipefail # PORTER_MIRROR: Base URL where Porter assets, such as binaries and atom feeds, are downloaded. This lets you # setup an internal mirror. # PORTER_PERMALINK: The version of Porter to install, such as vX.Y.Z, latest or canary. -# PKG_PERMALINK: The version of mixins and plugins to install, such as latest or canary. +# PKG_PERMALINK: DEPRECATED. Plugin and mixin versions are pinned to versions compatible with the v0.38 stable release export PORTER_HOME=${PORTER_HOME:-~/.porter} export PORTER_MIRROR=${PORTER_MIRROR:-https://cdn.porter.sh} PORTER_PERMALINK=${PORTER_PERMALINK:-latest} -PKG_PERMALINK=${PKG_PERMALINK:-latest} echo "Installing porter@$PORTER_PERMALINK to $PORTER_HOME from $PORTER_MIRROR" @@ -22,16 +21,16 @@ chmod +x $PORTER_HOME/porter cp $PORTER_HOME/porter $PORTER_HOME/runtimes/porter-runtime echo Installed `$PORTER_HOME/porter version` -$PORTER_HOME/porter mixin install exec --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install kubernetes --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install helm --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install arm --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install terraform --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install az --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install aws --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install gcloud --version $PKG_PERMALINK +$PORTER_HOME/porter mixin install exec --version $PORTER_PERMALINK +$PORTER_HOME/porter mixin install kubernetes --version v0.28.5 +$PORTER_HOME/porter mixin install helm --version v0.13.4 +$PORTER_HOME/porter mixin install arm --version v0.8.2 +$PORTER_HOME/porter mixin install terraform --version v0.9.1 +$PORTER_HOME/porter mixin install az --version v0.7.2 +$PORTER_HOME/porter mixin install aws --version v0.4.1 +$PORTER_HOME/porter mixin install gcloud --version v0.4.2 -$PORTER_HOME/porter plugin install azure --version $PKG_PERMALINK +$PORTER_HOME/porter plugin install azure --version v0.11.2 echo "Installation complete." echo "Add porter to your path by adding the following line to your ~/.profile and open a new terminal:" diff --git a/scripts/install/install-mac.sh b/scripts/install/install-mac.sh index 18b9c3786..8d0477481 100755 --- a/scripts/install/install-mac.sh +++ b/scripts/install/install-mac.sh @@ -23,16 +23,16 @@ chmod +x $PORTER_HOME/porter chmod +x $PORTER_HOME/runtimes/porter-runtime echo Installed `$PORTER_HOME/porter version` -$PORTER_HOME/porter mixin install exec --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install kubernetes --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install helm --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install arm --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install terraform --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install az --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install aws --version $PKG_PERMALINK -$PORTER_HOME/porter mixin install gcloud --version $PKG_PERMALINK - -$PORTER_HOME/porter plugin install azure --version $PKG_PERMALINK +$PORTER_HOME/porter mixin install exec --version $PORTER_PERMALINK +$PORTER_HOME/porter mixin install kubernetes --version v0.28.5 +$PORTER_HOME/porter mixin install helm --version v0.13.4 +$PORTER_HOME/porter mixin install arm --version v0.8.2 +$PORTER_HOME/porter mixin install terraform --version v0.9.1 +$PORTER_HOME/porter mixin install az --version v0.7.2 +$PORTER_HOME/porter mixin install aws --version v0.4.1 +$PORTER_HOME/porter mixin install gcloud --version v0.4.2 + +$PORTER_HOME/porter plugin install azure --version v0.11.2 echo "Installation complete." echo "Add porter to your path by adding the following line to your ~/.bash_profile or ~/.zprofile and open a new terminal:" diff --git a/scripts/install/install-windows.ps1 b/scripts/install/install-windows.ps1 index d4f494003..e0ca2c55d 100755 --- a/scripts/install/install-windows.ps1 +++ b/scripts/install/install-windows.ps1 @@ -4,7 +4,7 @@ param( # The version of Porter to install, such as vX.Y.Z, latest or canary. $PORTER_PERMALINK='latest', [String] - # The version of mixins and plugins to install, such as latest or canary. + # DEPRECATED. Plugin and mixin versions are pinned to versions compatible with the v0.38 stable release $PKG_PERMALINK='latest', [String] # Location where Porter is installed (defaults to ~/.porter). @@ -23,16 +23,16 @@ mkdir -f $PORTER_HOME/runtimes (new-object System.Net.WebClient).DownloadFile("$PORTER_MIRROR/$PORTER_PERMALINK/porter-linux-amd64", "$PORTER_HOME\runtimes\porter-runtime") echo "Installed $(& $PORTER_HOME\porter.exe version)" -& $PORTER_HOME/porter mixin install exec --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install kubernetes --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install helm --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install arm --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install terraform --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install az --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install aws --version $PKG_PERMALINK -& $PORTER_HOME/porter mixin install gcloud --version $PKG_PERMALINK +& $PORTER_HOME/porter mixin install exec --version $PORTER_PERMALINK +& $PORTER_HOME/porter mixin install kubernetes --version v0.28.5 +& $PORTER_HOME/porter mixin install helm --version v0.13.4 +& $PORTER_HOME/porter mixin install arm --version v0.8.2 +& $PORTER_HOME/porter mixin install terraform --version v0.9.1 +& $PORTER_HOME/porter mixin install az --version v0.7.2 +& $PORTER_HOME/porter mixin install aws --version v0.4.1 +& $PORTER_HOME/porter mixin install gcloud --version v0.4.2 -& $PORTER_HOME/porter plugin install azure --version $PKG_PERMALINK +& $PORTER_HOME/porter plugin install azure --version v0.11.2 echo "Installation complete." echo "Add porter to your path by adding the following line to your Microsoft.PowerShell_profile.ps1 and open a new terminal:"