From b8707c0ae5d91c15aa1c0c57c65185f2aa2a30ec Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Wed, 10 Jan 2024 11:29:18 -0500 Subject: [PATCH] show icon on conatiner list Signed-off-by: Charlie Drage --- package.json | 6 ++++++ src/extension.ts | 3 +++ 2 files changed, 9 insertions(+) diff --git a/package.json b/package.json index 26d6f01b..03966376 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,12 @@ } }, "views": { + "icons/containersList": [ + { + "when": "bootc.image.builder in containerLabelKeys", + "icon": "${bootable-icon}" + } + ], "icons/imagesList": [ { "when": "ostree.bootable in imageLabelKeys", diff --git a/src/extension.ts b/src/extension.ts index 3273bada..5a8a8ecc 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -163,6 +163,8 @@ $IMAGE */ // Update options with the above values + const Labels: { [label: string]: string } = {}; + Labels['bootc.image.builder'] = 'true'; const options: ContainerCreateOptions = { name: diskImageBuildingName, Image: bootcImageBuilderName, @@ -172,6 +174,7 @@ $IMAGE SecurityOpt: ['label=type:unconfined_t'], Binds: [folder + ':/tmp/' + type], }, + Labels, // Outputs to: // /disk. // in the directory provided