From 10b889a2abc76de96b5ac852d65f7de9a6fef32e Mon Sep 17 00:00:00 2001 From: "Adam.taylor" Date: Sat, 16 Nov 2024 12:01:18 +0000 Subject: [PATCH] Update docker compose command --- src/helper.js | 2 +- src/index.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helper.js b/src/helper.js index dce71dd..b1b8b07 100644 --- a/src/helper.js +++ b/src/helper.js @@ -29,7 +29,7 @@ const logger = winston.createLogger({ ], }); -const basicCommand = "docker-compose"; +const basicCommand = "docker compose"; const filter = { controller: (o) => { diff --git a/src/index.js b/src/index.js index a9303c1..2d3023b 100644 --- a/src/index.js +++ b/src/index.js @@ -25,8 +25,8 @@ const startTime = Date.now(); process.once("SIGINT", () => { console.log("Stop received..."); const endTime = Date.now(); - console.log("Executing docker-compose stop"); - execSync("docker-compose stop", { stdio: "ignore" }); + console.log("Executing docker compose stop"); + execSync("docker compose stop", { stdio: "ignore" }); console.log( `${lastTick} ticks elapsed, ${Math.floor( @@ -125,8 +125,8 @@ class Tester { await Helper.sleep(1); } console.log(`${lastTick} End of simulation`); - console.log("Executing docker-compose stop"); - execSync("docker-compose stop", { stdio: "ignore" }); + console.log("Executing docker compose stop"); + execSync("docker compose stop", { stdio: "ignore" }); console.log("Status:"); console.log(JSON.stringify(status, null, 2));