mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-25 06:19:57 +00:00
When we turned on fat LTO builds, we made the release build job **much** more compute and memory intensive. The ARM runners have particularly low memory per core, which makes them susceptible to OOM errors. To avoid issues, I have enabled memory swap on ARM and bumped the side of the runner.
22 lines
540 B
Bash
Executable File
22 lines
540 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_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.sh $ARCH
|