Open shandak opened 10 months ago
this is on a gitlab instance right? has there maybe been an update done in the base container that could've changed something?
it looks like cross tries to get info from not available container docker inspect runner-xqkuh56d-project-43-concurrent-0
.
I called to check list of containers docker container ls
it returned an empty list
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
We get the name using $HOSTNAME
here
yeah, I saw it, but Docker does not see any of the containers inside. Seems no one value fits because nothing is available.
can you run docker context inspect
please?
sure
docker context inspect
[
{
"Name": "default",
"Metadata": {},
"Endpoints": {
"docker": {
"Host": "tcp://docker:2375/",
"SkipTLSVerify": false
}
},
"TLSMaterial": {},
"Storage": {
"MetadataPath": "\u003cIN MEMORY\u003e",
"TLSPath": "\u003cIN MEMORY\u003e"
}
}
]
Interesting, that seems wrong
What do you expect to see from docker context inspect
instead of mine result @Emilgardis ?
Sorry, I meant that it seems correct.
I'm not sure how to proceed with this. docker inspect
is used to query about different kinds of objects in docker, and I can't remember what specific thing it's supposed to return with docker inspect $HOSTNAME
should we maybe try to ask Gitlab to restore that functionality using a bugreport on their tracker? https://gitlab.com/gitlab-org/gitlab/-/issues/new
or create a thread asking about it on their forum? https://forum.gitlab.com
If you have the gitlab container spawn a new container that runs the cross command it allows the cross container to work correctly
script:
- printenv | grep -v "^HOSTNAME=" > env.list
- docker run --rm --env-file env.list -v /var/run/docker.sock:/var/run/docker.sock image:latest bash -c "git clone $CI_REPOSITORY_URL /data && cd /data && chmod +x build.sh && ./build.sh"
Checklist
Describe your issue
A similar issue I found there https://github.com/cross-rs/cross/issues/1153 but
CROSS_REMOTE=1
is set and does not help. For some reason build does not work anymore(it worked without problems ~6 months before) and I can't figure out what the issue is. Below some related verbose info and error at the end:This is the dind config with CROSS_REMOTE = 1 for gitlab ci:
Dockefile body in use:
What target(s) are you cross-compiling for?
x86_64-unknown-linux-musl
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (ed713d9 2023-05-23)
Example
No response
Additional information / notes
No response