mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-23 05:19:58 +00:00
fixes that all `neon pack-build` packs are named
`vectordb-linux-x64-musl-*.tgz` even when cross-compiling
adds 2nd param:
`TARGET_TRIPLE=${2:-x86_64-unknown-linux-gnu}`
`npm run pack-build -- -t $TARGET_TRIPLE`
23 lines
608 B
Bash
Executable File
23 lines
608 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
ARCH=${1:-x86_64}
|
|
TARGET_TRIPLE=${2:-x86_64-unknown-linux-gnu}
|
|
|
|
# We pass down the current user so that when we later mount the local files
|
|
# into the container, the files are accessible by the current user.
|
|
pushd ci/manylinux_node
|
|
docker build \
|
|
-t lancedb-node-manylinux \
|
|
--build-arg="ARCH=$ARCH" \
|
|
--build-arg="DOCKER_USER=$(id -u)" \
|
|
--progress=plain \
|
|
.
|
|
popd
|
|
|
|
# We turn on memory swap to avoid OOM killer
|
|
docker run \
|
|
-v $(pwd):/io -w /io \
|
|
--memory-swap=-1 \
|
|
lancedb-node-manylinux \
|
|
bash ci/manylinux_node/build_vectordb.sh $ARCH $TARGET_TRIPLE
|