Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions ci/Dockerfile.validate
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM rust:1.85-bookworm

# Install protobuf compiler (required by Cross.toml), shellcheck (for ci/validate), and libfuse (for fuser crate)
RUN apt-get update && apt-get install -y \
protobuf-compiler \
shellcheck \
libfuse3-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
Comment on lines +4 to +9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Quality Violation

package libfuse3-dev should have version pinned (...read more)

When using apt-get install, pin the version to avoid unwanted upgrades and undefined behavior.

View in Datadog  Leave us feedback  Documentation


# Install nextest for testing
RUN curl -LsSf https://get.nexte.st/latest/linux-musl | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

WORKDIR /workspace

# Copy over the source
COPY . .

# Run validation
CMD ["bash", "-c", "ci/validate"]
14 changes: 14 additions & 0 deletions ci/validate-linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail

# Build the validation Docker image
echo "Building Linux validation environment..."
docker build -f ./ci/Dockerfile.validate -t lading-validate .

# Run validation in the container
echo "Running validation in Linux container..."
docker run --rm -v "$(pwd):/workspace" lading-validate

echo "Linux validation passed!"
Loading