Use QEMU on arm64 for Yugabyte for now (#5429)

This commit is contained in:
Alexey Palazhchenko authored and GitHub committed 2025-08-14 12:32:49 +04:00
1 parent 3770c1e4eb
commit 4ea90be4aa
3 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -261,7 +261,7 @@ func main() {
switch cmd {
case "setup":
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()
err = setup(ctx, logger)
-4
View File
@@ -21,7 +21,6 @@ import (
"log/slog"
"net"
"net/url"
"runtime"
"time"
"github.com/FerretDB/wire/wirebson"
@@ -173,13 +172,10 @@ func setup(ctx context.Context, logger *slog.Logger) error {
return lazyerrors.Error(err)
}
// TODO https://github.com/FerretDB/FerretDB/issues/5369
if runtime.GOARCH != "arm64" {
uri = "postgres://pg-user:pg-pass@127.0.0.1:5433/yugabyte"
if err = setupUser(ctx, uri, logging.WithName(logger, "yugabytedb")); err != nil {
return lazyerrors.Error(err)
}
}
logger.InfoContext(ctx, "Done")
return nil
+1
View File
@@ -31,6 +31,7 @@ services:
context: ./build/deps
dockerfile: yugabytedb.Dockerfile
container_name: ferretdb_yugabytedb
platform: linux/amd64 # TODO https://github.com/FerretDB/FerretDB/issues/5369
# postgresql.conf is populated by "ysql_pg_conf_csv" flag
# https://docs.yugabyte.com/preview/reference/configuration/yugabyted/#pass-additional-flags-to-yb-master-and-yb-tserver
command: >