Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding home dir and download url during install #1542

Merged
merged 4 commits into from
Apr 15, 2021

Conversation

carolynvs
Copy link
Member

What does this change

When installing, let the user override with PORTER_HOME and PORTER_MIRROR the location where porter should be installed, or the location from which it should be downloaded.

I have updated the porter CLI to understand the new configuration value PORTER_MIRROR, which and also be specified as a flag or config file setting.

This lets us test out alternate download infra from end-to-end, and also allows a user to set up a mirror of Porter's assets.

I am also getting rid of the troubleshooting I had added for Azure's storage and CDN now that we aren't using it anymore (e.g. dynamically generated PORTER_TRACE user agents).

What issue does it fix

Fixes https://groups.io/g/porter/message/30

Notes for the reviewer

N/A

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

When installing, let the user override with PORTER_HOME and
PORTER_MIRROR the location where porter should be installed, or the
location from which it should be downloaded.

I have updated the porter CLI to understand the new configuration value
PORTER_MIRROR, which and also be specified as a flag or config file
setting.

This lets us test out alternate download infra from end-to-end, and also
allows a user to set up a mirror of Porter's assets.

I am also getting rid of the troubleshooting I had added for Azure's
storage and CDN now that we aren't using it anymore (e.g. dynamically
generated PORTER_TRACE user agents).

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs
Copy link
Member Author

/azp run porter-install-check

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@@ -13,9 +13,11 @@ We have a few release types available for you to use:
* [Older Version](#older-version)

You can also install and manage [mixins](#mixins) and [plugins](#plugins) using
porter, and use the [Porter VS Code Extension][vscode-ext] for help authoring
porter, and use the [Porter VS Code Extension][vscode-ext] for help author
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps change back to authoring -- or '.. to help author bundles' ?


# Install Script Parameters

The installation scripts provide the following parameters. Paramters can be specified with environment variables for the macOS and Linux scripts, and on Windows they are named parameters in the script.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The installation scripts provide the following parameters. Paramters can be specified with environment variables for the macOS and Linux scripts, and on Windows they are named parameters in the script.
The installation scripts provide the following parameters. Parameters can be specified with environment variables for the macOS and Linux scripts, and on Windows they are named parameters in the script.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed a couple places with that same typo. I really have trouble with typing that word! 😊

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs merged commit 784d61c into getporter:main Apr 15, 2021
@carolynvs carolynvs deleted the install-params branch April 15, 2021 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants