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년 전210회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠