https://github.com/ecomdev/testcontainer-magento-data
Test containers for rapid integration testing
https://github.com/ecomdev/testcontainer-magento-data
Last synced: 11 months ago
JSON representation
Test containers for rapid integration testing
- Host: GitHub
- URL: https://github.com/ecomdev/testcontainer-magento-data
- Owner: EcomDev
- License: mit
- Created: 2024-12-28T22:14:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T16:11:32.000Z (about 1 year ago)
- Last Synced: 2025-04-23T23:55:48.382Z (11 months ago)
- Size: 750 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐳 Test-Containers for Quick Magento Development
[](https://github.com/EcomDev/testcontainer-magento-data/actions/workflows/docker-images.yml)
[](https://github.com/EcomDev/testcontainer-magento-data-php/actions/workflows/php-package.yml)
[](https://github.com/EcomDev/testcontainer-magento-data-rust/actions/workflows/rust-package.yml)
This package simplifies the process of automated testing with real database and search engine
## ✨ Features
- 📦 **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
## 📋 Requirements
- **🐳 Docker**: Ensure Docker is installed and operational on your system.
## 📦 Available images
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
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 data
- `mariadb` - Pre-populated MariaDB database container with relevant Magento schema and data
- `opensearch` - Pre-populated OpenSearch container with relevant Magento indexes based on db data
## Prebuild Packages
Packages available in the following languages to streamline usage of the Magento data image:
- [ecomdev/testcontainers-magento-data](https://github.com/EcomDev/testcontainer-magento-data-php) composer package in PHP
- [testcontainers-magento-data](https://github.com/EcomDev/testcontainer-magento-data-rust) cargo crate in Rust
## 📜 License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.