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

demandé il y a 3 ans215 vues
1 réponse
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"
},

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions