Skip to content

Commit cbb7a31

Browse files
csweichelona-agent
andcommitted
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 <no-reply@ona.com>
1 parent 8e02e09 commit cbb7a31

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,14 @@ RUN curl -fsSL https://uploader.codecov.io/latest/codecov-linux -o /usr/local/bi
211211
RUN cd /usr/bin && curl -fsSL https://github.com/cli/cli/releases/download/v2.35.0/gh_2.35.0_linux_${TARGETARCH}.tar.gz \
212212
| tar xzv --strip-components=2 gh_2.35.0_linux_${TARGETARCH}/bin/gh
213213

214+
# Install SpiceDB
215+
RUN cd /tmp && \
216+
git clone --depth 1 https://github.com/authzed/spicedb.git && \
217+
cd spicedb && \
218+
go build -o /usr/local/bin/spicedb ./cmd/spicedb && \
219+
cd / && \
220+
rm -rf /tmp/spicedb
221+
214222
# Install observability-related binaries
215223
ARG PROM_VERSION="2.36.0"
216224
RUN curl -LO https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.linux-${TARGETARCH}.tar.gz && \

0 commit comments

Comments
 (0)