-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging, releasing and publishing process
- Loading branch information
Daniel Krawczyk
committed
Dec 10, 2015
1 parent
c951289
commit 88b84ff
Showing
14 changed files
with
175 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"ArtifactsDest": "dist", | ||
"Tasks": [ | ||
"default", | ||
"publish-github" | ||
], | ||
"BuildConstraints": "linux,!arm darwin", | ||
"PackageVersion": "0.2.1", | ||
"TaskSettings": { | ||
"deb": { | ||
"other-mapped-files": { | ||
"/etc/init/marathon-consul.conf": "debian/marathon-consul.upstart", | ||
"/etc/marathon-consul.d/config.json": "debian/config.json" | ||
} | ||
}, | ||
"publish-github": { | ||
"body": "", | ||
"owner": "allegro", | ||
"repository": "marathon-consul" | ||
} | ||
}, | ||
"ConfigVersion": "0.9" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
marathon-consul () unreleased; urgency=low | ||
|
||
* Initial import | ||
|
||
-- Tomasz Janiszewski <tomasz.janiszewski@allegrogroup.com> Thu, 10 Dec 2015 09:40:43 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"Consul": { | ||
"Auth": { | ||
"Enabled": false, | ||
"Username": "", | ||
"Password": "" | ||
}, | ||
"Port": "8500", | ||
"SslEnabled": false, | ||
"SslVerify": true, | ||
"SslCert": "", | ||
"SslCaCert": "", | ||
"Token": "" | ||
}, | ||
"Web": { | ||
"Listen": ":4000" | ||
}, | ||
"Sync": { | ||
"Interval": 900000000000 | ||
}, | ||
"Marathon": { | ||
"Location": "localhost:8080", | ||
"Protocol": "http", | ||
"Username": "", | ||
"Password": "", | ||
"VerifySsl": true | ||
}, | ||
"Metrics": { | ||
"Target": "", | ||
"Prefix": "default", | ||
"Interval": 30000000000, | ||
"Addr": "" | ||
}, | ||
"LogLevel": "info" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Source: marathon-consul | ||
Section: misc | ||
Priority: extra | ||
Maintainer: Allegro Group | ||
Build-Depends: debhelper (>= 9.1.0), golang-go | ||
Standards-Version: 3.9.4 | ||
|
||
Package: marathon-consul | ||
Architecture: any | ||
Description: Marathon-consul service (performs Marathon Tasks registration as Consul Services for service discovery) | ||
Marathon-consul takes information provided by the Marathon event bus and forwards it to Consul agents. It also re-syncs all the information from Marathon to Consul on startup and repeats it with given interval. | ||
|
||
Package: marathon-consul-dev | ||
Architecture: all | ||
Description: Marathon-consul service (performs Marathon Tasks registration as Consul Services for service discovery) - development package | ||
Marathon-consul takes information provided by the Marathon event bus and forwards it to Consul agents. It also re-syncs all the information from Marathon to Consul on startup and repeats it with given interval. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Files: * | ||
Copyright: 2015 Allegro Group | ||
License: Apache-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
description "Marathon-consul service (performs Marathon Tasks registration as Consul Services for service discovery)" | ||
|
||
start on runlevel [2345] | ||
stop on runlevel [!2345] | ||
|
||
respawn | ||
|
||
script | ||
exec marathon-consul --config-file=/etc/marathon-consul.d/config.json | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
export GOPATH=$(CURDIR)::/usr/share/gocode | ||
|
||
PKGDIR=debian/marathon-consul | ||
|
||
%: | ||
dh $@ | ||
|
||
clean: | ||
dh_clean | ||
rm -rf $(CURDIR)/bin/* $(CURDIR)/pkg/* | ||
rm -f $(CURDIR)/goinstall.log | ||
|
||
binary-arch: clean | ||
dh_prep | ||
dh_installdirs | ||
cd $(CURDIR)/src && go install ./... | ||
|
||
mkdir -p $(PKGDIR)/usr/bin $(CURDIR)/bin/ | ||
mkdir -p $(PKGDIR)/usr/share/gopkg/ $(CURDIR)/pkg/ | ||
|
||
BINFILES=$(wildcard $(CURDIR)/bin/*) | ||
|
||
for x in$(BINFILES); do \ | ||
cp $$x $(PKGDIR)/usr/bin/; \ | ||
done; | ||
|
||
PKGFILES=$(wildcard $(CURDIR)/pkg/*.a) | ||
for x in$(PKGFILES); do \ | ||
cp $$x $(PKGDIR)/usr/share/gopkg/; \ | ||
done; | ||
|
||
dh_strip | ||
dh_compress | ||
dh_fixperms | ||
dh_installdeb | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
binary: binary-arch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters