Python wrapper with Docker backend with profiles
This commit is contained in:
@ -2,26 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
${TAMARIN_ACBUILD} environment add DEBIAN_FRONTEND noninteractive
|
||||
|
||||
if [ "${TAMARIN_ACBUILD_ENGINE}" == 'chroot' ]; then
|
||||
# Ugly fix for Python installation in chrooted environment (require /dev/urandom)
|
||||
head -c 65536 /dev/urandom > ./urandom
|
||||
${TAMARIN_ACBUILD} copy ./urandom /dev/urandom
|
||||
fi
|
||||
|
||||
sudo -E /usr/bin/env bash - <<EOF
|
||||
export PATH=${PATH}
|
||||
${TAMARIN_ACBUILD} run --engine "${TAMARIN_ACBUILD_ENGINE}" -- apt-get update
|
||||
${TAMARIN_ACBUILD} run --engine "${TAMARIN_ACBUILD_ENGINE}" -- apt-get install --yes --no-install-recommends build-essential devscripts equivs python3
|
||||
EOF
|
||||
|
||||
if [ "${TAMARIN_ACBUILD_ENGINE}" == 'chroot' ]; then
|
||||
# Clean up Python fix (see above)
|
||||
sudo -E /usr/bin/env bash - <<EOF
|
||||
export PATH=${PATH}
|
||||
${TAMARIN_ACBUILD} run --engine "${TAMARIN_ACBUILD_ENGINE}" -- rm -f /dev/urandom
|
||||
EOF
|
||||
fi
|
||||
|
||||
${TAMARIN_ACBUILD} environment remove DEBIAN_FRONTEND
|
||||
echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile
|
||||
echo 'RUN apt-get update && apt-get install --yes --no-install-recommends build-essential devscripts equivs python3' >> Dockerfile
|
||||
echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile
|
||||
|
Reference in New Issue
Block a user