From cbb7a31c9111cbe22e2590841c4e9bd38c3ef5a5 Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Thu, 30 Oct 2025 18:17:03 +0000 Subject: [PATCH] Add SpiceDB to devcontainer for test execution SpiceDB is required for running database tests in components/server. The test suite expects spicedb binary to be available in PATH. This change adds SpiceDB installation to the devcontainer Dockerfile, building it from source to ensure compatibility with the test environment. Co-authored-by: Ona --- .devcontainer/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f3d0772c065d56..847f653e836ea7 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -211,6 +211,14 @@ RUN curl -fsSL https://uploader.codecov.io/latest/codecov-linux -o /usr/local/bi RUN cd /usr/bin && curl -fsSL https://github.com/cli/cli/releases/download/v2.35.0/gh_2.35.0_linux_${TARGETARCH}.tar.gz \ | tar xzv --strip-components=2 gh_2.35.0_linux_${TARGETARCH}/bin/gh +# Install SpiceDB +RUN cd /tmp && \ + git clone --depth 1 https://github.com/authzed/spicedb.git && \ + cd spicedb && \ + go build -o /usr/local/bin/spicedb ./cmd/spicedb && \ + cd / && \ + rm -rf /tmp/spicedb + # Install observability-related binaries ARG PROM_VERSION="2.36.0" RUN curl -LO https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.linux-${TARGETARCH}.tar.gz && \