build fixed

version-1
Marc Wäckerlin 9 years ago
parent 681d4fcebb
commit 3826ba8285
  1. 6
      build-in-docker.sh

@ -171,7 +171,11 @@ OPTIONS='-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -
docker pull $img
DOCKER_ID=$(docker run -d ${dirs[@]} ${envs[@]} -w /workdir $img sleep infinity)
trap 'traperror '"${DOCKER_ID}"' "$? ${PIPESTATUS[@]}" $LINENO $BASH_LINENO "$BASH_COMMAND" "${FUNCNAME[@]}" "${FUNCTION}"' SIGINT INT TERM EXIT
docker exec -it ${DOCKER_ID} bash -c 'for f in "libpam-systemd:amd64" "policykit*" "colord"; do echo "Package: $f" >> /etc/apt/preferences; echo "Pin-Priority: -100" >> /etc/apt/preferences; echo >> /etc/apt/preferences; done'
for f in 'libpam-systemd:amd64' 'policykit*' 'colord'; do
docker exec -it ${DOCKER_ID} bash -c "echo 'Package: $f' >> /etc/apt/preferences"
docker exec -it ${DOCKER_ID} bash -c "echo 'Pin-Priority: -100' >> /etc/apt/preferences"
docker exec -it ${DOCKER_ID} bash -c "echo >> /etc/apt/preferences"
done
docker exec ${DOCKER_ID} apt-get update ${OPTIONS}
docker exec ${DOCKER_ID} apt-get upgrade ${OPTIONS}
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} python-software-properties software-properties-common apt-transport-https dpkg-dev lsb-release || \

Loading…
Cancel
Save