build fixed
This commit is contained in:
@@ -171,7 +171,11 @@ OPTIONS='-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -
|
|||||||
docker pull $img
|
docker pull $img
|
||||||
DOCKER_ID=$(docker run -d ${dirs[@]} ${envs[@]} -w /workdir $img sleep infinity)
|
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
|
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 update ${OPTIONS}
|
||||||
docker exec ${DOCKER_ID} apt-get upgrade ${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 || \
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} python-software-properties software-properties-common apt-transport-https dpkg-dev lsb-release || \
|
||||||
|
Reference in New Issue
Block a user