-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Porter v1 core changes (#2977) * Update templates for Porter v1 (#2985) * Update docs for porter v1 (#2992)
- Loading branch information
1 parent
518a559
commit 2869309
Showing
115 changed files
with
1,845 additions
and
1,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
# Uncomment this line to see each command for debugging (careful: this will show secrets!) | ||
# set -o xtrace | ||
|
||
export PORTER_HOME=${PORTER_HOME:-~/.porter} | ||
export PORTER_MIRROR=${PORTER_MIRROR:-https://cdn.porter.sh} | ||
PORTER_VERSION=${PORTER_VERSION:-latest} | ||
|
||
echo "Installing porter@$PORTER_VERSION to $PORTER_HOME from $PORTER_MIRROR" | ||
|
||
mkdir -p "$PORTER_HOME/runtimes" | ||
|
||
curl -fsSLo "$PORTER_HOME/porter" "$PORTER_MIRROR/$PORTER_VERSION/porter-linux-amd64" | ||
chmod +x "$PORTER_HOME/porter" | ||
ln -s "$PORTER_HOME/porter" "$PORTER_HOME/runtimes/porter-runtime" | ||
echo "Installed $("${PORTER_HOME}"/porter version)" | ||
|
||
"${PORTER_HOME}/porter" mixin install exec --version "$PORTER_VERSION" | ||
"${PORTER_HOME}/porter" mixin install terraform --version "$PORTER_TERRAFORM_MIXIN_VERSION" | ||
"${PORTER_HOME}/porter" mixin install az --version "$PORTER_AZ_MIXIN_VERSION" | ||
|
||
"${PORTER_HOME}/porter" plugin install azure --version "$PORTER_AZURE_PLUGIN_VERSION" | ||
|
||
chown -R "${USERNAME}" "${PORTER_HOME}" | ||
|
||
echo "Installation complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.7.0" | ||
__version__ = "0.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# This script adds missing env vars that are needed to run porter commands locally. | ||
# If a bundle defines a parameter that isn't in the environment it will be added. | ||
# When/if this issue will be address, we could remove the script: | ||
# https://github.com/getporter/porter/issues/2474 | ||
|
||
set -o errexit | ||
set -o pipefail | ||
# set -o xtrace | ||
|
||
while read -r env_var_name; do | ||
if [[ -z "${!env_var_name}" ]]; then | ||
echo "${env_var_name} doesn't exist." | ||
# shellcheck disable=SC2086 | ||
declare -g $env_var_name= | ||
export "${env_var_name?}" | ||
fi | ||
done < <(jq -r '.parameters[].source.env' parameters.json) |
Oops, something went wrong.