commit a9088899131b35bd74981c50964c3cab0450c1fab69cedc298fb2bd1d5e211f9 Author: Martin Pluskal Date: Mon Jul 22 07:56:58 2024 +0000 - Update to version 2.7.6, see * https://github.com/influxdata/influxdb/releases/tag/v2.7.6 OBS-URL: https://build.opensuse.org/package/show/server:database/influxdb2?expand=0&rev=17 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..ebb80db --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + https://github.com/influxdata/influxdb.git + git + v2.7.6 + @PARENT_TAG@ + disable + v(.*) + influxdb2 + + + influxdb + + + *.tar + gz + + + + *.tar.gz + xz + + diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..7bb2785 --- /dev/null +++ b/config.yaml @@ -0,0 +1,24 @@ +# Default configuration overrides for Influxdb 2.0 +# To see all available options, use the following command: +# INFLUXD_CONFIG_PATH=/etc/influxdb2/config.yaml influxd print-config + +# No reporting by default +reporting-disable: true + +# Avoid OOM, adjust according to your HW specs +# By default it can easily exhaust RAM, so play it safe by default + +# Reduce number of concurrently running queries +query-concurrency: 8 +query-queue-size: 128 +# Maximum memory for all queries - 512M +query-max-memory-bytes: 536870912 +# Maximum memory per query - 64M +query-memory-bytes: 67108863 + +# Allow to move storage to different directory + +# Metadata +# bolt-path: /var/lib/influxdb/.influxdbv2/influxd.bolt +# Time series data +# engine-path: /var/lib/influxdb/.influxdbv2/engine diff --git a/influxdb-user.conf b/influxdb-user.conf new file mode 100644 index 0000000..6464578 --- /dev/null +++ b/influxdb-user.conf @@ -0,0 +1 @@ +u influxdb - "user for InfluxDB database server" /var/lib/influxdb diff --git a/influxdb.service b/influxdb.service new file mode 100644 index 0000000..8dd178f --- /dev/null +++ b/influxdb.service @@ -0,0 +1,17 @@ +[Unit] +Description=InfluxDB is an open-source, distributed, time series database +Documentation=https://docs.influxdata.com/influxdb/ +After=network.target + +[Service] +Environment="INFLUXD_CONFIG_PATH=/etc/influxdb2/config.yaml" +LimitNOFILE=65536 +ExecStart=/usr/bin/influxd --assets-path="/usr/share/influxdb2/ui" +Type=simple +StandardOutput=journal +StandardError=journal +User=influxdb +Group=influxdb + +[Install] +WantedBy=multi-user.target diff --git a/influxdb.tmpfiles b/influxdb.tmpfiles new file mode 100644 index 0000000..f38b001 --- /dev/null +++ b/influxdb.tmpfiles @@ -0,0 +1 @@ +d /run/influxdb 0775 influxdb influxdb diff --git a/influxdb2-2.7.5.tar.xz b/influxdb2-2.7.5.tar.xz new file mode 100644 index 0000000..d9476f4 --- /dev/null +++ b/influxdb2-2.7.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:465e49e970fbc60c01dd436f7145afde5f6dec6c437f46c6ef350c734ae4fd9b +size 9080808 diff --git a/influxdb2-2.7.6.tar.xz b/influxdb2-2.7.6.tar.xz new file mode 100644 index 0000000..f219474 --- /dev/null +++ b/influxdb2-2.7.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e47059875b2dbf289d305f350988828bd59c9e2d1e2f073fefe3ffbc2d65877 +size 9089432 diff --git a/influxdb2.changes b/influxdb2.changes new file mode 100644 index 0000000..33c6ea8 --- /dev/null +++ b/influxdb2.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Thu Jul 4 10:11:02 UTC 2024 - Matwey Kornilov + +- Update to version 2.7.6, see + * https://github.com/influxdata/influxdb/releases/tag/v2.7.6 + +------------------------------------------------------------------- +Wed Feb 21 15:31:03 UTC 2024 - Matwey Kornilov + +- Update to version 2.7.5, see + * https://github.com/influxdata/influxdb/releases/tag/v2.7.5 + +------------------------------------------------------------------- +Fri Jul 28 15:46:01 UTC 2023 - Matwey Kornilov + +- Update to version 2.7.1, see + * https://github.com/influxdata/influxdb/releases/tag/v2.7.1 + +------------------------------------------------------------------- +Sat Apr 1 18:26:17 UTC 2023 - Matwey Kornilov + +- Update to version 2.6.1, see + * https://github.com/influxdata/influxdb/releases/tag/v2.6.1 + +------------------------------------------------------------------- +Tue Oct 4 16:27:35 UTC 2022 - Matwey Kornilov + +- Update to version 2.3.0, see + * https://github.com/influxdata/influxdb/releases/tag/v2.3.0 + Drop 0001-fix-executor-do-not-assume-ints-are-64bits-4652.patch: + upstreamed + +------------------------------------------------------------------- +Thu Jun 9 15:54:42 UTC 2022 - Matwey Kornilov + +- Update to version 2.2.0, see + * https://github.com/influxdata/influxdb/releases/tag/v2.2.0 + Add 0001-fix-executor-do-not-assume-ints-are-64bits-4652.patch: + fix build on 32-bit architectures + +------------------------------------------------------------------- +Tue Nov 16 17:06:09 UTC 2021 - Matwey Kornilov + +- Update to version 2.1.1, see + * https://github.com/influxdata/influxdb/releases/tag/v2.1.1 +- influx binary has been deleted upstream: + * https://github.com/influxdata/influxdb/issues/21773 + +------------------------------------------------------------------- +Tue Oct 26 10:14:37 UTC 2021 - Matwey Kornilov + +- Update to version 2.0.9, see + * https://github.com/influxdata/influxdb/releases/tag/v2.0.9 + +------------------------------------------------------------------- +Fri Sep 24 13:50:29 UTC 2021 - Matwey Kornilov + +- Update to version 2.0.8, see + * https://github.com/influxdata/influxdb/releases/tag/v2.0.8 + +------------------------------------------------------------------- +Thu Jun 10 09:02:02 UTC 2021 - Michal Hrusecky + +- Reintroduce configuration file in etc and provide example configuration: + * no tracking by default + * conservative memory limits to prevent OOM + * description how to obtain list of possible values + * example how to move stored data into different directory + +------------------------------------------------------------------- +Thu Jun 10 08:22:49 UTC 2021 - Michal Hrusecky + +- Update to version 2.0.7, see + * https://github.com/influxdata/influxdb/releases/tag/v2.0.7 + +------------------------------------------------------------------- +Thu May 27 20:56:22 UTC 2021 - Michal Hrusecky + +- Include prebuild UI assets +- Drop the last mention of config file in service file + +------------------------------------------------------------------- +Wed May 19 21:51:38 UTC 2021 - Michal Hrusecky + +- Update to version 2.0.6, see + * https://github.com/influxdata/influxdb/releases/tag/v2.0.6 + * https://github.com/influxdata/influxdb/releases/tag/v2.0.5 + +------------------------------------------------------------------- +Mon May 17 21:34:31 UTC 2021 - Michal Hrusecky + +- Update service file not to use invalid options +- Dropping config file as upstream does and dropping unused directories + +------------------------------------------------------------------- +Thu Mar 18 08:12:08 UTC 2021 - Matwey Kornilov + +- Install lost influxdb-user.conf + +------------------------------------------------------------------- +Tue Mar 16 13:33:34 UTC 2021 - Matwey Kornilov + +- Drop unused BuildRequirements +- use sysusers.d + +------------------------------------------------------------------- +Sun Mar 7 08:54:12 UTC 2021 - Matwey Kornilov + +- Initial version diff --git a/influxdb2.spec b/influxdb2.spec new file mode 100644 index 0000000..be43042 --- /dev/null +++ b/influxdb2.spec @@ -0,0 +1,136 @@ +# +# spec file for package influxdb2 +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: influxdb2 +Summary: Scalable datastore for metrics, events, and real-time analytics +License: MIT +Group: Productivity/Databases/Servers +Version: 2.7.6 +Release: 0 +URL: https://github.com/influxdata/influxdb +Source: %{name}-%{version}.tar.xz +Source1: influxdb.service +Source2: influxdb.tmpfiles +Source3: influxdb-user.conf +Source4: config.yaml +# Prebuild UI assets as specified in ./scripts/fetch_ui_assets.sh +# https://github.com/influxdata/ui/releases/download/OSS-v2.7.1/build.tar.gz +Source98: ui-assets-2.7.1.tar.xz +Source99: vendor.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: sysuser-tools +%{sysusers_requires} +BuildRequires: fdupes +BuildRequires: go >= 1.19 +BuildRequires: golang-packaging >= 15.0.8 +BuildRequires: systemd-rpm-macros +BuildRequires: pkgconfig(flux) >= 0.191.0 +%{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d} +%{systemd_requires} +Requires(post): systemd +ExcludeArch: %ix86 %arm ppc + +%description +InfluxDB is an distributed time series database with no external dependencies. +It's useful for recording metrics, events, and performing analytics. + +%package devel +Summary: InfluxDB development files +Group: Development/Languages/Golang +Requires: go + +%description devel +Go sources and other development files for InfluxDB + +%prep +%setup -q +%setup -q -T -D -a 99 +%setup -q -T -D -a 98 +mv build ui +echo 'UI assets predownloaded!' > ui/fetch_ui_assets.sh + +%build +export GO111MODULE=on + +# TODO: +# Disable phone-home to usage.influxdata.com + +# Build influxdb +%goprep github.com/influxdata/influxdb/v2 +%gobuild -mod=vendor -ldflags="-X main.version=%{version}" cmd/... + +%sysusers_generate_pre %{SOURCE3} %{name} + +%install +%gosrc +%fdupes -s %{buildroot}/%{go_contribsrcdir}/github.com/influxdata/influxdb + +mkdir -p %{buildroot}%{_localstatedir}/log/influxdb +mkdir -p %{buildroot}%{_localstatedir}/lib/influxdb +mkdir -p %{buildroot}%{_datadir}/influxdb2/ui +cp ui/build/* %{buildroot}%{_datadir}/influxdb2/ui +mkdir -p %{buildroot}%{_sbindir} +install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/influxdb.service +ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcinfluxdb +install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/influxdb.conf +install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/influxdb-user.conf +install -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/influxdb2/config.yaml +install -D -m 0755 -t %{buildroot}%{_bindir} %{_builddir}/go/bin/* + +%fdupes %{buildroot}/%{_prefix} + +%check +#%%gotest github.com/influxdata/influxdb + +%pre -f %{name}.pre +%service_add_pre influxdb.service + +%preun +%service_del_preun influxdb.service + +%post +%tmpfiles_create %_tmpfilesdir/influxdb.conf +%service_add_post influxdb.service + +%postun +%service_del_postun influxdb.service + +%files +%license LICENSE +%doc README.md CHANGELOG.md +%dir %{_sysconfdir}/influxdb2 +%config(noreplace) %{_sysconfdir}/influxdb2/config.yaml +%{_bindir}/influxd +%{_bindir}/telemetryd +%{_sbindir}/rcinfluxdb +%{_unitdir}/influxdb.service +%{_datadir}/influxdb2 +%{_sysusersdir}/influxdb-user.conf +%dir %{_tmpfilesdir} +%{_tmpfilesdir}/influxdb.conf +%attr(0755, influxdb, influxdb) %dir %{_localstatedir}/log/influxdb +%attr(0755, influxdb, influxdb) %dir %{_localstatedir}/lib/influxdb +%ghost %attr(0755, influxdb, influxdb) %dir %{_rundir}/influxdb + +%files devel +%license LICENSE +%dir %{go_contribsrcdir}/github.com +%dir %{go_contribsrcdir}/github.com/influxdata +%{go_contribsrcdir}/github.com/influxdata/influxdb + +%changelog diff --git a/ui-assets-2.7.1.tar.xz b/ui-assets-2.7.1.tar.xz new file mode 100644 index 0000000..187eaeb --- /dev/null +++ b/ui-assets-2.7.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d656b978840e72f065ec0c5dae240f29335963807bda3ff06d6d568b825719f7 +size 14650028 diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..005241c --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d12a3f3c69bf6fc7573ea7e1aabb8d601a0a80f0e7c6d4b681982af3b6a99beb +size 11255456