cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.56k stars 365 forks source link

Gitlab CI Fails #1530

Open t-moe opened 2 months ago

t-moe commented 2 months ago

Is it possible that the linked FAQ is out of date?

i always get

Error: 0: no container engine found

here is my example repo https://gitlab.com/t-moe/cross-gitlab-ci-test/ with an example run: https://gitlab.com/t-moe/cross-gitlab-ci-test/-/jobs/7403853167

Originally posted by @t-moe in https://github.com/cross-rs/cross/issues/1507#issuecomment-2243188429

Emilgardis commented 2 months ago

Do you mean https://github.com/cross-rs/cross/wiki/FAQ#gitlab-ci ? It might be :/

This might be interesting https://github.com/cross-rs/cross/issues/1351#issuecomment-2209463985 however

t-moe commented 2 months ago

Yes, I mean that one.

I read that comment, but this also does not resolve the issue:

Using docker image sha256:074f1687a41ccf251dae357352554e41bd8168aecd480acab710389d6f78837d for docker:18.09 with digest docker@sha256:58469a43b529313091f1df424037895a9961b27149aafec812ce8fd8d7ac0c9d ... $ printenv | grep -v "^HOSTNAME=" > env.list $ docker run --rm --env-file env.list -v /var/run/docker.sock:/var/run/docker.sock rust:latest bash -c "git clone $CI_REPOSITORY_URL /data && cd /data/ && cross -v build" docker: error during connect: Post http://docker:2375/v1.39/containers/create: dial tcp: lookup docker on 127.0.0.11:53: no such host.

Emilgardis commented 2 months ago

try using cross from the main branch

t-moe commented 1 month ago

Same or similar error. I've tried various workarounds, listed in the issue tracker. None of them seemd to work. (Sorry for not having them listed out here, for further reference).

In the end I had to pivot to manually invoking cross on my developer machine, because I could not spend more time on this issue :(.

Emilgardis commented 1 month ago

Sorry you're having issues! I've not experimented with gitlab too much so I'm not super familiar, hopefully I can get some time to look into the woes people are having with it + cross