Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

tweak(rnd): Use docker compose not docker-compose (#8034)

Aarushi1d9b01fc7718
diff --git a/rnd/autogpt_server/README.md b/rnd/autogpt_server/README.md
index a1ecdb37f8..464d535faf 100644
--- a/rnd/autogpt_server/README.md
+++ b/rnd/autogpt_server/README.md
@@ -101,7 +101,7 @@ docker compose down
If you run into issues with dangling orphans, try:
```sh
-docker-compose down --volumes --remove-orphans && docker-compose up --force-recreate --renew-anon-volumes --remove-orphans
+docker compose down --volumes --remove-orphans && docker-compose up --force-recreate --renew-anon-volumes --remove-orphans
```
## Testing
diff --git a/rnd/autogpt_server/run_tests.py b/rnd/autogpt_server/run_tests.py
index 5c83a9f26c..aebb6f5b25 100644
--- a/rnd/autogpt_server/run_tests.py
+++ b/rnd/autogpt_server/run_tests.py
@@ -8,7 +8,8 @@ def wait_for_postgres(max_retries=5, delay=5):
try:
result = subprocess.run(
[
- "docker-compose",
+ "docker",
+ "compose",
"-f",
"docker-compose.test.yaml",
"exec",
@@ -45,7 +46,8 @@ def test():
# Start PostgreSQL with Docker Compose
run_command(
[
- "docker-compose",
+ "docker",
+ "compose",
"-f",
"docker-compose.test.yaml",
"up",
@@ -55,7 +57,7 @@ def test():
)
if not wait_for_postgres():
- run_command(["docker-compose", "-f", "docker-compose.test.yaml", "down"])
+ run_command(["docker", "compose", "-f", "docker-compose.test.yaml", "down"])
sys.exit(1)
# Run Prisma migrations
@@ -64,6 +66,6 @@ def test():
# Run the tests
result = subprocess.run(["pytest"] + sys.argv[1:], check=False)
- run_command(["docker-compose", "-f", "docker-compose.test.yaml", "down"])
+ run_command(["docker", "compose", "-f", "docker-compose.test.yaml", "down"])
sys.exit(result.returncode)