]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec,install-deps: use golang-github-prometheus for promtools
authorKefu Chai <kchai@redhat.com>
Mon, 22 Mar 2021 06:07:54 +0000 (14:07 +0800)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Thu, 22 Apr 2021 09:56:07 +0000 (15:26 +0530)
instead of installing docker for using promtools, install
golang-github-prometheus.

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit e33e3a931db97d01318643ec686fe63fdd614082)

ceph.spec.in
install-deps.sh

index 39935289ab420dfd9a341234ba93b130e0845a93..718421ca901de79590e901322f03bdcfb01293a2 100644 (file)
@@ -328,6 +328,7 @@ BuildRequires:      lz4-devel >= 1.7
 # distro-conditional make check dependencies
 %if 0%{with make_check}
 %if 0%{?fedora} || 0%{?rhel}
+BuildRequires: golang-github-prometheus
 BuildRequires: libtool-ltdl-devel
 BuildRequires: xmlsec1
 BuildRequires: xmlsec1-devel
@@ -344,6 +345,7 @@ BuildRequires:      python%{python3_pkgversion}-werkzeug
 BuildRequires: python%{python3_pkgversion}-pyOpenSSL
 %endif
 %if 0%{?suse_version}
+BuildRequires: golang-github-prometheus-prometheus
 BuildRequires: libxmlsec1-1
 BuildRequires: libxmlsec1-nss1
 BuildRequires: libxmlsec1-openssl1
index c5bd79e0e33f6bc1a4f378c2915cfdaa8a8cb8ed..73242df8fb8ba4b11b8be114dbdd076fd648f0b1 100755 (executable)
@@ -344,9 +344,6 @@ else
         case "$ID" in
             fedora)
                 $SUDO dnf install -y dnf-utils
-                $SUDO dnf install -y docker-ce docker-ce-cli containerd.io
-                $SUDO systemctl start docker
-                $SUDO systemctl enable docker
                 ;;
             centos|rhel|ol|virtuozzo)
                 MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)"