From 582f60956b61d5deabba6e93d6acf718858a3885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFck=20Piera?= Date: Thu, 21 Nov 2024 18:37:45 +0100 Subject: [PATCH] Do not pull docker image for now --- castor.php | 9 ++------- infrastructure/docker/docker-compose.builder.yml | 1 - infrastructure/docker/docker-compose.yml | 2 -- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/castor.php b/castor.php index 07fc8b6..6b89fc3 100644 --- a/castor.php +++ b/castor.php @@ -11,7 +11,6 @@ use function docker\build; use function docker\docker_compose_run; use function docker\generate_certificates; -use function docker\pull; use function docker\up; guard_min_version('0.18.0'); @@ -37,16 +36,12 @@ function create_default_variables(): array } #[AsTask(description: 'Builds and starts the infrastructure, then install the application (composer, yarn, ...)')] -function start(bool $build = false): void +function start(): void { io()->title('Starting the stack'); generate_certificates(force: false); - if ($build) { - build(); - } else { - pull(); - } + build(); up(profiles: ['default']); // We can't start worker now, they are not installed cache_clear(); install(); diff --git a/infrastructure/docker/docker-compose.builder.yml b/infrastructure/docker/docker-compose.builder.yml index d107259..1ad157f 100644 --- a/infrastructure/docker/docker-compose.builder.yml +++ b/infrastructure/docker/docker-compose.builder.yml @@ -3,7 +3,6 @@ volumes: services: builder: - image: "ghcr.io/jolicode/monologue/builder:${BUILDER_VERSION:-latest}" build: context: services/php target: builder diff --git a/infrastructure/docker/docker-compose.yml b/infrastructure/docker/docker-compose.yml index 84ecb7f..73504b6 100644 --- a/infrastructure/docker/docker-compose.yml +++ b/infrastructure/docker/docker-compose.yml @@ -3,7 +3,6 @@ volumes: services: router: - image: "ghcr.io/jolicode/monologue/router:${ROUTER_VERSION:-latest}" build: context: services/router # cache_to: @@ -23,7 +22,6 @@ services: - default frontend: - image: "ghcr.io/jolicode/monologue/frontend:${FRONTEND_VERSION:-latest}" build: context: services/php target: frontend