drgn/scripts/build_dists.sh
Omar Sandoval b300021ba3 scripts/build_dists.sh: use docker run --pull always instead of docker pull
This way we only need to invoke docker (and sudo, if running with
DOCKER="sudo docker") once.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2022-03-03 01:23:01 -08:00

21 lines
448 B
Bash
Executable File

#!/bin/sh
set -eux
: "${PYTHON=python3}"
"$PYTHON" setup.py sdist
SDIST=dist/drgn-"$("$PYTHON" setup.py --version)".tar.gz
${DOCKER=docker} run -it \
--env PLAT=manylinux2010_x86_64 \
--env SDIST="$SDIST" \
--env OWNER="$(id -u):$(id -g)" \
--volume "$(pwd)":/io:ro \
--volume "$(pwd)/dist":/io/dist \
--workdir /io \
--hostname drgn \
--rm \
--pull always \
quay.io/pypa/manylinux2010_x86_64 \
./scripts/build_manylinux_in_docker.sh