Skip to content

Commit

Permalink
show icon on conatiner list
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Drage <[email protected]>
  • Loading branch information
cdrage committed Jan 10, 2024
1 parent ba0a8cb commit b8707c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
}
},
"views": {
"icons/containersList": [
{
"when": "bootc.image.builder in containerLabelKeys",
"icon": "${bootable-icon}"
}
],
"icons/imagesList": [
{
"when": "ostree.bootable in imageLabelKeys",
Expand Down
3 changes: 3 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -172,6 +174,7 @@ $IMAGE
SecurityOpt: ['label=type:unconfined_t'],
Binds: [folder + ':/tmp/' + type],
},
Labels,
// Outputs to:
// <type>/disk.<type>
// in the directory provided
Expand Down

0 comments on commit b8707c0

Please sign in to comment.