This package simplifies the process of automated testing with real database and search engine
- 📦 Pre-configured database and search containers: Instantly spin up containers with ready-to-use Magento data
- ⚙️ Easy setup and use: Use PHP or Rust package to automatically discard container after tests
- 🎯 Blazingly Fast: Container takes only few seconds to start, so you can focus on testing instead of waiting for db initialization
- 🐳 Docker: Ensure Docker is installed and operational on your system.
Each container image has a version tag with maximum software version supported by the Magento.
Image Tag | MariaDB Version | MySQL Version | OpenSearch |
---|---|---|---|
2.4.6-p7 | 10.6 | 8.0 | 2.12 |
2.4.6-p8 | 10.6 | 8.0 | 2.12 |
2.4.7-p2 | 10.6 | 8.0 | 2.12 |
2.4.7-p3,latest | 10.6 | 8.0 | 2.12 |
2.4.8-beta1 | 11.4 | 8.4 | 2.12 |
For now only 2.4.7
tags have sampledata
(e.g. 2.4.7-p3-sampledata
) variation, as on previous version sample data deploy fails.
Container images are generated under such naming schema:
ghcr.io/ecomdev/testcontainer-magento-data/[IMAGE_NAME]
With the following IMAGE_NAME
variations:
mysql
- Pre-populated MariaDB database container with relevant Magento schema and datamariadb
- Pre-populated MariaDB database container with relevant Magento schema and dataopensearch
- Pre-populated OpenSearch container with relevant Magento indexes based on db data
Packages available in the following languages to streamline usage of the Magento data image:
- ecomdev/testcontainers-magento-data composer package in PHP
- testcontainers-magento-data cargo crate in Rust
This project is licensed under the MIT License. See the LICENSE file for more details.