|
|
|
@ -158,7 +158,8 @@ function traperror() { |
|
|
|
|
read |
|
|
|
|
fi |
|
|
|
|
echo -n " ... cleanup docker: " |
|
|
|
|
docker rm -f "${DOCKER_ID}" |
|
|
|
|
docker stop "${DOCKER_ID}" || true |
|
|
|
|
docker rm "${DOCKER_ID}" |
|
|
|
|
echo "returning status: $e" |
|
|
|
|
echo "--->" |
|
|
|
|
exit $e |
|
|
|
@ -255,6 +256,10 @@ enabled=1 |
|
|
|
|
gpgcheck=0 |
|
|
|
|
EOF |
|
|
|
|
fi |
|
|
|
|
UPDATE_TOOL=$(test -x /usr/sbin/urpmi && echo urpmi.update -a) |
|
|
|
|
if test -n "${UPDATE_TOOL}"; then |
|
|
|
|
docker exec ${DOCKER_ID} ${UPDATE_TOOL} |
|
|
|
|
fi |
|
|
|
|
INSTALL_TOOL=$((docker exec ${DOCKER_ID} test -x /usr/bin/zypper && echo zypper install -y) || (docker exec ${DOCKER_ID} test -x /usr/bin/dnf && echo dnf install -y) || (docker exec ${DOCKER_ID} test -x /usr/bin/yum && echo yum install -y) || (docker exec ${DOCKER_ID} test -x /usr/sbin/urpmi && echo urpmi --auto)) |
|
|
|
|
docker exec ${DOCKER_ID} ${INSTALL_TOOL} rpm-build automake libtool subversion gcc-c++ pkgconfig |
|
|
|
|
docker exec -u $(id -u):$(id -g) ${DOCKER_ID} ./bootstrap.sh -c |
|
|
|
|