agile-learning-institute / mentorHub

9 stars 3 forks source link

Make run-local self-cleaning #46

Closed michquinn closed 8 months ago

michquinn commented 8 months ago

Updates run-local.sh to download the compose file to a temporary directory and creates a script in the user's current working directory called /tmp/compose-down.sh, which reverts everything back to the way it was before the command was run (calls docker compose down to stop the service which was run, then deletes the temporary directory, after which the compose-down.sh script "self-destructs" by deleting itself)

compose-down.sh could also be created in $HOME. Choice of /tmp is not terribly important

Would close #35