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

Update remote ssh to use cdn hosted artifacts #6498

Open
petetronic opened this issue Feb 26, 2025 · 1 comment
Open

Update remote ssh to use cdn hosted artifacts #6498

petetronic opened this issue Feb 26, 2025 · 1 comment
Assignees
Labels
area: core Issues related to Core category. area: remote host bug Something isn't working

Comments

@petetronic
Copy link
Collaborator

petetronic commented Feb 26, 2025

With installers now hosted on cdn.posit.com, we need to update the remote ssh template to point to the cdn and not github for release artifacts.

See:

  1. https://github.com/posit-dev/positron/blob/main/product.json#L17
"serverDownloadUrlTemplate": "https://github.com/posit-dev/positron/releases/download/${version}/positron-reh-${os}-${arch}-${version}.tar.gz",
  1. https://github.com/posit-dev/positron/blob/main/extensions/open-remote-ssh/src/serverSetup.ts#L38
const DEFAULT_DOWNLOAD_URL_TEMPLATE = 'https://github.com/posit-dev/positron/releases/download/${version}/positron-reh-${os}-${arch}-${version}.tar.gz';
  1. https://github.com/posit-dev/positron/blob/main/extensions/open-remote-ssh/package.json#L80
"default": "https://github.com/posit-dev/positron/releases/download/${version}/positron-reh-${os}-${arch}-${version}.tar.gz"

The new template should be something like:

https://cdn.posit.co/positron/dailies/reh/${arch}/positron-reh-${os}-${arch}-${version}.tar.gz
@petetronic
Copy link
Collaborator Author

All builds should be in /dailies/... track to start, though stable monthly prereleases would be promoted to /prereleases/.... We would need a sense of editioning in the product if we were to further parameterize the URI template. I think we can start with dailies.

@jthomasmock jthomasmock added the area: core Issues related to Core category. label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to Core category. area: remote host bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants