docker-magento
docker-magento copied to clipboard
Add check dependencies script
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.
Your contributions, feedback, and suggestions are welcome!
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 areprint_magento_versions
andprint_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.
-
The shebang was changed from
#!/bin/bash
to#!/usr/bin/env bash
. -
I added the documentation to the README and Makefile.
-
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.
I added compatibility with MacOS in the previous commit, so now it should work on MacOS.
Please feel free to check it.
Great, thanks, works as expected! Merging in 👍