docker/install: Remove deprecated version and channel
Use InstallSource instead Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -55,7 +55,11 @@ aarch64:https://cloud.debian.org/images/cloud/bookworm/20231013-1532/debian-12-g
|
||||
}
|
||||
await expect((async () => {
|
||||
const install = new Install({
|
||||
version: version,
|
||||
source: {
|
||||
type: 'archive',
|
||||
version: version,
|
||||
channel: 'stable',
|
||||
},
|
||||
runDir: tmpDir,
|
||||
contextName: 'foo',
|
||||
daemonConfig: `{"debug":true,"features":{"containerd-snapshotter":true}}`
|
||||
|
||||
@@ -40,7 +40,11 @@ describe('download', () => {
|
||||
'acquires %p of docker (%s)', async (version, platformOS) => {
|
||||
jest.spyOn(osm, 'platform').mockImplementation(() => platformOS as NodeJS.Platform);
|
||||
const install = new Install({
|
||||
version: version,
|
||||
source: {
|
||||
type: 'archive',
|
||||
version: version,
|
||||
channel: 'stable',
|
||||
},
|
||||
runDir: tmpDir,
|
||||
});
|
||||
const toolPath = await install.download();
|
||||
|
||||
Reference in New Issue
Block a user