Skip to content

Commit

Permalink
Update to docker compose
Browse files Browse the repository at this point in the history
Also, set platform linux/amd64 for httpbin. It does not have arm64 image
and starting this container fails on arm64 Macs.
  • Loading branch information
wojtekmach committed Aug 3, 2024
1 parent 380212f commit caf1b72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mix test --exclude requires_internet_connection
Run all tests:

```sh
DOCKER_USER="$UID:$GID" docker-compose up --detach # or podman-compose up --detach
DOCKER_USER="$UID:$GID" docker compose up --detach # or podman-compose up --detach
mix test --include proxy
```

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:

httpbin:
image: docker.io/kennethreitz/httpbin:latest
platform: linux/amd64
ports:
- "8080:80"

Expand Down
2 changes: 1 addition & 1 deletion test/support/mint/http_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Mint.HttpBin do

def proxy_host() do
# the proxy runs in docker so we use the
# docker-compose name to connect
# docker compose name to connect
"caddyhttpbin"
end

Expand Down

0 comments on commit caf1b72

Please sign in to comment.