Sign inSign up

80x86/drone-runner-podman

By 80x86

•Updated about 5 years ago

Drone pipeline runner that executes builds inside Podman containers

Image
1

2.4K

80x86/drone-runner-podman repository overview

⁠drone-runner-podman

this is just the same with drone-runner-docker, but with some bug fixed and make it work with podman

your drone ci yaml file does not need to change, you can still use type: docker, but with all the runners deployed with podman

container image: 80x86/drone-runner-podman:v1.6.3

docker hub: https://hub.docker.com/r/80x86/drone-runner-podman⁠

DOCKER_HOST=unix:///run/podman/podman.sock
DOCKER_API_VERSION=1.40

must run with podman root mode, rootless mode will result in failure to "Error response from daemon: container create: container tried to set network aliases for network drone-cUjB3tXSDe8mV586fUnY but is not connected to the network: network not found"

deploy a podman runner quick (for test demo):


sudo podman run -d \
  -v /run/podman/podman.sock:/run/podman/podman.sock \
  -e DRONE_RPC_PROTO=http \
  -e DRONE_RPC_HOST=192.168.8.123:3001 \
  -e DRONE_RPC_SECRET=xxxxxxxxxx \
  -e DRONE_RUNNER_CAPACITY=1 \
  -e DRONE_RUNNER_NAME=podman01 \
  -p 3011:3000 \
  --restart always \
  --name drone-runner-podman01 \
  80x86/drone-runner-podman:v1.6.3


The docker runner executes pipelines inside Docker containers. This runner is intended for linux workloads that are suitable for execution inside containers. This requires Drone server 1.6.0 or higher.

Documentation:
https://docs.drone.io/runner/docker/overview/⁠

Technical Support:
https://discourse.drone.io⁠

Issue Tracker and Roadmap:
https://trello.com/b/ttae5E5o/drone⁠

https://docs.podman.io/en/latest/_static/api.html⁠

debug

# curl -s --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info | jq

# curl -s --unix-socket /run/podman/podman.sock 'http://d/v1.0.0/containers/drone-GQYL8wZ9sFxYZehVzrm9/logs?follow=0&stderr=1&stdout=1' | tee

Tag summary

Content type

Image

Digest

Size

11.5 MB

Last updated

about 5 years ago

docker pull 80x86/drone-runner-podman