PHRAS-4149 stack management (#4607)

This commit is contained in:
Nicolas Maillat
2025-05-17 00:47:28 +02:00
committed by GitHub
parent ad5c548c8e
commit e6699a2f01
3 changed files with 13 additions and 10 deletions

View File

@@ -197,8 +197,8 @@ export PHRASEANET_APP_PORT=8082
``` ```
If you want persit this change you can also save your change in a files named `env.local` or `.env.local` If you want persit this change you can also save your change in a files named `env.local` or `.env.local`
this files are git ignored and permit a stack customisation without git conflic generation
see more about in stack management section These files are git ignored and permit stack customization without git conflict generation.
If you are not interested in the development of Phraseanet, you can ignore everything in `.env` after the `DEV Purpose` part. If you are not interested in the development of Phraseanet, you can ignore everything in `.env` after the `DEV Purpose` part.
@@ -215,7 +215,7 @@ of the database container before stopping the entire stack.
This script is useful if you are using the database container within the stack. This script is useful if you are using the database container within the stack.
Of course before using it you need to chmod this file. see more here ![stack Management](doc/infra/compose/stack_management.md)
### Using a env.local method for custom .env values ### Using a env.local method for custom .env values
@@ -431,8 +431,3 @@ You can also download a testing pre installed Virtual Machine in OVA format here
https://www.phraseanet.com/download/ https://www.phraseanet.com/download/

View File

@@ -4,7 +4,7 @@ Certainly! Here's a README for the script that provides an overview of its funct
# Docker Stack Management Script # Docker Stack Management Script
This script is designed to manage a Docker stack, particularly for Phraseanet applications. It provides functionalities to start, stop, check, and gather information about the Docker stack, including version checks, log viewing, and environment details. This script is an helper designed to manage a Phraseanet Docker compose stack by wrapping docker compose commande. It provides functionalities to start, stop, check, and gather information about the Docker stack, including docker and Phraseanet version checks, log viewing, and environment details.
## Features ## Features

View File

@@ -137,7 +137,15 @@ display_info() {
echo echo
fi fi
else else
echo "Phraseanet container is not running. Cannot fetch version information." # Extract version from Version.php file
local version_php_file="lib/Alchemy/Phrasea/Core/Version.php"
if [ -f "$version_php_file" ]; then
local version_from_file=$(grep -o "private \$number = '[^']*" "$version_php_file" | sed "s/private \$number = '//;s/'//")
echo "Version from Version.php: $version_from_file"
else
echo "Version.php file not found."
fi
echo "Phraseanet container is not running. Cannot fetch version information from container."
echo echo
fi fi
else else