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.

perf(platform): build the backend image once instead of eight times (#14457)

Bently88b5f540064b
diff --git a/autogpt_platform/README.md b/autogpt_platform/README.md
index 4638c9ea89..1b24a432ed 100644
--- a/autogpt_platform/README.md
+++ b/autogpt_platform/README.md
@@ -114,11 +114,14 @@ Here are some common scenarios where you might use multiple Docker Compose comma
```
docker compose stop
docker compose rm -f
- docker compose pull
- docker compose up -d
+ docker compose pull --ignore-buildable
+ docker compose up -d --build
```
- This stops all services, removes containers, pulls the latest images, and restarts the system.
+ This stops all services, removes containers, pulls the latest images, and
+ restarts the system. `--ignore-buildable` skips the services this repo
+ builds from source; without it `pull` tries to fetch them from a registry
+ they were never published to and fails.
5. Developing with live updates:
diff --git a/autogpt_platform/docker-compose.platform.yml b/autogpt_platform/docker-compose.platform.yml
index 299a076e72..c65dc7409f 100644
--- a/autogpt_platform/docker-compose.platform.yml
+++ b/autogpt_platform/docker-compose.platform.yml
@@ -188,6 +188,7 @@ services:
- "5672:5672"
rest_server:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -226,6 +227,7 @@ services:
max-file: "3"
executor:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -263,6 +265,7 @@ services:
max-file: "3"
copilot_executor:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -303,6 +306,7 @@ services:
max-file: "3"
websocket_server:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -336,6 +340,7 @@ services:
max-file: "3"
database_manager:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -367,6 +372,7 @@ services:
max-file: "3"
scheduler_server:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -402,6 +408,7 @@ services:
max-file: "3"
notification_server:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
build:
context: ../
dockerfile: autogpt_platform/backend/Dockerfile
@@ -434,6 +441,7 @@ services:
max-size: "10m"
max-file: "3"
platform_linking_manager:
+ image: ${COMPOSE_PROJECT_NAME:-autogpt_platform}-backend:latest
profiles: ["bot"]
build:
context: ../