diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-11-16 15:05:27 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-12-08 19:25:42 +0100 |
| commit | 11ffa7e169b267e127c98a42b631334698f45f48 (patch) | |
| tree | 2a92a3e3f563568bcca74ed6318689d545a371ae /docker/pip/build.sh | |
| parent | 02fb645b277e714e90ec328825110ddd0aba6398 (diff) | |
Add pip docker files
Diffstat (limited to 'docker/pip/build.sh')
| -rwxr-xr-x | docker/pip/build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/pip/build.sh b/docker/pip/build.sh new file mode 100755 index 0000000..6a9a6f0 --- /dev/null +++ b/docker/pip/build.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +VERSION=$(git tag | sort -V | tail -1) +mkdir -p out/"$VERSION" + +# amd64 +sudo docker build --build-arg COMMONVERSION="$VERSION" -f amd64.dockerfile -t common-pip-amd64 . +sudo docker run -v "$PWD"/out/"$VERSION":/io --rm -ti common-pip-amd64 bash -c "cp /wheelhouse/* /io" + +# arm64 +sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes +sudo docker build --build-arg COMMONVERSION="$VERSION" -f arm64.dockerfile -t common-pip-arm64 . +sudo docker run -v "$PWD"/out/"$VERSION":/io --rm -ti common-pip-arm64 bash -c "cp /wheelhouse/* /io" |
