Improve docker-compose installation and update documentation

- Add add_if_not_ok_compose function for CLI plugin installation
- Update check_docker_compose to use new installation method
- Document changes in CHANGELOG for version 1.10.1
develop
Dominik Dzienia 3 weeks ago
parent 3205df6b5d
commit de559b174e

@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.10.1] - 2026-01-05
### Changed
- Moved docker-compose patching after update to ensure updated docker-compose.yml gets patched
- Enhanced docker-compose installation to use CLI plugin directory
### Fixed
- Docker-compose patching for bitnami/mongodb to official mongo migration
## [1.10.0] - 2026-01-05
### Changed
- Migrated from bitnami/mongodb to official mongo image
## [1.9.5],[1.9.4],[1.9.3] - 2025-03-19 ## [1.9.5],[1.9.4],[1.9.3] - 2025-03-19
### Fixed ### Fixed

@ -713,6 +713,19 @@ add_if_not_ok_cmd() {
fi fi
} }
add_if_not_ok_compose() {
local RESULT=$?
if [ "$RESULT" -eq 0 ]; then
msgcheck "$1 installed"
else
ohai "Installing $1..."
mkdir -p "~/.docker/cli-plugins" >> "$LOGTO" 2>&1
curl -SL "https://github.com/docker/compose/releases/download/v2.29.7/docker-compose-linux-x86_64" -o "~/.docker/cli-plugins/docker-compose" >> "$LOGTO" 2>&1
chmod +x "~/.docker/cli-plugins/docker-compose" >> "$LOGTO" 2>&1
msgcheck "Installing $1 successfull"
fi
}
check_git() { check_git() {
git --version >/dev/null 2>&1 git --version >/dev/null 2>&1
add_if_not_ok "GIT" "git" add_if_not_ok "GIT" "git"
@ -724,8 +737,8 @@ check_docker() {
} }
check_docker_compose() { check_docker_compose() {
docker compose -v >/dev/null 2>&1 docker compose version >/dev/null 2>&1
add_if_not_ok "Docker compose" "docker-compose" add_if_not_ok_compose "Docker compose"
} }
patch_docker_compose() { patch_docker_compose() {

Loading…
Cancel
Save