diff --git a/CHANGELOG.md b/CHANGELOG.md index ed01c5f..6f9f9b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), 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 ### Fixed diff --git a/src/lib.sh b/src/lib.sh index fe1d1ed..e2371c0 100644 --- a/src/lib.sh +++ b/src/lib.sh @@ -713,6 +713,19 @@ add_if_not_ok_cmd() { 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() { git --version >/dev/null 2>&1 add_if_not_ok "GIT" "git" @@ -724,8 +737,8 @@ check_docker() { } check_docker_compose() { - docker compose -v >/dev/null 2>&1 - add_if_not_ok "Docker compose" "docker-compose" + docker compose version >/dev/null 2>&1 + add_if_not_ok_compose "Docker compose" } patch_docker_compose() {