X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=caas-etcd.spec;h=72675cfaa1c6455258a46238180d587329d547be;hb=8324eb11fce72ef6b9432600f917ec2a207f4889;hp=96788e04e99e2098521590b22063095f6cd010d6;hpb=e85043aa3e0f004b8129971f4cb5cb2c4810d281;p=ta%2Fcaas-etcd.git diff --git a/caas-etcd.spec b/caas-etcd.spec index 96788e0..72675cf 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.12 -%define RPM_MINOR_VERSION 1 +%define RPM_MAJOR_VERSION 3.4.2 +%define RPM_MINOR_VERSION 0 +%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}/