Skip to content

Releases: tiny-blocks/docker-container

v2.5.1

14 Apr 18:19
4ab0ee9

Choose a tag to compare

  • Extend Contracts\Address and Contracts\Ports with environment-aware connection methods.
  • Implement the new methods in internal Address and Ports models using HostEnvironment::isInsideDocker().
  • Add unit tests (with file_exists overrides) and document usage in the README.

v2.5.0

14 Apr 02:57
1086be2

Choose a tag to compare

  • Added a HostEnvironment utility to detect Docker execution and fetch the current container hostname.
  • Introduced DockerNetworkConnect and updated ContainerCommandHandler::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

14 Apr 01:42
9512f5c

Choose a tag to compare

  • Parse host port bindings from docker inspect (NetworkSettings.Ports) and store them alongside exposed ports.
  • Extend the Ports contract + implementation with hostPorts() and firstHostPort().
  • Add unit tests and README examples covering host port mappings, multiple mappings, and null bindings.

v2.3.0

14 Apr 00:55
ac45796

Choose a tag to compare

  • Added ShutdownHook to make shutdown registration injectable/testable and wired it through container startup.
  • Added ContainerReaper + DockerReaper command and changed runIfNotExists() to return a “shared” wrapper (Reused) that no-ops remove() / stopOnShutdown().
  • Added Infection mutation-testing configuration and extended unit tests to validate new behaviors and command composition.

v2.2.0

13 Apr 21:53
f6bc5d0

Choose a tag to compare

  • Added FlywayDockerContainer / FlywayContainer for configuring and running Flyway commands against a MySQL source.
  • Introduced managed-resource cleanup via ContainerStarted::remove() and ContainerStarted::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

13 Apr 17:37
0c0f2e4

Choose a tag to compare

  • Add pullImage() to containers (and document it) to start image pulls before run()/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

31 Mar 11:38
b6e0cd1

Choose a tag to compare

  • 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 new ContainerWaitTimeout exception, updates MySQL readiness checks.
  • Replaces/rewrites many unit tests with new mocks/fixtures and updates README/Makefile/composer dependencies.

v1.5.0

10 Feb 01:40
3c6851f

Choose a tag to compare

  • Updates dependencies and improve CI configuration.

v1.4.0

14 Jan 02:17
656f14d

Choose a tag to compare

  • 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

03 Jan 15:45
8342d51

Choose a tag to compare

  • Updates dependency versions.
  • Added GitHub code scanning (CodeQL) workflow to enable automated security analysis.