Releases: tiny-blocks/docker-container
Releases · tiny-blocks/docker-container
v2.5.1
v2.5.0
- Added a
HostEnvironmentutility to detect Docker execution and fetch the current container hostname. - Introduced
DockerNetworkConnectand updatedContainerCommandHandler::run()to connect the “host” (test-runner) container to the target network when inside Docker. - Updated unit tests and mocks to account for the additional network-connect command and added a regression test for the “outside Docker” path.
v2.4.0
- Parse host port bindings from
docker inspect(NetworkSettings.Ports) and store them alongside exposed ports. - Extend the
Portscontract + implementation withhostPorts()andfirstHostPort(). - Add unit tests and README examples covering host port mappings, multiple mappings, and null bindings.
v2.3.0
- Added
ShutdownHookto make shutdown registration injectable/testable and wired it through container startup. - Added
ContainerReaper+DockerReapercommand and changedrunIfNotExists()to return a “shared” wrapper (Reused) that no-opsremove()/stopOnShutdown(). - Added Infection mutation-testing configuration and extended unit tests to validate new behaviors and command composition.
v2.2.0
- Added
FlywayDockerContainer/FlywayContainerfor configuring and running Flyway commands against a MySQL source. - Introduced managed-resource cleanup via
ContainerStarted::remove()andContainerStarted::stopOnShutdown(), plus labeled network creation and pruning. - Updated unit/integration tests, README, and Makefile to reflect parallel image pulls, Flyway usage, and managed network labeling.
v2.1.0
- Add
pullImage()to containers (and document it) to start image pulls beforerun()/runIfNotExists(). - Refactor container inspection/lookup into dedicated internal collaborators (
ContainerLookup,ContainerInspection) and add automatic network creation. - Update mocks/fixtures/tests to new parameter naming and to cover the new behaviors.
v2.0.0
- Introduces
ContainerDefinition+ mapping/value objects (ports, volumes, env vars, copy instructions) and rewrites Docker command classes to build CLI strings from definitions. - Adds timeout-based dependency waiting (
ContainerWaitForDependency) and a newContainerWaitTimeoutexception, updates MySQL readiness checks. - Replaces/rewrites many unit tests with new mocks/fixtures and updates README/Makefile/composer dependencies.
v1.5.0
- Updates dependencies and improve CI configuration.
v1.4.0
- Bump PHP requirement to 8.5 and update related dependencies.
- Refactor Makefile with improved targets, help, and Docker image usage.
- Revise composer scripts for consistency and remove phpmd.
- Enhance CI workflow with build artifact caching and updated PHP version.
- Adjust .gitattributes and .gitignore for updated project structure.
- Update phpstan config to ignore new error pattern.
v1.3.0
- Updates dependency versions.
- Added GitHub code scanning (CodeQL) workflow to enable automated security analysis.