- Update to version 2.7.10, see
* https://github.com/influxdata/influxdb/releases/tag/v2.7.10 OBS-URL: https://build.opensuse.org/package/show/server:database/influxdb2?expand=0&rev=19
This commit is contained in:
commit
109a7f096c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
23
_service
Normal file
23
_service
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/influxdata/influxdb.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">v2.7.10</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="changesgenerate">disable</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="filename">influxdb2</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="manual">
|
||||||
|
<param name="basename">influxdb</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
<service name="go_modules" mode="manual" />
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="file">*.tar.gz</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
24
config.yaml
Normal file
24
config.yaml
Normal file
@ -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
|
1
influxdb-user.conf
Normal file
1
influxdb-user.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
u influxdb - "user for InfluxDB database server" /var/lib/influxdb
|
17
influxdb.service
Normal file
17
influxdb.service
Normal file
@ -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
|
1
influxdb.tmpfiles
Normal file
1
influxdb.tmpfiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/influxdb 0775 influxdb influxdb
|
3
influxdb2-2.7.10.tar.xz
Normal file
3
influxdb2-2.7.10.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:394deec2d12c5c0e531aa0ec5ce655e08f38fdcb625b52b41f8253d1505d2f48
|
||||||
|
size 9083896
|
3
influxdb2-2.7.5.tar.xz
Normal file
3
influxdb2-2.7.5.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:465e49e970fbc60c01dd436f7145afde5f6dec6c437f46c6ef350c734ae4fd9b
|
||||||
|
size 9080808
|
3
influxdb2-2.7.6.tar.xz
Normal file
3
influxdb2-2.7.6.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8e47059875b2dbf289d305f350988828bd59c9e2d1e2f073fefe3ffbc2d65877
|
||||||
|
size 9089432
|
115
influxdb2.changes
Normal file
115
influxdb2.changes
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 17 08:56:43 UTC 2024 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 2.7.10, see
|
||||||
|
* https://github.com/influxdata/influxdb/releases/tag/v2.7.10
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 4 10:11:02 UTC 2024 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- 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 <michal.hrusecky@opensuse.org>
|
||||||
|
|
||||||
|
- 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 <michal.hrusecky@opensuse.org>
|
||||||
|
|
||||||
|
- 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 <michal.hrusecky@opensuse.org>
|
||||||
|
|
||||||
|
- Include prebuild UI assets
|
||||||
|
- Drop the last mention of config file in service file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 19 21:51:38 UTC 2021 - Michal Hrusecky <michal.hrusecky@opensuse.org>
|
||||||
|
|
||||||
|
- 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 <michal.hrusecky@opensuse.org>
|
||||||
|
|
||||||
|
- 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 <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- Install lost influxdb-user.conf
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 16 13:33:34 UTC 2021 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- Drop unused BuildRequirements
|
||||||
|
- use sysusers.d
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 7 08:54:12 UTC 2021 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||||
|
|
||||||
|
- Initial version
|
136
influxdb2.spec
Normal file
136
influxdb2.spec
Normal file
@ -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.10
|
||||||
|
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
|
3
ui-assets-2.7.1.tar.xz
Normal file
3
ui-assets-2.7.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d656b978840e72f065ec0c5dae240f29335963807bda3ff06d6d568b825719f7
|
||||||
|
size 14650028
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3ec6d06d284aa819c792429a8f5e57451c1b9d7e12ce4439e4f717d50b7fb8d2
|
||||||
|
size 12063056
|
Loading…
Reference in New Issue
Block a user