From e16fee4c3c1ea28c4a5508e1bf406aa973dc5443 Mon Sep 17 00:00:00 2001 From: David Pequegnot Date: Thu, 12 Jun 2025 15:24:33 +0200 Subject: [PATCH] perf: speedup startup using a first build command with parallel --- .devcontainer/devcontainer.json | 2 +- docs/content/prerequisites/start-infrastructure/_index.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a2bb04f..7b8e426 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -27,7 +27,7 @@ 8080 ], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "sudo apt update -y && sudo apt install -y httpie && bash scripts/download-agent.sh && ./gradlew tasks && docker compose up -d --build", + "postCreateCommand": "sudo apt update -y && sudo apt install -y httpie && bash scripts/download-agent.sh && ./gradlew build --parallel -x test && docker compose up -d --build", // Configure tool-specific properties. "customizations": { diff --git a/docs/content/prerequisites/start-infrastructure/_index.md b/docs/content/prerequisites/start-infrastructure/_index.md index c87d91a..4b8ce73 100644 --- a/docs/content/prerequisites/start-infrastructure/_index.md +++ b/docs/content/prerequisites/start-infrastructure/_index.md @@ -17,11 +17,11 @@ The "infrastructure stack" is composed of the following components: 🛠️ Execute the following commands ``` bash -$ ./gradlew tasks +./gradlew build --parallel -x test ``` ``` bash -$ docker compose up -d --build --remove-orphans +docker compose up -d --build --remove-orphans ``` ✅ To check if all the services are up, you can run this command: