- Notifications
You must be signed in to change notification settings - Fork920
feat: bundle a local version of install.sh#16064
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
2f9c32c
tobb5f5f2
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This is great, nice work!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
a450121
intomainUh oh!
There was an error while loading.Please reload this page.
Another thing, while testing, I noticed this to be very slow compared to the install script we host on GitHub. It is probably a network-related thing, and our coder server may not have the same bandwidth as the GitHub CDNs. |
mafredri commentedJan 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@matifali it's (in part) because the command doesn't request compression. We could attempt a compressed transfer, but unfortunately that doesn't support a progress bar. uncompressed (current) / # time curl -fL -o ~/.cache/coder/local_downloads/coder-linux-arm64-v2.18.2-devel+3a81aac31.incomplete -C - https://dev.coder.com/bin/coder-linux-arm64 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 36.2M 100 36.2M 0 0 3983k 0 0:00:09 0:00:09 --:--:-- 6951kreal0m 9.33suser0m 0.41ssys0m 0.49s vs compressed: / # time curl --compressed -fL -o ~/.cache/coder/local_downloads/coder-linux-arm64-v2.18.2-devel+3a81aac31.incomplete -C - https://dev.coder.com/bin/coder-linux-arm64 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 12.6M 0 12.6M 0 0 3074k 0 --:--:-- 0:00:04 --:--:-- 3204kreal0m 4.21suser0m 0.20ssys0m 0.09s |
Thanks,@mafredri, for investigating. My concern is that before we decide to make this the default behavior, we should ensure this doesn't cause a degradation in experience. I am fine if we lose the progress in favor of a faster download experience. I have shared some thoughts here:#16125 (comment) |
Uh oh!
There was an error while loading.Please reload this page.
Closes#13548
This allows users to...
You run something like...
curl -fsSL https://dev.coder.com/install.sh| sh
...and it'll download a "slim" Coder build (CLI only) from the server (which serves these under paths like /bin/coder-$os-$arch) and install it.
This script is based off of our existing install.sh script, and accepts many of the same arguments, but has been tailored to this narrower use case.
There's also some fancy machinery to insert the correct origin to download the binary from using
"text/template"