Skip to content

Deploy install scripts to dotnetcli account #558

Closed

Description

@richlander

We need to deploy the install scripts so that they are accessible via our CDN.

$ curl -LOv https://dot.net/v1/dotnet-install.sh
< HTTP/2 301
< date: Fri, 27 Dec 2024 06:16:22 GMT
< server: Kestrel
< location: https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh

After recent experiences, we've realized that our website should not be part of our high availability story for installers (via the install script). The CDN is already necessarily part of that. We should limit moving parts as much as possible.

/cc @mmitche

Activity

  1. changed the title [-]Deploy installs script to dotnetcli account[/-] [+]Deploy install scripts to dotnetcli account[/+] on Dec 27, 2024
  2. mmitche commented on Dec 31, 2024

    @mmitche
    Member

    Completely agree.

  3. baronfel commented on Jan 6, 2025

    @baronfel
    Member

    To me this means

    • identify a storage bucket to deploy the scripts to
    • have pipelines (manually) publish to the bucket
    • backend network configuration to point CDNs to the bucket

    These things all require access, yes? My team does not currently - we may need help to get these things done on the short term.

  4. richlander commented on Jan 7, 2025

    @richlander
    MemberAuthor

    That all checks out.

    @mmitche @rbhanda @leecow -- can you help with these things?

  5. mmitche commented on Jan 7, 2025

    @mmitche
    Member

    I don't have perms to do so, but @rbhanda and @leecow do.

  6. mmitche commented on Jan 7, 2025

    @mmitche
    Member

    Recommendation for the install script location:

    /dotnet/scripts/v1/*

    Which would end up being:

    builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1

  7. richlander commented on Jan 7, 2025

    @richlander
    MemberAuthor

    That sounds perfect.

    https://dot.net/v1/dotnet-install.ps1 -> https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1

  8. rbhanda commented on Jan 7, 2025

    @rbhanda

    https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1 is now available

  9. baronfel commented on Jan 7, 2025

    @baronfel
    Member

    Thanks @rbhanda! I verified that

    • dotnet-install.ps1
    • dotnet-install.sh
    • dotnet-install.sig

    are available. However dotnet-install.asc is not. EDIT: it's been uploaded now, thanks!

    What resources are being served with the new url, and where are they located? Thinking about what changes to the internal pipelines we'll need to start looking at.

  10. richlander commented on Jan 7, 2025

    @richlander
    MemberAuthor

    Could you create a new repo MD file that describes the intended production deployment, covering:

    • Source of all the files
    • Where they are deployed (blob storage and the website)
    • Where they can be accessed (CDN and website for compat but not recommended)
    • The short links that can be used to access them
    • Any guidance on whether we recommend using the short links or if that's just convenience
    • How the .sig and .asc files can be used
  11. baronfel commented on Jan 7, 2025

    @baronfel
    Member

    All of that content currently lives at https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script (which we should update with the new urls once they are fully-prepped).

  12. richlander commented on Jan 7, 2025

    @richlander
    MemberAuthor

    It is hard to see the trees among the forest in that document. I think we need a terse doc that makes it very clear what our intent is. Also, we don't need to document the website location in docs, but we need to here.

  13. richlander commented on Jan 8, 2025

    @richlander
    MemberAuthor

    Do you want me to start this doc @baronfel?

  14. richlander commented on Jan 10, 2025

    @richlander
    MemberAuthor

    This is now complete.

    $ curl -Ls --head https://dot.net/v1/dotnet-install.sh | grep location
    location: https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions