Compress image using xz 15/1015/2
authorFerenc Tóth <ferenc.2.toth@nokia.com>
Tue, 18 Jun 2019 14:16:54 +0000 (16:16 +0200)
committerFerenc Tóth <ferenc.2.toth@nokia.com>
Fri, 21 Jun 2019 09:07:08 +0000 (11:07 +0200)
Signed-off-by: Ferenc Tóth <ferenc.2.toth@nokia.com>
Change-Id: I99aa68ea87b73f3469dccaea00ec5c45fd9f7e43

.gitreview [new file with mode: 0644]
rpmbuild.spec

diff --git a/.gitreview b/.gitreview
new file mode 100644 (file)
index 0000000..151924f
--- /dev/null
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.akraino.org
+port=29418
+project=ta/caas-kubedns
+defaultremote=origin
index 0e9b656..f6f9af0 100644 (file)
@@ -15,7 +15,7 @@
 %define COMPONENT kubedns
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 1.15.2
-%define RPM_MINOR_VERSION 0
+%define RPM_MINOR_VERSION 1
 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
 
 Name:           %{RPM_NAME}
@@ -28,8 +28,8 @@ BuildArch:      x86_64
 Vendor:         %{_platform_vendor} and Kubernetes DNS service 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 kubedns container image, and related deployment artifacts for the CaaS subsystem.
@@ -57,7 +57,7 @@ docker build \
 mkdir -p %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/
 
 # Save the container
-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
 
 # Remove docker image
 docker rmi -f %{COMPONENT}:%{IMAGE_TAG}