GoogleCloudPlatform / cloud-spanner-emulator

An open source emulator for Cloud Spanner.
Apache License 2.0
273 stars 45 forks source link

Pre-built docker image v1.5.12 not supporting arm64 #145

Closed mrtoth closed 11 months ago

mrtoth commented 1 year ago

Same problem as described in https://github.com/GoogleCloudPlatform/cloud-spanner-emulator/issues/132 has appeared again in v1.5.12.

olavloite commented 1 year ago

Related to #134

TLDR: Try again, and it will probably work.

From a quick test run on my local laptop just now:

docker pull --platform linux/arm64/v8 gcr.io/cloud-spanner-emulator/emulator:1.5.12
1.5.12: Pulling from cloud-spanner-emulator/emulator
6ec9caf47f8f: Pull complete 
...
605e9f00e8e1: Pull complete 
Digest: sha256:9ded3fac22d4d1c85ae51473e3876e2377f5179192fea664409db0fe87e05ece
Status: Downloaded newer image for gcr.io/cloud-spanner-emulator/emulator:1.5.12
gcr.io/cloud-spanner-emulator/emulator:1.5.12

The problem is that there is a time gap in the build process between publishing the amd64 and arm64 image. That means that if you try to pull the newest arm64 image after the amd64 image has been published, but before the arm64 image, then you'll get this error. We'll try to modify the build process so the two images are published at the same time.

halnique commented 9 months ago

The same problem occurs in the latest version 1.5.14.

https://github.com/GoogleCloudPlatform/cloud-spanner-emulator/issues/134#issuecomment-1756818826

We'll look into whether it's feasible to publish all three at the same time to avoid this confusion.

I would appreciate it if you could give this a higher priority and work on it.