I'm trying to setup a docker container that starts cloud spanner and that initializes it.
Using this official docker image provided by google: gcr.io/cloud-spanner-emulator/emulator
I'm looking to automatically initialize spanner on start.
I tried various things with the docker file, to summarize:
FROM gcr.io/cloud-spanner-emulator/emulator
RUN some gcloud command after to initialize local spanner db
But absence of informations on how this image works makes it hard to find if it's even possible to initialize it everytime the container starts.
I repeat myself, I need this to be run automatically when the container mounts. It's going to build pipelines.
Is there a way to do that with this provided docker image? Or should I create my own dockerfile that installs the emulator via gcloud cli?