GeezerVison is showing github.com — Support downloading binaries from docker images by vvoland · Pull Request #106 · docker/setup-docker-action
Conversation
This patch extends the version input parameter to also accept an CSV-style options allowing to specify a different installation source of the docker binaries:
archive (old and still default) - fetches static binaries from download.docker.com
type - must be archive
version - a Docker version to install (example: v27.2.1) or latest (last stable release)
channel - a channel to install from (test or stable)
image (new) - fetches binaries from the moby/moby-bin and dockereng/cli-bin repositories
type - must be image
tag - a tag of the image, can either use a tagged version like 27.2.1 or a branch name like master.
Some examples:
version: latest # install last stable released version
version: 27.2.1 # install v27.2.1 from download.docker.com
version: type=archive # same as above
version: version=27.2.1 # same as above
version: type=archive,version=27.2.1 # same as above
version: type=archive,version=27.3.0-rc.1,channel=test # install v27.3.0-rc.1 from test channel
version: type=image # install last stable released version from bin images
version: type=image,tag=latest # same as above
version: type=image,tag=master # install a cutting-edge version from the `master` branch
version: type=image,tag=27.2.1 # install v27.2.1
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+29
to
+74
|
|
if (version.indexOf('=') !== -1) {
|
|
|
const csv = version.split(',');
|
|
|
for (const c of csv) {
|
|
|
const kv = c.split('=');
|
|
|
values.set(kv[0], kv[1]);
|
|
|
}
|
|
|
} else {
|
|
|
values.set('type', 'archive');
|
|
|
values.set('version', version);
|
|
|
}
|
crazy-max
Sep 9, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
crazy-max
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
vvoland reacted with eyes emoji
|
@vvoland Added extra commit to test type=image,tag=latest in GHA and seems we don't use the actual version neither when downloading systemd units: https://github.com/crazy-max/ghaction-setup-docker/actions/runs/11582762974/job/32246484640?pr=106#step:5:2171
[ 298.001262] cloud-init[2118]: + wget https://raw.githubusercontent.com/moby/moby/latest/contrib/init/systemd/docker.service https://raw.githubusercontent.com/moby/moby/vlatest/contrib/init/systemd/docker.service -O /etc/systemd/system/docker.service
[ 298.040071] cloud-init[2118]: --2024-10-29 21:52:40-- https://raw.githubusercontent.com/moby/moby/latest/contrib/init/systemd/docker.service
[ 299.046101] cloud-init[2118]: Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
[ 299.082724] cloud-init[2118]: Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
[ 299.202189] cloud-init[2118]: HTTP request sent, awaiting response... 404 Not Found
[ 299.216292] cloud-init[2118]: 2024-10-29 21:52:41 ERROR 404: Not Found.
[ 299.226332] cloud-init[2118]: --2024-10-29 21:52:41-- https://raw.githubusercontent.com/moby/moby/vlatest/contrib/init/systemd/docker.service
[ 299.244670] cloud-init[2118]: Reusing existing connection to raw.githubusercontent.com:443.
[ 299.313128] cloud-init[2118]: HTTP request sent, awaiting response... 404 Not Found
[ 299.328273] cloud-init[2118]: 2024-10-29 21:52:41 ERROR 404: Not Found.
[ 299.345236] cloud-init[2118]: + true
[ 299.354731] cloud-init[2118]: + wget https://raw.githubusercontent.com/moby/moby/latest/contrib/init/systemd/docker.socket https://raw.githubusercontent.com/moby/moby/vlatest/contrib/init/systemd/docker.socket -O /etc/systemd/system/docker.socket
[ 299.386189] cloud-init[2118]: --2024-10-29 21:52:41-- https://raw.githubusercontent.com/moby/moby/latest/contrib/init/systemd/docker.socket
[ 300.347605] cloud-init[2118]: Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.110.133, ...
[ 300.373431] cloud-init[2118]: Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
[ 300.471471] cloud-init[2118]: HTTP request sent, awaiting response... 404 Not Found
[ 300.487020] cloud-init[2118]: 2024-10-29 21:52:42 ERROR 404: Not Found.
[ 300.500385] cloud-init[2118]: --2024-10-29 21:52:42-- https://raw.githubusercontent.com/moby/moby/vlatest/contrib/init/systemd/docker.socket
[ 300.520196] cloud-init[2118]: Reusing existing connection to raw.githubusercontent.com:443.
[ 300.576193] cloud-init[2118]: HTTP request sent, awaiting response... 404 Not Found
[ 300.600016] cloud-init[2118]: 2024-10-29 21:52:42 ERROR 404: Not Found.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
crazy-max
commented
Oct 30, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
crazy-max
commented
Oct 30, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
vvoland
commented
Oct 30, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
The issue here is that 26.1.5 didn't have the darwin cli builds yet.
27.0.0 was the first version to have the darwin builds in the dockereng/cli-bin:
docker/cli#4996
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The issue here is that 26.1.5 didn't had the darwin cli builds yet.
Ah right my bad! Let me change the ref here
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
crazy-max
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There 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.
Ok let's get this one in so we can test this workflow on moby using crazy-max/ghaction-setup-docker@master.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|