๐Ÿณ Test-Containers for Quick Magento Development

January 7, 2025 ยท View on GitHub

Docker Build PHP Package Rust Package

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 TagMariaDB VersionMySQL VersionOpenSearch
2.4.6-p710.68.02.12
2.4.6-p810.68.02.12
2.4.7-p210.68.02.12
2.4.7-p3,latest10.68.02.12
2.4.8-beta111.48.42.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:

๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for more details.