Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker compose command #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const logger = winston.createLogger({
],
});

const basicCommand = "docker-compose";
const basicCommand = "docker compose";

const filter = {
controller: (o) => {
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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));
Expand Down