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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南