Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cannot build Docker images using Podman Compose #442

Conversation

kianmeng
Copy link
Contributor

@kianmeng kianmeng commented Jul 1, 2024

This PR resolves the following error when using podman-compose:

Error: short-name "caddy:2.6.4-alpine" did not resolve to an alias and
no unqualified-search registries are defined in
"/etc/containers/registries.conf"

We also bump the Docker image for Caddy and Alpine Linux.

This PR resolves the following error when using `podman-compose`:

    Error: short-name "caddy:2.6.4-alpine" did not resolve to an alias and
    no unqualified-search registries are defined in
    "/etc/containers/registries.conf"

We also bump the Docker image for Caddy and Alpine Linux.
@coveralls
Copy link

coveralls commented Jul 1, 2024

Pull Request Test Coverage Report for Build ee5b7d76b72b5283836d50aeab7b1f84ac630fdd-PR-442

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 87.389%

Totals Coverage Status
Change from base Build b9ade4aedb23e2f604eb769b57f76db3744c82e2: 0.0%
Covered Lines: 1275
Relevant Lines: 1459

💛 - Coveralls

@kianmeng
Copy link
Contributor Author

kianmeng commented Jul 1, 2024

@whatyouhide Not sure why, I kept getting this two test cases that failed on me, but these tests are pointing to localhost?

podman-compose up --force-recreate -d
mix test
  1) test connect/3 does not fall back to IPv4 if IPv4 is disabled (Mint.Core.Transport.TCPTest)
     test/mint/core/transport/tcp_test.exs:63
     match (=) failed
     code:  assert {:error, %Mint.TransportError{reason: :econnrefused}} =
              TCP.connect("localhost", port, active: false, inet6: true, inet4: false, timeout: 1
000)            
     left:  {:error, %Mint.TransportError{reason: :econnrefused}}
     right: {:error, %Mint.TransportError{reason: :nxdomain, __exception__: true}}
     stacktrace:                                                                                 
       test/mint/core/transport/tcp_test.exs:80: (test)                                          
                                                                                                 
..
  2) test connect/3 does not fall back to IPv4 if IPv4 is disabled (Mint.Core.Transport.SSLTest)      
     test/mint/core/transport/ssl_test.exs:250
     match (=) failed
     code:  assert {:error, %Mint.TransportError{reason: :econnrefused}} =
              SSL.connect("localhost", port,
                active: false,
                inet6: true,
                inet4: false,
                timeout: 1000,
                verify: :verify_none
              )
     left:  {:error, %Mint.TransportError{reason: :econnrefused}}
     right: {:error, %Mint.TransportError{reason: :nxdomain, __exception__: true}}
     stacktrace:
       test/mint/core/transport/ssl_test.exs:269: (test)

@whatyouhide
Copy link
Contributor

@kianmeng do you get them with Docker too? Because they are not failing in CI, it looks like.

@whatyouhide whatyouhide merged commit 61f0989 into elixir-mint:main Jul 1, 2024
3 checks passed
@kianmeng
Copy link
Contributor Author

kianmeng commented Jul 1, 2024

@kianmeng do you get them with Docker too? Because they are not failing in CI, it looks like.

I disabled the DNS adblocker, which seemed to work. Not sure why the adblocker was aggressively blocking localhost as well.

@kianmeng
Copy link
Contributor Author

kianmeng commented Jul 1, 2024

🥳 🥳 🥳 🥳 🥳

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.

3 participants