Remove package components after updating component

0

Hi,

my greengrass custom component is a docker container hosted on S3.

After I update a version of one of my custom components, I noticed that the previous component is lingering here,

/greengrass/v2/packages/artifacts/my_component/old_version

is this expected behaviour?

Since this is a large docker container (~few gigs) after a few updates I will run out of space on my device.

I'm using greengrass 2.4.0.

Thanks for the help in advance!

Edited by: m0sf3tz11 on Aug 18, 2021 12:10 AM

質問済み 3年前215ビュー
1回答
0

Hi everyone, I solved my own problem:

I added this line to my component manifest:

"Install": {
"RequiresPrivilege": true,
"script": "docker load -i {artifacts:path}/my_package.tar; rm {artifacts:path}/my_package.tar"
},

回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ