Skip to content

install.sh uses CloudFront CDN for CLI installs - #5829

Merged
gerhard merged 2 commits into
dagger:mainfrom
gerhard:install-from-cdn
Sep 28, 2023
Merged

gerhard merged 2 commits into
dagger:mainfrom
gerhard:install-from-cdn

Conversation

@gerhard

@gerhard gerhard commented Sep 27, 2023 •

Copy link
Copy Markdown
Contributor

We (+@jpadams) have noticed slow-downs when installing via curl -L https://dl.dagger.io/dagger/install.sh | sh

This PR changes the base URL in install.sh from dagger-io.s3.amazonaws.com to dl.dagger.io

Since install.sh file was deleted part of 5a9c772, this PR also adds it back. cc @aluzzardi

Next steps

Gerhard Lazu added 2 commits September 27, 2023 11:00
This was deleted part of
5a9c772

We definitely want to have the file behind
https://dl.dagger.io/dagger/install.sh under version control.

Signed-off-by: Gerhard Lazu <[email protected]>
This should address the slow-downs that some of us have noticed.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard gerhard changed the title install.sh from CloudFront CDN install.sh uses CloudFront CDN for CLI installs Sep 27, 2023
@samalba

samalba commented Sep 28, 2023

Copy link
Copy Markdown
Contributor

I did setup dl.dagger.io a while back exactly for this. Not sure what happened and when it moved away.

LGTM

@samalba
samalba self-requested a review September 28, 2023 14:02
@gerhard

gerhard commented Sep 28, 2023

Copy link
Copy Markdown
Contributor Author

I don't see dl.dagger.io in install.sh from the first commit, which goes all the way back to May 2021: https://github.com/dagger/dagger/commits/46adf1fbd36cd8bd1052ed4e19f10f26df39540d/install.sh

This will definitely fix that! 💪

@gerhard
gerhard merged commit 67b87ed into dagger:main Sep 28, 2023
@gerhard
gerhard deleted the install-from-cdn branch September 28, 2023 23:19
@gerhard

gerhard commented Sep 28, 2023

Copy link
Copy Markdown
Contributor Author
❯ curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin DAGGER_VERSION=0.8.0 sh

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8674  100  8674    0     0   154k      0 --:--:-- --:--:-- --:--:--  172k
sh debug downloading files into /var/folders/z5/n5y08g4j073_ld2d9019j3_80000gn/T/tmp.8M98N6lbst
sh debug http_download https://dl.dagger.io/dagger/releases/0.8.0/dagger_v0.8.0_darwin_amd64.tar.gz
sh debug http_download https://dl.dagger.io/dagger/releases/0.8.0/checksums.txt
sh debug display shell completion instructions

dagger has built-in shell completion. This is how you can install it for:

  BASH:

    1. Ensure that you install bash-completion using your package manager.

    2. Add dagger completion to your personal bash completions dir

      mkdir -p /bash-completion/completions
      dagger completion bash > /bash-completion/completions/dagger

  ZSH:

    1. Generate a _dagger completion script and write it to a file within your $FPATH, e.g.:

      dagger completion zsh > /usr/local/share/zsh/site-functions/_dagger

    2. Ensure that the following is present in your ~/.zshrc:

      autoload -U compinit
      compinit -i

    zsh version 5.7 or later is recommended.

  FISH:

    1. Generate a dagger.fish completion script and write it to a file within fish completions, e.g.:

      dagger completion fish > ~/.config/fish/completions/dagger.fish

sh info installed /Users/gerhard/.local/bin/dagger

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.

2 participants