Try without dind
continuous-integration/drone/push Build encountered an error Details

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-12-16 18:55:06 +01:00
parent 5b20b93184
commit 86139dcac7
1 changed files with 7 additions and 24 deletions

View File

@ -31,7 +31,7 @@ local add_build_steps() = [
'rm -rf target/' + arch.target + '/release/*',
],
environment: {
CROSS_REMOTE: true,
CROSS_DOCKER_IN_DOCKER: true,
},
depends_on: ['Wait for Docker'],
}
@ -55,10 +55,14 @@ local add_build_steps() = [
'while ! docker image ls; do sleep 1; done',
'docker info',
'docker pull hello-world:latest',
'docker run --rm hello-world:latest',
],
environment: {
CROSS_DOCKER_IN_DOCKER: true,
},
volumes: [{
name: 'dockersock',
path: '/var/run',
path: '/var/run/docker.sock',
}],
}] +
add_build_steps() +
@ -89,32 +93,11 @@ local add_build_steps() = [
},
],
services: [{
name: 'docker',
image: 'docker:dind',
pull: true,
privileged: true,
volumes: [
{
name: 'dockersock',
path: '/var/run',
},
{
name: 'docker-storage',
path: '/var/lib/docker',
},
],
}],
volumes: [
{
name: 'dockersock',
temp: {},
},
{
name: 'docker-storage',
host: {
path: '/srv/drone/docker-dind-rust',
path: '/var/run/docker.sock',
},
},
],