This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
81 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
default: | ||
$(MAKE) all | ||
test: | ||
bash -c "./scripts/test.sh $(TEST)" | ||
check: | ||
$(MAKE) test | ||
all: | ||
bash -c "./scripts/build.sh" |
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
pkg/config/ubuntu/trusty/etc/init/nsq_metrics_to_elasticsearch
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
pkg/config/ubuntu/trusty/etc/init/nsq_probe_events_to_elasticsearch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,19 @@ | ||
#!/bin/bash | ||
set -x | ||
# Find the directory we exist within | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
cd ${DIR} | ||
|
||
GITVERSION=`git describe --always` | ||
SOURCEDIR=${DIR}/.. | ||
BUILDDIR=$SOURCEDIR/build | ||
|
||
# Make dir | ||
mkdir -p $BUILDDIR | ||
|
||
# Clean build bin dir | ||
rm -rf $BUILDDIR/* | ||
|
||
# Build binary | ||
cd ../ | ||
go build -ldflags "-X main.GitHash=$GITVERSION" -o $BUILDDIR/metric-tank |
File renamed without changes.
File renamed without changes.
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,26 @@ | ||
#!/bin/bash | ||
set -x | ||
# Find the directory we exist within | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
cd ${DIR} | ||
|
||
: ${GOPATH:="${HOME}/.go_workspace"} | ||
: ${ORG_PATH:="github.com/raintank"} | ||
: ${REPO_PATH:="${ORG_PATH}/metrictank"} | ||
|
||
if [ ! -z ${CIRCLECI} ] ; then | ||
: ${CHECKOUT:="/home/ubuntu/${CIRCLE_PROJECT_REPONAME}"} | ||
else | ||
: ${CHECKOUT:="${DIR}/.."} | ||
fi | ||
|
||
export GOPATH | ||
|
||
bundle install | ||
|
||
echo "Linking ${GOPATH}/src/${REPO_PATH} to ${CHECKOUT}" | ||
mkdir -p ${GOPATH}/src/${ORG_PATH} | ||
ln -s ${CHECKOUT} ${GOPATH}/src/${REPO_PATH} | ||
|
||
cd ${GOPATH}/src/${REPO_PATH} | ||
go get -t ./... |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
# Find the directory we exist within | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
ls -l ${DIR}/../build/*.deb | ||
if [ -z ${PACKAGECLOUD_REPO} ] ; then | ||
echo "The environment variable PACKAGECLOUD_REPO must be set." | ||
exit 1 | ||
fi | ||
|
||
package_cloud push ${PACKAGECLOUD_REPO}/ubuntu/trusty ${DIR}/artifacts/*.deb | ||
git push --tags | ||
# Only do the ubuntu pkg for now. | ||
package_cloud push ${PACKAGECLOUD_REPO}/ubuntu/trusty ${DIR}/../build/*.deb |
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,24 @@ | ||
#!/bin/bash | ||
set -x | ||
BASE=$(dirname $0) | ||
CODE_DIR=$(readlink -e "$BASE/../") | ||
|
||
BUILD=$CODE_DIR/build | ||
|
||
ARCH="$(uname -m)" | ||
VERSION=$(git describe --long --always) | ||
|
||
PACKAGE_NAME="${BUILD}/metric_tank-${VERSION}_${ARCH}.deb" | ||
mkdir -p ${BUILD}/usr/sbin | ||
mkdir -p ${BUILD}/etc/init | ||
mkdir -p ${BUILD}/etc/raintank | ||
|
||
cp ${BASE}/config/ubuntu/trusty/etc/raintank/metric_tank.ini ${BUILD}/etc/raintank/ | ||
cp ${BASE}/etc/init/raintank-probe.conf ${BUILD}/etc/init | ||
mv ${BUILD}/raintank-probe ${BUILD}/usr/bin/ | ||
|
||
fpm -s dir -t deb \ | ||
-v ${VERSION} -n raintank-probe -a ${ARCH} --description "metrictank, the gorilla-inspired timeseries database backend for graphite" \ | ||
--deb-upstart ${BASE}/config/ubuntu/trusty/etc/init/metric_tank \ | ||
-C ${BUILD} -p ${PACKAGE_NAME} . | ||
|