contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.78k stars 230 forks source link

deb packages for arm64 #480

Closed Zambiorix closed 4 months ago

Zambiorix commented 4 months ago

Hi,

Is there also a deb package available for arm64?

Thanks Cheers

Gerd

mperham commented 4 months ago

Not today, there's been little to no demand for deb/rpm in general. The amd64 packages are there because I set it up years ago but I never added arm64. All of my customers appear to be using Docker. I'd be ok with a PR to add arm64 support.

Zambiorix commented 4 months ago

Ok, I finished an update of the makefile and tested it successfully on both amd64 and arm64 servers I've also added some convenience targets.

$ make package
go generate github.com/contribsys/faktory/webui
# brew install upx
upx -qq ./faktory
  10879739 ->   5973108   54.90%   linux/amd64   faktory
fpm -s dir -t deb -n faktory -v 1.9.1 -p packaging/output/systemd \
    --depends redis-server \
    --deb-priority optional --category admin \
    --no-deb-no-default-config-files \
    --after-install packaging/scripts/postinst.deb.systemd \
    --before-remove packaging/scripts/prerm.deb.systemd \
    --after-remove packaging/scripts/postrm.deb.systemd \
    --url https://contribsys.com/faktory \
    --description "Background job server" \
    -m "Contributed Systems LLC <info@contribsys.com>" \
    --iteration 1 --license "GPL 3.0" \
    --vendor "Contributed Systems" -a amd64 \
    faktory=/usr/bin/faktory \
    packaging/root/=/
Created package {:path=>"packaging/output/systemd/faktory_1.9.1-1_amd64.deb"}
fpm -s dir -t rpm -n faktory -v 1.9.1 -p packaging/output/systemd \
    --depends redis \
    --rpm-compression bzip2 \
    --rpm-os linux \
    --after-install packaging/scripts/postinst.rpm.systemd \
    --before-remove packaging/scripts/prerm.rpm.systemd \
    --after-remove packaging/scripts/postrm.rpm.systemd \
    --url https://contribsys.com/faktory \
    --description "Background job server" \
    -m "Contributed Systems LLC <info@contribsys.com>" \
    --iteration 1 --license "GPL 3.0" \
    --vendor "Contributed Systems" -a amd64 \
    faktory=/usr/bin/faktory \
    packaging/root/=/
Created package {:path=>"packaging/output/systemd/faktory-1.9.1-1.x86_64.rpm"}
$ make package_arm64
go generate github.com/contribsys/faktory/webui
# brew install upx
upx -qq ./faktory
  10548709 ->   5612692   53.21%   linux/arm64   faktory
fpm -s dir -t deb -n faktory -v 1.9.1 -p packaging/output/systemd \
    --depends redis-server \
    --deb-priority optional --category admin \
    --no-deb-no-default-config-files \
    --after-install packaging/scripts/postinst.deb.systemd \
    --before-remove packaging/scripts/prerm.deb.systemd \
    --after-remove packaging/scripts/postrm.deb.systemd \
    --url https://contribsys.com/faktory \
    --description "Background job server" \
    -m "Contributed Systems LLC <info@contribsys.com>" \
    --iteration 1 --license "GPL 3.0" \
    --vendor "Contributed Systems" -a arm64 \
    faktory=/usr/bin/faktory \
    packaging/root/=/
Created package {:path=>"packaging/output/systemd/faktory_1.9.1-1_arm64.deb"}
fpm -s dir -t rpm -n faktory -v 1.9.1 -p packaging/output/systemd \
    --depends redis \
    --rpm-compression bzip2 \
    --rpm-os linux \
    --after-install packaging/scripts/postinst.rpm.systemd \
    --before-remove packaging/scripts/prerm.rpm.systemd \
    --after-remove packaging/scripts/postrm.rpm.systemd \
    --url https://contribsys.com/faktory \
    --description "Background job server" \
    -m "Contributed Systems LLC <info@contribsys.com>" \
    --iteration 1 --license "GPL 3.0" \
    --vendor "Contributed Systems" -a arm64 \
    faktory=/usr/bin/faktory \
    packaging/root/=/
Created package {:path=>"packaging/output/systemd/faktory-1.9.1-1.aarch64.rpm"}
Zambiorix commented 4 months ago

PR submitted