Releases: tiny-blocks/docker-container
Releases · tiny-blocks/docker-container
v2.5.3
v2.5.2
- Replaced string-based Docker command rendering with
Command::toArguments()and executed vianew Process([...]). - Updated Docker command builders and error rendering to work with argument arrays and safe command display.
- Expanded/adjusted unit tests for edge cases (timeouts, port parsing, reaper behavior) and refreshed project tooling/docs config.
v2.5.1
- Extend
Contracts\AddressandContracts\Portswith environment-aware connection methods. - Implement the new methods in internal
AddressandPortsmodels usingHostEnvironment::isInsideDocker(). - Add unit tests (with
file_existsoverrides) and document usage in the README.
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.