agile-learning-institute / mentorHub

9 stars 3 forks source link

67 support multi profile selection in mentorhub de #98

Closed MyNameIsAndrew-Mangix closed 2 months ago

MyNameIsAndrew-Mangix commented 3 months ago
michquinn commented 3 months ago
  • the reset clean and purge commands may just need better documentation but seem to be very similar.

Clean was my suggestion, I feel it could beneficially be further refined to only remove our custom images, not third-party ones like Mongo or OpenSearch. This could be achieved, for example, by filtering those matching agile-learning-institute

michquinn commented 3 months ago

To list profiles

docker compose -f "$INSTALL_PATH/docker-compose.yaml" config --profiles

To list services

docker compose -f "$INSTALL_PATH/docker-compose.yaml" --profile '*' config --services

For a command to list profiles, see also #51

FlatBallFlyer commented 3 months ago
  • the reset clean and purge commands may just need better documentation but seem to be very similar.
  • Reset: Deletes all docker containers from any source
  • Clean: Parses the compose file and deletes any images referenced therein and containers associated with one of the compose file's services
  • Purge: Deletes all docker containers and images from any source

Clean was my suggestion, I feel it could beneficially be further refined to only remove our custom images, not third-party ones like Mongo or OpenSearch. This could be achieved, for example, by filtering those matching agile-learning-institute

So - I think we can deprecate Purge and Reset (if I remember, you suggested this at the time)