Adds a DIND CI config
Updates DIND to use a service container Try again Use a temporary Docker socket mount point on the host Typo /var/run instead Try higher time out value
This commit is contained in:
parent
b34ef255c0
commit
f9de5c36be
17
.woodpecker/.docker-dind.yml
Normal file
17
.woodpecker/.docker-dind.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
platform: linux/amd64
|
||||
|
||||
pipeline:
|
||||
job-docker-dind:
|
||||
image: docker:dind
|
||||
commands:
|
||||
- sleep 10 # give docker enough time to start
|
||||
- docker run --rm hello-world
|
||||
volumes:
|
||||
- /tmp/docker-dind/socket:/var/run
|
||||
|
||||
services:
|
||||
docker:
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- /tmp/docker-dind/socket:/var/run
|
|
@ -7,8 +7,6 @@ platform: linux/amd64
|
|||
|
||||
pipeline:
|
||||
job-docker:
|
||||
# Uses a custom DIND job instead of the plugin because of
|
||||
# the dynamic setting of the registry from secrets.
|
||||
image: docker:dind
|
||||
commands:
|
||||
- docker run --rm hello-world
|
|
@ -1 +1,7 @@
|
|||
# woodpecker-lxc-test
|
||||
# Woodpecker LXC Test
|
||||
|
||||
This repository contains different Woodpecker CI configurations to run the Docker `hello-world` example on multiple Woodpecker backends.
|
||||
|
||||
- [.docker-dind.yml](.woodpecker/.docker-dind.yml)
|
||||
- [.docker-host.yml](.woodpecker/.docker-host.yml)
|
||||
- [.lxc.yml](.woodpecker/.lxc.yml)
|
||||
|
|
Loading…
Reference in a new issue