X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=caas-etcd.spec;h=84a0d21c3a7d362f3137845311f6828b091dddbf;hb=0f1d37be10ab1ae9b9d96b7bf1554b7297d13160;hp=57ca16c27e7441c129bb70e8246e1c25c9ce0c68;hpb=8053e93eb70596679eaaa98d4e9cafeb7ad2f217;p=ta%2Fcaas-etcd.git diff --git a/caas-etcd.spec b/caas-etcd.spec index 57ca16c..84a0d21 100644 --- a/caas-etcd.spec +++ b/caas-etcd.spec @@ -14,8 +14,9 @@ %define COMPONENT etcd %define RPM_NAME caas-%{COMPONENT} -%define RPM_MAJOR_VERSION 3.3.13 +%define RPM_MAJOR_VERSION 3.4.0 %define RPM_MINOR_VERSION 1 +%define go_version 1.12.10 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION} %define docker_build_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build %define docker_save_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save @@ -26,12 +27,12 @@ Release: %{RPM_MINOR_VERSION}%{?dist} Summary: Containers as a Service %{COMPONENT} component License: %{_platform_license} and MIT license and BSD and Apache License and Lesser General Public License URL: https://github.com/etcd-io/etcd -BuildArch: x86_64 +BuildArch: %{_arch} Vendor: %{_platform_vendor} and etcd-io/etcd unmodified Source0: %{name}-%{version}.tar.gz -Requires: docker-ce >= 18.09.2 -BuildRequires: docker-ce-cli >= 18.09.2 +Requires: docker-ce >= 18.09.2, rsync +BuildRequires: docker-ce-cli >= 18.09.2, xz %description This rpm contains the %{COMPONENT} container for CaaS subsystem. @@ -52,13 +53,13 @@ docker build \ --build-arg https_proxy="${https_proxy}" \ --build-arg no_proxy="${no_proxy}" \ --build-arg ETCD_VERSION="%{version}" \ + --build-arg go_version="%{go_version}" \ --tag %{COMPONENT}:%{IMAGE_TAG} \ %{docker_build_dir}/%{COMPONENT}/ mkdir -p %{docker_save_dir}/ -docker save %{COMPONENT}:%{IMAGE_TAG} | gzip -c > %{docker_save_dir}/%{COMPONENT}:%{IMAGE_TAG}.tar +docker save %{COMPONENT}:%{IMAGE_TAG} | xz -z -T2 > %{docker_save_dir}/%{COMPONENT}:%{IMAGE_TAG}.tar docker rmi %{COMPONENT}:%{IMAGE_TAG} - %install mkdir -p %{buildroot}/%{_caas_container_tar_path} rsync -av %{docker_save_dir}/%{COMPONENT}:%{IMAGE_TAG}.tar %{buildroot}/%{_caas_container_tar_path}/