opentable/otj-pg-embedded

No Postgres binary found for Darwin / aarch64 (Apple M1)

1gorsh opened this issue · 2 comments

Hi there,

Is there any plans to add support for Apple Silicon M1?
Recently switched to new MBP and now getting:

java.lang.IllegalStateException: No Postgres binary found for Darwin / aarch64
	at com.opentable.db.postgres.embedded.UncompressBundleDirectoryResolver.getDirectory(UncompressBundleDirectoryResolver.java:87)
	at com.opentable.db.postgres.embedded.EmbeddedPostgres.<init>(EmbeddedPostgres.java:118)
	at com.opentable.db.postgres.embedded.EmbeddedPostgres$Builder.start(EmbeddedPostgres.java:554)

Thanks

Testcontainers is a good alternative to consider. It has support for many databases and other services. If the Docker container such as postgres supports ARM64, then it works great on M1, otherwise it has to use Docker's emulation which unfortunately is not 100% reliable in my experience.

As noted we've released 1.0.0 which is testcontainers based. We expect this resolves the issue, and while PRs are welcome against the legacy branch, we are not planning on formally maintaining pre-1.xx code base.