consul icon indicating copy to clipboard operation
consul copied to clipboard

Feature request: Debian package + repository

Open sammcj opened this issue 12 years ago • 10 comments

I want to start by saying I really appreciate the excellent work hashicorp are doing.

It would be great if you could consider hosting a Debian package repo for Consul, this makes it much easier to manage updates and automated deployment.

Personally I find reprepo a very quick-and-easy tool for managing repositories - quick howto here: http://anonscm.debian.org/gitweb/?p=mirrorer/reprepro.git;a=blob_plain;hb=HEAD;f=docs/short-howto

sammcj avatar Apr 19 '14 09:04 sammcj

There is also this service; https://packagecloud.io/ might come in handy.

lsc avatar Apr 24 '14 09:04 lsc

While I don't agree that it's at all difficult to host an apt repo, that certainly does look like a good project.

sammcj avatar Apr 24 '14 09:04 sammcj

I wouldn't say its difficult, it is just another thing to maintain. Death by thousand paper cuts comes quickly with these things.

mitchellh avatar Apr 24 '14 09:04 mitchellh

@sammcj Not difficult, but might be a nuisance. Essentially what @mitchellh said.

lsc avatar Apr 24 '14 09:04 lsc

@sammcj Yeah I agree with @mitchellh. It's just yet another thing for us to maintain.

armon avatar Apr 30 '14 17:04 armon

For anyone interested, I just started maintaining a Launchpad PPA for Ubuntu at https://launchpad.net/~bcandrea/+archive/ubuntu/consul. It currently targets LTS releases (12.04/14.04) which are the ones I need, but I might consider adding intermediate releases as well.

I use a (more or less) simple Makefile to produce the package - you can find it at https://github.com/bcandrea/consul-deb if you are curious.

bcandrea avatar Aug 25 '14 00:08 bcandrea

thanks, @bcandrea!

jm3 avatar Dec 10 '14 23:12 jm3

The influxdb project makes good use of fpm for simultaneously building rpms, debs, and tars at the same time. https://github.com/influxdb/influxdb/blob/master/package.sh

It removes all details of maintaining the differences.

allen13 avatar Oct 06 '15 20:10 allen13

consul is a single binary, for easy (re-)distribution and handling. Packaging as .deb is just a three-liner with fpm:

wget -N https://releases.hashicorp.com/consul/0.6.0/consul_0.6.0_linux_amd64.zip
unzip -o consul_0.6.0_linux_amd64.zip
fpm --force --verbose -s dir -t deb -n consul -v 0.6 --url=http://consul.io --vendor=HashiCorp  --description "A distributed service discovery tool" ./consul=/usr/local/bin/consul

If you have not installed fpm yet, run gem install fpm before.

geekq avatar Dec 29 '15 09:12 geekq

@geekq This assumes you have your own build infrastructure, can trigger it on updates to some public URI address and don't want to parametise anything like the version. Or are you really suggesting someone would type those commands out every time one wants to upgrade consul?

haf avatar May 05 '16 15:05 haf