Hi everyone,
I hope you’re doing well. I’m reaching out to see if anyone has experience working with DevOps tools while installing Magento 2.x, specifically the Magento Open Source 2.4.5.
I’ve been struggling with some issues during the installation process when trying to integrate Magento Open Source 2.4.5 with Docker (Version 20.10.8) and Jenkins (Version 2.319.1).
I’m encountering configuration errors and dependency conflicts that are preventing a smooth setup. Some errors include missing PHP extensions, database connection failures, and conflicts in the Docker container environment.
Has anyone here faced similar problems when installing Magento 2.x with these devops software tools? If so, what steps did you take to resolve the configuration or environment issues? Are there specific settings or best practices I should follow to ensure compatibility?
I would really appreciate if you could share any experiences, recommendations, or useful resources. Any troubleshooting tips or advice would be greatly helpful, as this has been delaying our deployment process.
Thanks a lot for your support! Looking forward to hearing your suggestions.
Best regards,
Jonathan Jone
To resolve the errors, ensure all required PHP extensions (like intl and soap) are installed in your Docker container and verify that Docker’s networking allows communication with the database. Using custom Dockerfiles tailored to Magento’s needs can help, as well as setting up Jenkins pipelines to run Magento commands in stages. If these steps don't solve the issue, consider using managed magento hosting with dev-friendly tools, offering optimized configurations for Magento.
Hello @imjonathan2abf,
When dealing with DevOps tools like Docker and Jenkins for Magento 2.x installation, several common issues can arise due to environment misconfigurations.
RUN apt-get update && apt-get install -y \ php-gd php-intl php-mbstring php-soap php-xml php-xsl php-zip
depends_on:
- db
Ensure that your database credentials are correct and that the database service is running. If you're using Docker, you can define a MySQL service in your docker-compose.yml file:
version: '3.8'
services:
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: magento
MYSQL_ROOT_PASSWORD: root_password
ports:
- "3306:3306"
docker-compose up --build -d docker-compose exec -T php-fpm magento-setup.sh
RUN chown -R www-data:www-data /var/www/html RUN find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + RUN find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
By following these troubleshooting steps, you should be able to overcome the installation
issues you're facing with Magento 2.x using Docker and Jenkins.
If the issue will be resolved, Click Kudos & Accept as a Solution.