Skip to content

Update install-machine.md and replace curl by wget

olivier némoz saint-dizier requested to merge onemoz-main-patch-48284 into main

NOTE THAT THIS FORK IS MAINTAINED FOR CRITICAL BUG FIXES AFFECTING RUNNING COSTS ONLY. NO OTHER CONTRIBUTIONS WILL BE ACCEPTED.

What critical bug this MR is fixing?

When trying the first curl command to download the binary, this works for all of them except the macos-arm64 one:

❯ curl -0 "https://gitlab.com/gitlab-org/ci-cd/docker-machine/-/releases/v0.16.2-gitlab.28/downloads/docker-machine-Darwin-x86_64"
<html><body>You are being <a href="https://gitlab-docker-machine-downloads.s3.amazonaws.com/v0.16.2-gitlab.28/docker-machine-Darwin-x86_64">redirected</a>.</body></html>%

Replacing curl -0 by wget follow the redirect (probably works with an option of curl, but couldn't make it work).

❯ wget  "https://gitlab.com/gitlab-org/ci-cd/docker-machine/-/releases/v0.16.2-gitlab.28/downloads/docker-machine-Darwin-x86_64"
--2024-08-28 17:07:08--  https://gitlab.com/gitlab-org/ci-cd/docker-machine/-/releases/v0.16.2-gitlab.28/downloads/docker-machine-Darwin-x86_64
Herleiden van gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Verbinding maken met gitlab.com (gitlab.com)|172.65.251.78|:443... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 302 Found
Locatie: https://gitlab-docker-machine-downloads.s3.amazonaws.com/v0.16.2-gitlab.28/docker-machine-Darwin-x86_64 [volgen...]
--2024-08-28 17:07:09--  https://gitlab-docker-machine-downloads.s3.amazonaws.com/v0.16.2-gitlab.28/docker-machine-Darwin-x86_64
Herleiden van gitlab-docker-machine-downloads.s3.amazonaws.com (gitlab-docker-machine-downloads.s3.amazonaws.com)... 52.217.117.177, 52.216.144.107, 3.5.29.228, ...
Verbinding maken met gitlab-docker-machine-downloads.s3.amazonaws.com (gitlab-docker-machine-downloads.s3.amazonaws.com)|52.217.117.177|:443... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: 43586000 (42M) [binary/octet-stream]
Wordt opgeslagen als: ‘docker-machine-Darwin-x86_64.2’

docker-machine-Darwin-x86_64.2                                      100%[===================================================================================================================================================================>]  41,57M  5,83MB/s    in 7,5s

2024-08-28 17:07:17 (5,53 MB/s) - '‘docker-machine-Darwin-x86_64.2’' opgeslagen [43586000/43586000]

Merge request reports

Loading