woodpecker icon indicating copy to clipboard operation
woodpecker copied to clipboard

package it for alpine

Open 6543 opened this issue 3 years ago • 9 comments

make it posible to just install it via: apk add woodpecker-server for the server and config it via /etc/woodpecker/server.conf

workers via: apk add woodpecker-agent and config via /etc/woodpecker/agent.conf :point_up: pkg dependency -> docker


if done we can git rm Dockerfile.agent.alpine Dockerfile.alpine

6543 avatar Jun 28 '21 18:06 6543

Packaging it for alpine and having an alpine image are two different things.

I personally prefer alpine images oder scratch images because you got a shell within the container for debugging and stuff like that.

tboerger avatar Jul 01 '21 16:07 tboerger

Sounds like the following 3 methods of releasing woodpecker server and agent are requested:

  • docker scratch image with the binary only (slim and nice for production usage)
  • docker image based on alpine (nice for debugging as tboerger said)
  • apk shipped to some registry to install via apk add woodpecker-server on existing alpine servers

Maybe releasing the cli as docker images and apk package would be nice as well.

@6543 Have you thought about using goreleaser? It is able to release binaries, docker images and apk / deb files. Docs In addition to that it can create changelogs from semantic versioning. The execution can be done automatically by running from woodpecker ci, so almost no manual interaction would be required to release new versions.

anbraten avatar Jul 23 '21 22:07 anbraten

Exactly my thoughts!

6543 avatar Jul 24 '21 05:07 6543

Hi there.

I'm a maintainer of various packages for Alpine. I started work on packaging Woodpecker for Alpine many months ago, unfortunately other priorities got in the way. My intention at the time was to add it to the "testing" Alpine repo.

I'll dust off the old APKBUILD file I created and update it for 0.14.0 and see if I can get it into a usable state.

The advantage of having an official Alpine package it that it is then easy to use Woodpecker both on physical/VM machines and also in a Docker container (as you would only need "apk add woodpecker" in your Dockerfile).

dermotbradley avatar Aug 13 '21 03:08 dermotbradley

@dermotbradley thanks for the update, good to hear one is working on it :)

Feel free to link related merge requests here or ask me things, discord prevered it its more trivial and other people do not care abaut (prevent github sending spam mails;) )

6543 avatar Aug 13 '21 10:08 6543

Hey @dermotbradley, is there any progress on this?

qwerty287 avatar Nov 25 '23 14:11 qwerty287

@qwerty287 someone else got there before me and created a package 1 year ago:

https://pkgs.alpinelinux.org/packages?name=woodpecker&branch=edge&repo=&arch=&maintainer=leso-kn

This is currently in the "testing" repo which means it is only available for Alpine Edge (development version) and not yet in any Alpine release.

dermotbradley avatar Dec 25 '23 06:12 dermotbradley

uh nice I have a look :)

And if all is right ask if the maintainer want to move it to community :)

6543 avatar Dec 25 '23 18:12 6543

PS: if that's done we can close this issue here

6543 avatar Dec 25 '23 18:12 6543