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

asked 3 years ago215 views
1 Answer
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"
},

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions