opentsdb: Upgrade to 2.1.0-RC1
This commit is contained in:
parent
bc8fd69fe8
commit
751a2943f4
@ -5,6 +5,10 @@ with lib;
|
||||
let
|
||||
cfg = config.services.opentsdb;
|
||||
|
||||
configFile = pkgs.writeText "opentsdb.conf" ''
|
||||
tsd.core.auto_create_metrics = true
|
||||
'';
|
||||
|
||||
in {
|
||||
|
||||
###### interface
|
||||
@ -68,12 +72,13 @@ in {
|
||||
requires = [ "hbase.service" ];
|
||||
|
||||
environment.JAVA_HOME = "${pkgs.jre}";
|
||||
path = [ pkgs.gnuplot ];
|
||||
|
||||
serviceConfig = {
|
||||
PermissionsStartOnly = true;
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
ExecStart = "${cfg.package}/bin/tsdb tsd --staticroot=${cfg.package}/share/opentsdb/static --cachedir=/tmp/opentsdb --port=${toString cfg.port}";
|
||||
ExecStart = "${cfg.package}/bin/tsdb tsd --staticroot=${cfg.package}/share/opentsdb/static --cachedir=/tmp/opentsdb --port=${toString cfg.port} --config=${configFile}";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,16 +1,21 @@
|
||||
{ stdenv, fetchurl, curl, jdk, jre, makeWrapper, nettools, python }:
|
||||
{ stdenv, autoconf, automake, fetchurl, curl, jdk, jre, makeWrapper, nettools, python }:
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "opentsdb-2.0.1";
|
||||
name = "opentsdb-2.1.0-rc1";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://github.com/OpenTSDB/opentsdb/releases/download/v2.0.1/opentsdb-2.0.1.tar.gz;
|
||||
sha256 = "1q2gkl72yjzd8yrggl0018m9s8mc9zwnz3d8ias54vqh3irypc2c";
|
||||
url = https://github.com/OpenTSDB/opentsdb/archive/v2.1.0RC1.tar.gz;
|
||||
sha256 = "01li02j8kjanmas2gxkcz3gsn54nyfyvqdylxz3fqqjgg6y7hrm7";
|
||||
};
|
||||
|
||||
buildPhase = "find .";
|
||||
buildInputs = [ autoconf automake curl jdk makeWrapper nettools python ];
|
||||
|
||||
buildInputs = [ curl jdk makeWrapper nettools python ];
|
||||
configurePhase = ''
|
||||
./bootstrap
|
||||
mkdir build
|
||||
cd build
|
||||
../configure --prefix=$out
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make install
|
||||
|
Loading…
Reference in New Issue
Block a user