Skip to content

Support hackney 4 unix sockets and retire MinioContainer - #280

Merged
jarlah merged 3 commits into
mainfrom
fix/hackney-4-unix-socket
Oct 21, 2026
Merged

jarlah merged 3 commits into
mainfrom
fix/hackney-4-unix-socket

Conversation

@jarlah

@jarlah jarlah commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Fixes #279.

hackney 4 unix sockets

hackney 4 checks out pooled connections as hackney_tcp regardless of URL transport (hackney.erl connect_pool_new), so http+unix:// Docker hosts get DNS-resolved and fail with :nxdomain.

  • Use pool: false for the Hackney adapter when the Docker host is a unix socket, and for the _ping probe in DockerUrl
  • Update mix.lock to hackney 4.8.5 (plus tesla 1.22.0, ex_aws 2.7.0) so CI actually exercises hackney 4

MinioContainer

minio/minio has been removed from Docker Hub (repo returns 404) and quay.io/minio/minio now requires auth, so the default image can't be pulled. MinioContainer.new/0 is now @deprecated and raises an ArgumentError pointing to Testcontainers.MinistackContainer. The test asserts the raise.

Testing

  • Full suite on hackney 4.8.5: all passing except the old minio test (image pull denied), which this PR replaces
  • Connection + generic container tests on hackney 1.25.0: 29/29

hackney 4 pooled connections always use TCP, so http+unix:// URLs get
resolved as hostnames and fail with :nxdomain. Disable pooling for unix
socket Docker hosts and the ping probe. Lock hackney 4.8.5 so CI covers it.

Fixes #279
@jarlah

jarlah commented Oct 21, 2026 •

Copy link
Copy Markdown
Member Author
  • should prob fix or remove minio container if it fails

minio/minio has been removed from Docker Hub, so the default image can no
longer be pulled. Deprecate the module and raise with a pointer to
MinistackContainer instead of failing on image pull.
@jarlah jarlah changed the title Support hackney 4 unix socket connections Support hackney 4 unix sockets and retire MinioContainer Oct 21, 2026
@jarlah
jarlah merged commit 5ed4054 into main Oct 21, 2026
8 of 9 checks passed
@jarlah
jarlah deleted the fix/hackney-4-unix-socket branch October 21, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support hackney 4.x

1 participant