mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-04 10:52:56 +00:00
* Labelled jobs `vectordb` and `lancedb` so it's clear which package they are for * Fix permission issue in aarch64 Linux `vectordb` build that has been blocking release for two months. * Added Slack notifications for failure of these publish jobs.
32 lines
1.1 KiB
Docker
32 lines
1.1 KiB
Docker
# Many linux dockerfile with Rust, Node, and Lance dependencies installed.
|
|
# This container allows building the node modules native libraries in an
|
|
# environment with a very old glibc, so that we are compatible with a wide
|
|
# range of linux distributions.
|
|
ARG ARCH=x86_64
|
|
|
|
FROM quay.io/pypa/manylinux2014_${ARCH}
|
|
|
|
ARG ARCH=x86_64
|
|
ARG DOCKER_USER=default_user
|
|
|
|
# Install static openssl
|
|
COPY install_openssl.sh install_openssl.sh
|
|
RUN ./install_openssl.sh ${ARCH} > /dev/null
|
|
|
|
# Protobuf is also installed as root.
|
|
COPY install_protobuf.sh install_protobuf.sh
|
|
RUN ./install_protobuf.sh ${ARCH}
|
|
|
|
ENV DOCKER_USER=${DOCKER_USER}
|
|
# Create a group and user, but only if it doesn't exist
|
|
RUN echo ${ARCH} && id -u ${DOCKER_USER} >/dev/null 2>&1 || adduser --user-group --create-home --uid ${DOCKER_USER} build_user
|
|
|
|
# We switch to the user to install Rust and Node, since those like to be
|
|
# installed at the user level.
|
|
USER ${DOCKER_USER}
|
|
|
|
COPY prepare_manylinux_node.sh prepare_manylinux_node.sh
|
|
RUN cp /prepare_manylinux_node.sh $HOME/ && \
|
|
cd $HOME && \
|
|
./prepare_manylinux_node.sh ${ARCH}
|