chocolatey / cChoco

Community resource to manage Chocolatey
Apache License 2.0
154 stars 99 forks source link

GH-166 Create example with custom chocolatey.nupkg location #167

Closed timothy-mcroy-cengage closed 2 years ago

timothy-mcroy-cengage commented 2 years ago

Description

An easy to reference example to guide people towards using their own hosted versions of chocolatey.nupkg

Related Issue

Fixes #166

Motivation and Context

The default Example.ps1 config does not include an example to utilize a private NuGet feed to install chocolatey. When folks use the default example, they will run into Chocolatey's HTTP 429 rate limiting if they create too many servers too quickly behind a NAT.

How Has This Been Tested?

Deployed an iteration of this example to my corporate network without issue. I also verified that the download url was used by setting the URL to a bad path. This resulted in the chocolatey.org/install.ps1 script failing. Of course, installing chocolatey on my corporate nuget feed was a little tricky. That involved the following

  1. install chocolatey normally.
  2. Set the choco source to my corporate feed. Remove the chocolatey source.
  3. Downgrade chocolatey.
  4. Upgrade chocolatey, which forced the feed to fetch the latest version for me.

    Screenshots (if appropriate):

Types of changes

pauby commented 2 years ago

Your PR came from your development branch, so when I added another commit and forced pushed it, bad things happened, and the PR was closed. When submitting a PR, we need that from a branch off development.

I did amend the commits locally and merged them into development here.

Thanks for the changes!

timothy-mcroy-cengage commented 2 years ago

Ah, Thanks Paul. I'll keep that in mind in the future.