!13 [sync] PR-12: 添加A-Ops web界面
From: @openeuler-sync-bot Reviewed-by: @solarhu Signed-off-by: @solarhu
This commit is contained in:
commit
ada2ee845e
Binary file not shown.
BIN
A-Ops-web-node-modules.tar.gz
Normal file
BIN
A-Ops-web-node-modules.tar.gz
Normal file
Binary file not shown.
57
A-Ops.spec
57
A-Ops.spec
@ -1,11 +1,12 @@
|
|||||||
|
#needsrootforbuild
|
||||||
Name: A-Ops
|
Name: A-Ops
|
||||||
Version: 1.0.1
|
Version: v1.0.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: The intelligent ops toolkit for openEuler
|
Summary: The intelligent ops toolkit for openEuler
|
||||||
License: MulanPSL2
|
License: MulanPSL2
|
||||||
URL: https://gitee.com/openeuler/A-Ops
|
URL: https://gitee.com/openeuler/A-Ops
|
||||||
Source0: %{name}-v%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Source1: A-Ops-web-node-modules.tar.gz
|
||||||
|
|
||||||
# build for gopher
|
# build for gopher
|
||||||
BuildRequires: cmake gcc-c++ yum elfutils-devel clang >= 10.0.1 llvm libconfig-devel
|
BuildRequires: cmake gcc-c++ yum elfutils-devel clang >= 10.0.1 llvm libconfig-devel
|
||||||
@ -15,6 +16,9 @@ BuildRequires: librdkafka-devel libmicrohttpd-devel
|
|||||||
BuildRequires: python3-setuptools python3-connexion python3-werkzeug python3-libyang
|
BuildRequires: python3-setuptools python3-connexion python3-werkzeug python3-libyang
|
||||||
BuildRequires: git python3-devel systemd
|
BuildRequires: git python3-devel systemd
|
||||||
|
|
||||||
|
# build for web
|
||||||
|
BuildRequires: nodejs node-gyp npm
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The intelligent ops toolkit for openEuler
|
The intelligent ops toolkit for openEuler
|
||||||
|
|
||||||
@ -132,10 +136,28 @@ Requires: python3-werkzeug python3-connexion python3-swagger-ui-bundle
|
|||||||
python3 pakcage of gala-ragdoll
|
python3 pakcage of gala-ragdoll
|
||||||
|
|
||||||
|
|
||||||
|
%package -n aops-web
|
||||||
|
Summary: website for A-Ops
|
||||||
|
Requires: nginx
|
||||||
|
|
||||||
|
%description -n aops-web
|
||||||
|
website for A-Ops, deployed by Nginx
|
||||||
|
|
||||||
|
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-v%{version}
|
%setup
|
||||||
|
%setup -T -D -a 1
|
||||||
|
cp -r A-Ops-web-node-modules/node_modules aops-web/
|
||||||
|
|
||||||
|
# prepare for web
|
||||||
|
pushd aops-web
|
||||||
|
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
|
||||||
|
npm cache clean -f
|
||||||
|
npm install --global yarn
|
||||||
|
yarn config set registry https://mirrors.huaweicloud.com/repository/npm
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -195,6 +217,11 @@ pushd gala-ragdoll
|
|||||||
%py3_build
|
%py3_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
#build for aops-web
|
||||||
|
pushd aops-web
|
||||||
|
yarn build
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# install for utils
|
# install for utils
|
||||||
@ -247,6 +274,16 @@ pushd adoctor-cli
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
# install for web
|
||||||
|
pushd aops-web
|
||||||
|
mkdir -p %{buildroot}/opt/aops_web
|
||||||
|
cp -r dist %{buildroot}/opt/aops_web/
|
||||||
|
mkdir -p %{buildroot}/%{_sysconfdir}/nginx
|
||||||
|
cp -r deploy/aops-nginx.conf %{buildroot}/%{_sysconfdir}/nginx/
|
||||||
|
mkdir -p %{buildroot}/usr/lib/systemd/system
|
||||||
|
cp -r deploy/aops-web.service %{buildroot}/usr/lib/systemd/system/
|
||||||
|
popd
|
||||||
|
|
||||||
#install for gala-gopher
|
#install for gala-gopher
|
||||||
pushd gala-gopher
|
pushd gala-gopher
|
||||||
install -d %{buildroot}/opt/gala-gopher
|
install -d %{buildroot}/opt/gala-gopher
|
||||||
@ -392,9 +429,17 @@ fi
|
|||||||
%{python3_sitelib}/ragdoll-*.egg-info
|
%{python3_sitelib}/ragdoll-*.egg-info
|
||||||
|
|
||||||
|
|
||||||
|
%files -n aops-web
|
||||||
|
%attr(0755, root, root) /opt/aops_web/dist/*
|
||||||
|
%attr(0755, root, root) %{_sysconfdir}/nginx/aops-nginx.conf
|
||||||
|
%attr(0755, root, root) %{_unitdir}/aops-web.service
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Sep 6 2021 Lostwayzxc<luoshengwei@huawei.com> - 1.0.1-1
|
* Mon Sep 6 2021 Yiru Wang<wangyiru1@huawei.com> - v1.0.1-2
|
||||||
|
- add web build modle of the aops
|
||||||
|
|
||||||
|
* Mon Sep 6 2021 Lostwayzxc<luoshengwei@huawei.com> - v1.0.1-1
|
||||||
- update src, add intelligent check and diagnosis module
|
- update src, add intelligent check and diagnosis module
|
||||||
|
|
||||||
* Thu Sep 2 2021 zhaoyuxing<zhaoyuxsing2@huawei.com> - 1.0.0-4
|
* Thu Sep 2 2021 zhaoyuxing<zhaoyuxsing2@huawei.com> - 1.0.0-4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user