GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — docker/install: Support `version: master` by vvoland · Pull Request #438 · docker/actions-toolkit Conversation
|
| core.info(`Downloading Docker ${this.version} from ${this.channel}`); | ||
|
|
||
| this._version = this.version; | ||
| if (this.version == 'master') { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to rely on csv values so we can either choose archive or image format:
v24.0.9 similar to type=archive,version=v24.0.9type=image,tag=mastertype=image,tag=24.0.9WDYT?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
But that would be smth to handle in setup-docker action as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Do we want to have another input variable for cli version alone?
Like:
version: type=image,tag=master # and optional repository=moby/moby-bin-someotherepo
cli-version: type=archive,version=v20.10.25 # if not specified, will default to tag from `version` an
or just sth like
version: |
component=engine,type=image,tag=master
component=cli,type=archive,version=v20.10.25
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Or, if we want to go in the direction of: docker/setup-docker-action#81
Then maybe we should have a separate image input:
images: |
moby/moby-bin:master
dockereng/cli-bin:master
that would be mutually exclusive with version?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Do we want to have another input variable for cli version alone?
I think we should keep both under the same terminology instead of being separated. Don't think we want to allow custom registry or image repository imo.
Or, if we want to go in the direction of: crazy-max/ghaction-setup-docker#81
I think csv values like #438 (comment) are easier to maintain so we don't introduce a new input and keep backward compat with current version input. I will update this proposal if we are ok with this. WDYT?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My main concern here was the ability to install a different engine and cli version. I think it's fine to leave the image repository hardcoded, but it could be useful to be able to install different versions of CLI and Engine.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
but it could be useful to be able to install different versions of CLI and Engine.
Ok if there is this use case then what do you think of:
v24.0.9 > type=archive,version=v24.0.9 or type=archive,engine_version=v24.0.9,cli_version=v24.0.9 if you want specific engine/cli versionSame for images:
type=image,tag=24.0.9 > type=image,engine_tag=24.0.9,cli_tag=24.0.9
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
SGTM, although it's not an urgent use-case so we can handle that in a follow up.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Updated to support the CSV syntax.
Example run: https://github.com/docker/moby-private/actions/runs/10773693004/job/29874033854?pr=9#step:2:336
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
7f4cb8d to
9a7c8c8
Compare
|
Also opened a PR on the ghaction to make use of the new options: docker/setup-docker-action#106 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Along the change for source can you add new cases in https://github.com/docker/actions-toolkit/blob/main/__tests__/docker/install.test.ts to download from image?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
2c74c55 to
5a0fe00
Compare
There was an error while loading. Please reload this page.
Hum right, on macos runners it will use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5a0fe00 to
97bef8d
Compare
There was an error while loading. Please reload this page.
|
Or just skip the daemon on darwin and only download the CLI? OTOH, this could be confusing behavior as it will not error out and won't be able to connect to the daemon.. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
97bef8d to
20a30f2
Compare
Yeah provisioning for macos is a bit different. It downloads static bins from download.docker.com: https://github.com/docker/actions-toolkit/actions/runs/11289888751/job/31400662984#step:11:17 which only contains cli as expected. But then during lima provisioning it installs the engine using actions-toolkit/src/docker/assets.ts Line 224 in a59a5f8
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Right, so we'd need to also handle the image download inside the lima provisioning script. I think it's easiest to just use undock there? The lima provisioning is already doing a lot of stuff, so the extra binary won't hurt there 😅 EDIT: Actually it might be easier to just mount the binaries to lima vm, let me try that. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
9662b9d to
23c945d
Compare
There was an error while loading. Please reload this page.
|
Can you rebase to fix the QEMU issue related to #459 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Paweł Gronowski <[email protected]>
81d3249 to
668161b
Compare
|
Weird qemu failure: Is this known to happen sometimes? 🤔 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The previous failure on macos-12 was related to the long EDIT: Looks like it's still the case 🫠 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
58cfeb4 to
396c98a
Compare
Use undock inside lima to pull the image content. We could mount the downloaded binaries from the host, but for some reason lima mounts are not always mounted when the provisioning script is run. Signed-off-by: Paweł Gronowski <[email protected]>
396c98a to
e3d0e4e
Compare
|
Ok, looks like lima mounts are not always mounted before the provisioning script is run. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ok, looks like lima mounts are not always mounted before the provisioning script is run.
Argh I will take a look if we can fix that as follow-up so we can just use undock in docker install and avoid hub requests.
But let's get this in in the meantime!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.