-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update influxdb2 to version 2.7.1 / rev 1 via SR 1147436
https://build.opensuse.org/request/show/1147436 by user bnavigator + anag+factory next level after legacy influxdb v1. At some point software needs to migrate to this one. (See e.g. openSUSE/openSUSE-release-tools#3034)
- Loading branch information
1 parent
485e8fe
commit 4287bab
Showing
13 changed files
with
319 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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 @@ | ||
<package name="influxdb2" project="openSUSE:Factory"> | ||
<title></title> | ||
<description></description> | ||
<devel project="server:database" package="influxdb2"/> | ||
</package> |
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,12 @@ | ||
<revisionlist> | ||
<revision rev="1" vrev="1"> | ||
<srcmd5>5d3fe540b73612386e75c244d59bf243</srcmd5> | ||
<version>2.7.1</version> | ||
<time>1708973024</time> | ||
<user>anag+factory</user> | ||
<comment>next level after legacy influxdb v1. | ||
|
||
At some point software needs to migrate to this one. (See e.g. https://github.com/openSUSE/openSUSE-release-tools/issues/3034)</comment> | ||
<requestid>1147436</requestid> | ||
</revision> | ||
</revisionlist> |
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 @@ | ||
<services> | ||
<service name="tar_scm" mode="disabled"> | ||
<param name="url">https://github.com/influxdata/influxdb.git</param> | ||
<param name="scm">git</param> | ||
<param name="revision">v2.7.1</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="disabled"> | ||
<param name="basename">influxdb</param> | ||
</service> | ||
<service name="recompress" mode="disabled"> | ||
<param name="file">*.tar</param> | ||
<param name="compression">gz</param> | ||
</service> | ||
<service name="go_modules" mode="disabled" /> | ||
<service name="recompress" mode="disabled"> | ||
<param name="file">*.tar.gz</param> | ||
<param name="compression">xz</param> | ||
</service> | ||
</services> |
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 @@ | ||
# 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 |
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 @@ | ||
u influxdb - "user for InfluxDB database server" /var/lib/influxdb |
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 @@ | ||
[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 |
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 @@ | ||
d /run/influxdb 0775 influxdb influxdb |
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 @@ | ||
/ipfs/bafybeiebbfd6lrpkrqfr7lt43pfyav3xdrm2fi3l2b5y62kgyhbwjuttay |
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,97 @@ | ||
------------------------------------------------------------------- | ||
Fri Jul 28 15:46:01 UTC 2023 - Matwey Kornilov <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- Include prebuild UI assets | ||
- Drop the last mention of config file in service file | ||
|
||
------------------------------------------------------------------- | ||
Wed May 19 21:51:38 UTC 2021 - Michal Hrusecky <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
- Install lost influxdb-user.conf | ||
|
||
------------------------------------------------------------------- | ||
Tue Mar 16 13:33:34 UTC 2021 - Matwey Kornilov <[email protected]> | ||
|
||
- Drop unused BuildRequirements | ||
- use sysusers.d | ||
|
||
------------------------------------------------------------------- | ||
Sun Mar 7 08:54:12 UTC 2021 - Matwey Kornilov <[email protected]> | ||
|
||
- Initial version |
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,136 @@ | ||
# | ||
# spec file for package influxdb2 | ||
# | ||
# Copyright (c) 2023 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.1 | ||
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.6.1/build.tar.gz | ||
Source98: ui-assets-%{version}.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 |
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 @@ | ||
/ipfs/bafybeiaw6cvmsajonykfespyhd33g4vgrxhsguc6lzphcpsnrjwqcsglda |
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 @@ | ||
/ipfs/bafybeigyxaova7p4cgvlcmv6olpvymynodo5uaifj2bftj4zrwd6izdmoa |