Accepting request 895956 from home:-miska-:influx
Mainly making WebUI work. OBS-URL: https://build.opensuse.org/request/show/895956 OBS-URL: https://build.opensuse.org/package/show/server:database/influxdb2?expand=0&rev=5
This commit is contained in:
parent
36b80b6fe0
commit
6e71c7eb0e
@ -4,9 +4,7 @@ Documentation=https://docs.influxdata.com/influxdb/
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment="INFLUXD_CONFIG_PATH=/etc/influxdb2/config.toml"
|
ExecStart=/usr/bin/influxd --assets-path="/usr/share/influxdb2/ui"
|
||||||
LimitNOFILE=65536
|
|
||||||
ExecStart=/usr/bin/influxd
|
|
||||||
Type=simple
|
Type=simple
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardError=journal
|
StandardError=journal
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Wed May 19 21:51:38 UTC 2021 - Michal Hrusecky <michal.hrusecky@opensuse.org>
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ Source: %{name}-%{version}.tar.xz
|
|||||||
Source1: influxdb.service
|
Source1: influxdb.service
|
||||||
Source2: influxdb.tmpfiles
|
Source2: influxdb.tmpfiles
|
||||||
Source3: influxdb-user.conf
|
Source3: influxdb-user.conf
|
||||||
|
# Prebuild UI assets as specified in ./ui/fetch_ui_assets.sh
|
||||||
|
Source98: ui-assets-2.0.5.tar.gz
|
||||||
Source99: vendor.tar.xz
|
Source99: vendor.tar.xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
@ -55,6 +57,9 @@ Go sources and other development files for InfluxDB
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%setup -q -T -D -a 99
|
%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
|
%build
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
@ -74,6 +79,8 @@ export GO111MODULE=on
|
|||||||
|
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/log/influxdb
|
mkdir -p %{buildroot}%{_localstatedir}/log/influxdb
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/influxdb
|
mkdir -p %{buildroot}%{_localstatedir}/lib/influxdb
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/influxdb2/ui
|
||||||
|
cp ui/build/* %{buildroot}%{_datadir}/influxdb2/ui
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/influxdb.service
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/influxdb.service
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcinfluxdb
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcinfluxdb
|
||||||
@ -106,6 +113,7 @@ install -D -m 0755 -t %{buildroot}%{_bindir} %{_builddir}/go/bin/*
|
|||||||
%{_bindir}/telemetryd
|
%{_bindir}/telemetryd
|
||||||
%{_sbindir}/rcinfluxdb
|
%{_sbindir}/rcinfluxdb
|
||||||
%{_unitdir}/influxdb.service
|
%{_unitdir}/influxdb.service
|
||||||
|
%{_datadir}/influxdb2
|
||||||
%{_sysusersdir}/influxdb-user.conf
|
%{_sysusersdir}/influxdb-user.conf
|
||||||
%dir %{_tmpfilesdir}
|
%dir %{_tmpfilesdir}
|
||||||
%{_tmpfilesdir}/influxdb.conf
|
%{_tmpfilesdir}/influxdb.conf
|
||||||
|
3
ui-assets-2.0.5.tar.gz
Normal file
3
ui-assets-2.0.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:37ffbc072ba801ec5a0abdd76a3f19a8cd75f59856274e20630929f73cedaf55
|
||||||
|
size 76859523
|
Loading…
Reference in New Issue
Block a user