Skip to content

Commit

Permalink
Pin v0.38 install script to compatible package versions
Browse files Browse the repository at this point in the history
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 <me@carolynvanslyck.com>
  • Loading branch information
carolynvs committed May 18, 2022
1 parent 7db0ea7 commit beb5191
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.
21 changes: 10 additions & 11 deletions scripts/install/install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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:"
Expand Down
20 changes: 10 additions & 10 deletions scripts/install/install-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down
20 changes: 10 additions & 10 deletions scripts/install/install-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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:"
Expand Down

0 comments on commit beb5191

Please sign in to comment.