aboutsummaryrefslogtreecommitdiffstats
path: root/tools/docker
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-01-02 13:58:50 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-01-14 12:13:01 +0000
commit9720d33e3296140eea579a8ac1cfa3e7502d075c (patch)
tree5e3700dcf9ac267ec88a39d18714d16431fffe84 /tools/docker
parent35052f195a817abe3694f7e9c01a2a9db2d279d5 (diff)
tools/docker/env: add a Spanner emulator
Diffstat (limited to 'tools/docker')
-rw-r--r--tools/docker/env/Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/docker/env/Dockerfile b/tools/docker/env/Dockerfile
index e8642de0a..42c9eaf51 100644
--- a/tools/docker/env/Dockerfile
+++ b/tools/docker/env/Dockerfile
@@ -64,6 +64,14 @@ RUN sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/c
RUN sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 100
RUN apt autoremove -y -q
+# Install the Spanner emulator.
+
+ARG SPANNER_EMULATOR_VERSION=1.5.28
+RUN mkdir /spanner
+RUN curl https://storage.googleapis.com/cloud-spanner-emulator/releases/${SPANNER_EMULATOR_VERSION}/cloud-spanner-emulator_linux_amd64-${SPANNER_EMULATOR_VERSION}.tar.gz | tar -C /spanner -xz
+RUN chmod u+x /spanner/gateway_main /spanner/emulator_main
+ENV SPANNER_EMULATOR_BIN=/spanner/gateway_main
+
# Install OS toolchains from pre-built archives.
# These archives were created with:
# tar -cz --owner=0 --group=0 --mode=go=u -f netbsd-toolchain.tar.gz netbsd/tools netbsd/dest