Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
33
vendor/ruvector/tests/docker-integration/Dockerfile
vendored
Normal file
33
vendor/ruvector/tests/docker-integration/Dockerfile
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# Test environment for ruvector-attention published packages
|
||||
FROM node:20-slim
|
||||
|
||||
# Install Rust for testing the crate
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Rust
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy test files
|
||||
COPY package.json ./
|
||||
COPY Cargo.toml ./
|
||||
COPY test-wasm.mjs ./
|
||||
COPY test-napi.mjs ./
|
||||
COPY src/ ./src/
|
||||
|
||||
# Install npm packages
|
||||
RUN npm install
|
||||
|
||||
# Build and test Rust crate
|
||||
RUN cargo build --release
|
||||
RUN cargo test --release
|
||||
|
||||
# Run Node.js tests
|
||||
CMD ["node", "--test"]
|
||||
Reference in New Issue
Block a user