tusd icon indicating copy to clipboard operation
tusd copied to clipboard

Installation using package managers

Open kishaningithub opened this issue 2 years ago • 10 comments

To reduce the "getting started" barrier which begins with the installation itself..

As part of the release i propose publishing it to homebrew and other package managers (apt, snap, choco etc)

kishaningithub avatar Mar 17 '22 13:03 kishaningithub

Yes, we would love to offer tusd using package manager but have no experience with including tusd there. Do you have some knowledge and would be able to help us?

Acconut avatar Mar 28 '22 21:03 Acconut

I have packaged tusd for nixpkgs, which will make it easy to get a built binary on NixOS, any Linux distribution, and OSX.

After my PR is merged, install the nix package manager and run:

nix-shell -p tusd --run 'tusd --help'

Before the PR is merged, you can try it out by pinning the nixpkgs version:

NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/14a76bca594408f98da6666cd2551d871230277c.tar.gz nix-shell -p tusd --run 'tusd --help'

The PR also includes an automated test that will run tusd on a VM, and do an upload from another VM.

I would like to have co-maintainers for tusd in nixpkgs; please let me know on that PR if you are interested. You don't need to run NixOS to use nix packages, and you don't need to have commit rights to become a co-maintainer.

nh2 avatar Apr 03 '22 19:04 nh2

@kvz I read on the blog that Transloadit is using Nix as well -- would you join me as co-maintainer on the above nixpkgs PR for tusd?

nh2 avatar Apr 04 '22 14:04 nh2

We could probably ask @Ma27 to provide assistance with reviewing your Nix tusd PR. As for the other distros, https://github.com/jordansissel/fpm used to be a good way to build rpms and debs, but this was from hearsay and a long time ago, I do not have hands-on experience, things may have changed.

Since tusd is just a single binary, i can't imagine it would be very hard, but knowing people who have done it before and are willing to lend a hand probably helps.

kvz avatar Apr 04 '22 14:04 kvz

@kvz To clarify, it's less that I'm looking for technical help with that PR (reviews are of course always appreciated), but that I don't want to be the only person listed as maintainer, e.g. to do future version updates.

I packaged tusd because I want to try it out for my use case and want it to be available, but I think it's healthy to have more than 1 maintainer in such situations, as it isn't clear yet whether I'll use tusd for anything serious or not.

nh2 avatar Apr 04 '22 14:04 nh2

There is an "Request For Package" in Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014812 But, as far as I know, no one is working on this, as of now.

geor-g avatar Nov 15 '22 11:11 geor-g

I'm thinking of starting an opencollective for tus as an org, and then we could perhaps sponsor a debian maintainer from donations, if any. Would that work, or is that in fact not how any of that works

kvz avatar Nov 15 '22 11:11 kvz

I'm thinking of starting an opencollective for tus as an org, and then we could perhaps sponsor a debian maintainer from donations, if any. Would that work, or is that in fact not how any of that works

This could work, yes. :+1:

geor-g avatar Nov 15 '22 11:11 geor-g

I highly recommend using goreleaser for generating artifacts (.Deb, .rpm, Dockerfile, homebrew formulas, snaps etc) and publishing them

https://goreleaser.com/

Yes this tool is opensource and is widely used across several go projects for this purpose 😊

kishaningithub avatar Nov 15 '22 16:11 kishaningithub

GoReleaser looks interesting indeed! So far we do a lot of this work manual in our scripts, which works fine. But maybe this tool could clean that up in the future. Thanks for sharing!

Acconut avatar Feb 11 '23 20:02 Acconut