Skip to content

Commit 50b11d6

Browse files
authored
Switch from "docker-compose" to "docker compose" (#448)
Also, set platform linux/amd64 for httpbin. It does not have arm64 image and starting this container fails on arm64 Macs.
1 parent 380212f commit 50b11d6

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: mix dialyzer --plt
7373

7474
- name: Start docker
75-
run: DOCKER_USER="$UID:$GID" docker-compose up --detach
75+
run: DOCKER_USER="$UID:$GID" docker compose up --detach
7676

7777
- name: Check for unused dependencies
7878
run: mix do deps.get, deps.unlock --check-unused

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ mix test --exclude requires_internet_connection
131131
Run all tests:
132132

133133
```sh
134-
DOCKER_USER="$UID:$GID" docker-compose up --detach # or podman-compose up --detach
134+
DOCKER_USER="$UID:$GID" docker compose up --detach # or podman-compose up --detach
135135
mix test --include proxy
136136
```
137137

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313

1414
httpbin:
1515
image: docker.io/kennethreitz/httpbin:latest
16+
platform: linux/amd64
1617
ports:
1718
- "8080:80"
1819

test/support/mint/http_bin.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Mint.HttpBin do
55

66
def proxy_host() do
77
# the proxy runs in docker so we use the
8-
# docker-compose name to connect
8+
# docker compose name to connect
99
"caddyhttpbin"
1010
end
1111

0 commit comments

Comments
 (0)