-mkdir -p %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/results
-
-# run the builder conatiner for process-starter binary
-docker run \
- -id \
- --rm \
- --network=host \
- --privileged \
- -e HTTP_PROXY="${http_proxy}" \
- -e HTTPS_PROXY="${https_proxy}" \
- -e NO_PROXY="${no_proxy}" \
- -e http_proxy="${http_proxy}" \
- -e https_proxy="${https_proxy}" \
- -e no_proxy="${no_proxy}" \
- --entrypoint=/bin/sh \
- %{COMPONENT_PART}:builder
-
-# get the process-starter binary
-docker cp $(docker ps | grep "%{COMPONENT_PART}:builder" | awk -F' ' '{ print $1 }'):/process-starter %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/results/