Code Review
/
ta
/
caas-metrics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
AArch64 support
[ta/caas-metrics.git]
/
SPECS
/
caas-custom_metrics.spec
diff --git
a/SPECS/caas-custom_metrics.spec
b/SPECS/caas-custom_metrics.spec
index
d19c629
..
fff433a
100644
(file)
--- a/
SPECS/caas-custom_metrics.spec
+++ b/
SPECS/caas-custom_metrics.spec
@@
-14,9
+14,10
@@
%define COMPONENT custom_metrics
%define RPM_NAME caas-%{COMPONENT}
%define COMPONENT custom_metrics
%define RPM_NAME caas-%{COMPONENT}
-%define RPM_MAJOR_VERSION 0.4.1
-%define RPM_MINOR_VERSION 1
-%define DEPENDENCY_MANAGER_VERSION 0.5.0
+%define RPM_MAJOR_VERSION 0.5.0
+%define RPM_MINOR_VERSION 3
+%define go_version 1.12.9
+%define DEP_MAN_VERSION 0.5.4
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
Name: %{RPM_NAME}
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
Name: %{RPM_NAME}
@@
-25,12
+26,12
@@
Release: %{RPM_MINOR_VERSION}%{?dist}
Summary: Containers as a Service Custom Metrics component
License: %{_platform_license} and Apache License
URL: https://github.com/DirectXMan12/k8s-prometheus-adapter
Summary: Containers as a Service Custom Metrics component
License: %{_platform_license} and Apache License
URL: https://github.com/DirectXMan12/k8s-prometheus-adapter
-BuildArch:
x86_64
+BuildArch:
%{_arch}
Vendor: %{_platform_vendor} and DirectXMan12/k8s-prometheus-adapter unmodified
Source0: %{name}-%{version}.tar.gz
Vendor: %{_platform_vendor} and DirectXMan12/k8s-prometheus-adapter unmodified
Source0: %{name}-%{version}.tar.gz
-Requires: docker-ce >= 18.09.2
-BuildRequires: docker-ce
>= 18.09.2
+Requires: docker-ce >= 18.09.2
, rsync
+BuildRequires: docker-ce
-cli >= 18.09.2, xz
%description
This RPM contains the custom metrics container image for the CaaS subsystem.
%description
This RPM contains the custom metrics container image for the CaaS subsystem.
@@
-49,13
+50,14
@@
docker build \
--build-arg http_proxy="${http_proxy}" \
--build-arg https_proxy="${https_proxy}" \
--build-arg no_proxy="${no_proxy}" \
--build-arg http_proxy="${http_proxy}" \
--build-arg https_proxy="${https_proxy}" \
--build-arg no_proxy="${no_proxy}" \
- --build-arg CUSTOM_METRICS="%{RPM_MAJOR_VERSION}" \
+ --build-arg CUSTOM_METRICS_VERSION="%{RPM_MAJOR_VERSION}" \
+ --build-arg go_version="%{go_version}" \
--tag %{COMPONENT}:%{IMAGE_TAG} \
%{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT}/
mkdir -p %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/
--tag %{COMPONENT}:%{IMAGE_TAG} \
%{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT}/
mkdir -p %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/
-docker save %{COMPONENT}:%{IMAGE_TAG} |
gzip -c
> %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/%{COMPONENT}:%{IMAGE_TAG}.tar
+docker save %{COMPONENT}:%{IMAGE_TAG} |
xz -z -T2
> %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/%{COMPONENT}:%{IMAGE_TAG}.tar
docker rmi -f %{COMPONENT}:%{IMAGE_TAG}
docker rmi -f %{COMPONENT}:%{IMAGE_TAG}