docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Add check dependencies script

Open YevhenZvieriev opened this issue 1 year ago • 1 comments

Script Overview

Introduces a script for the swift and straightforward installation of Magento 2, specifically tailored for beginners. The script provides helpful recommendations for dependencies.

Highlighted Features

  • Simple interface for selecting the Magento 2 version.
  • Dependency recommendations tailored to the chosen Magento version.
  • Streamlines the installation process, saving time and effort.

Screenshot_2023-12-07_18-25-55

Screenshot_2023-12-07_18-26-24

Your contributions, feedback, and suggestions are welcome!

YevhenZvieriev avatar Dec 07 '23 17:12 YevhenZvieriev

PR Summary

  • Introduction of a New File to Monitor Software Dependencies We've added a new file named compose/bin/check-dependencies. This is a script that interacts with the user, specifically asking for their Magento 2 version. Once received, it then provides recommended software dependencies correlating to that version. Key functions in this file are print_magento_versions and print_dependencies. These specifically list out available Magento 2 versions and display the relevant dependencies for a chosen version, respectively. This feature enhances the user's ability to manage software dependencies effectively.

what-the-diff[bot] avatar Dec 07 '23 17:12 what-the-diff[bot]

  1. The shebang was changed from #!/bin/bash to #!/usr/bin/env bash.

  2. I added the documentation to the README and Makefile.

  3. Can you check it again?

The problem is that MacOS uses an older version of Bash by default, which does not support associative arrays (declare -A). To fix this, you need to use bash version 4 or higher.

In my case, the script works perfectly:

jenyamba@Acer-Aspire-A515-47:~/Projects/magento247$ bin/check-dependencies 
Enter the Magento 2 version you'd like to check dependencies on:  2.4.6-p4
Recommended software dependencies:
  • Composer:2.2
  • Elasticsearch:8.5,7.17
  • OpenSearch:2.5
  • MariaDB:10.6
  • MySQL:8.0
  • PHP:8.2,8.1
  • RabbitMQ:3.11,3.9
  • Redis:7.0
  • Varnish:7.3
  • Apache:2.4
  • nginx:1.24
  • 'AWS-Aurora-(MySQL)':8.0
  • 'AWS-S3':✔️
  • 'AWS-MQ':3.9.16
  • 'AWS-ElastiCache':Redis6.2
  • 'AWS-Elasticsearch':--
  • 'AWS-OpenSearch':1.2
jenyamba@Acer-Aspire-A515-47:~

I will fix compatibility with MacOS in the next commit.

YevhenZvieriev avatar Mar 19 '24 12:03 YevhenZvieriev

I added compatibility with MacOS in the previous commit, so now it should work on MacOS.

Please feel free to check it.

YevhenZvieriev avatar Mar 19 '24 14:03 YevhenZvieriev

Great, thanks, works as expected! Merging in 👍

markshust avatar Mar 22 '24 18:03 markshust