Skip to content

Commit

Permalink
chore: add script to remove unused containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Zambelli committed Oct 3, 2024
1 parent 7791ae0 commit f992d87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ let
black
pylint
];
compose-path = "./tests/docker-compose.yml";
in
{
name = "sparkle";
Expand Down Expand Up @@ -50,6 +51,9 @@ in
scripts.down.exec = "devenv processes down";
scripts.down.description = "Stop processes.";

scripts.cleanup.exec = "docker compose -f ${compose-path} rm -vf";
scripts.cleanup.description = "Remove unused docker containers and volumes.";

scripts.show.exec = ''
GREEN="\033[0;32m";
YELLOW="\033[33m";
Expand Down Expand Up @@ -103,7 +107,7 @@ in

processes = {
kafka-test.exec = ''
docker compose -f tests/docker-compose.yml up --build
docker compose -f ${compose-path} up --build
'';
};

Expand Down

0 comments on commit f992d87

Please sign in to comment.