Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Conversation

@guerinoni
Copy link
Contributor

This PR solve #80, in order to uninstall only packages installed through arduino-connector during installation will create a config file listing packages already present, like network-manager, docker (images + container), and so on...
The uninstall feature is called by API /status/uninstall/post and at the end of the uninstall process it creates a script (uninstall-arduino-connector.sh) for the user that must run to finalize the uninstall process. This because is impossible to stop and remove service from within arduino-connector, that script removes also the binary.

@guerinoni guerinoni force-pushed the feature/80 branch 2 times, most recently from 34f0f99 to c005a37 Compare September 29, 2020 10:37
@guerinoni guerinoni force-pushed the feature/80 branch 3 times, most recently from 7b926b2 to d0d2df7 Compare October 1, 2020 14:53
@guerinoni guerinoni requested review from pippolo84 and rsora and removed request for pippolo84 October 1, 2020 14:55
@guerinoni guerinoni marked this pull request as ready for review October 1, 2020 15:18
@guerinoni guerinoni force-pushed the feature/80 branch 2 times, most recently from c20c9eb to 432f46c Compare October 1, 2020 16:08
Federico Guerinoni added 18 commits October 5, 2020 10:16
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Last step of uninstall function is to generate a script, for now in
executable folder, that user should run to remove arduino-connector.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
For now during installation will be create a file with local config for
arduino-connector checking if docker is already installed.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
In this case I separate with name the tests that should run on docker
container based on ubuntu and the tests for alpine based container, in
this case I tested the list of images when nothing is installed and when
one image are already present.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
I tested the presence of this package with a dpkg command in ubuntu
docker container and add it in yml file as boolean.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
This test checks uninstall API will remove all containers in config file.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
In this case when install docker images and containers lists are both
empty because there I will store only what application installs.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Copy link

@pippolo84 pippolo84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review and (eventually) apply the suggested changes.

Signed-off-by: Federico Guerinoni <guerra@develer.com>
@guerinoni guerinoni force-pushed the feature/80 branch 4 times, most recently from 5e5a6b2 to a2b3ee3 Compare October 5, 2020 16:25
Signed-off-by: Federico Guerinoni <guerra@develer.com>
Signed-off-by: Federico Guerinoni <guerra@develer.com>
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@guerinoni guerinoni self-assigned this May 19, 2021
@guerinoni
Copy link
Contributor Author

@rsora maybe we can merge it? :)

@guerinoni guerinoni closed this Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants