mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-24 22:09:58 +00:00
This will start publishing `@lancedb/lancedb` with the new nodejs package on our releases.
22 lines
547 B
Bash
Executable File
22 lines
547 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
ARCH=${1:-x86_64}
|
|
|
|
# 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_nodejs
|
|
docker build \
|
|
-t lancedb-nodejs-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-nodejs-manylinux \
|
|
bash ci/manylinux_nodejs/build.sh $ARCH
|