%define COMPONENT_PART process-starter
%define RPM_NAME caas-%{COMPONENT}
%define RPM_MAJOR_VERSION 0.2.0
-%define RPM_MINOR_VERSION 1
+%define RPM_MINOR_VERSION 4
+%define CPUPOOLER_VERSION 808b717165c10b0752bbafd4e2898d4e20c2fae8
%define DEPENDENCY_MANAGER_VERSION 0.5.0
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define PROCESS_STARTER_INSTALL_PATH /opt/bin/
Vendor: %{_platform_vendor} and Nokia
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
# I was able to pack an executable via this.
# more info at https://fedoraproject.org/wiki/Packaging:Debuginfo
--build-arg https_proxy="${https_proxy}" \
--build-arg no_proxy="${no_proxy}" \
--build-arg DEPENDENCY_MANAGER="%{DEPENDENCY_MANAGER_VERSION}" \
- --build-arg CPUPOOLER="%{RPM_MAJOR_VERSION}" \
+ --build-arg CPUPOOLER="%{CPUPOOLER_VERSION}" \
--tag %{COMPONENT_PART}:builder \
%{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT_PART}/
--build-arg https_proxy="${https_proxy}" \
--build-arg no_proxy="${no_proxy}" \
--build-arg DEPENDENCY_MANAGER="%{DEPENDENCY_MANAGER_VERSION}" \
- --build-arg CPUPOOLER="%{RPM_MAJOR_VERSION}" \
+ --build-arg CPUPOOLER="%{CPUPOOLER_VERSION}" \
--tag %{COMPONENT}:%{IMAGE_TAG} \
%{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT}/
mkdir -p %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/
# save the cpu poooler 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}