Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 Compatibility (for M1/M2 Mac, etc.) with SQL #158

Open
Hooobot opened this issue Oct 10, 2023 · 2 comments
Open

ARM64 Compatibility (for M1/M2 Mac, etc.) with SQL #158

Hooobot opened this issue Oct 10, 2023 · 2 comments
Assignees

Comments

@Hooobot
Copy link
Contributor

Hooobot commented Oct 10, 2023

After running docker compose up -d...
The following errors appears:

! sql The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s

Attempted troubleshooting included running:
docker build --platform linux/arm64 .
but that requires a created Dockerfile

Running SQLite instead of SQLServer is an alternative solution.
This requires changing the .env file to include proper SQLite configuration in changing:

  • DATABASE_URL="file:./db.sqlite"
  • EMAIL_SERVER
  • EMAIL_FROM
    Additionally there requires a change in provider in the prisma/schema.prism from "sqlserver" to "sqlite"

.. to match the proper SQLite dependencies.

Then, run:

  1. npx prisma db push
  2. npm run dev
@MichaelTamaki
Copy link
Contributor

@Hooobot Could you try updating your docker compose file? https://stackoverflow.com/a/68434363

platform: "linux/arm64"

https://github.com/CodeWithAloha/HIERR/blob/main/compose.yaml#L2

Somewhere in compose.yaml within the sql confirguation?

@Hooobot
Copy link
Contributor Author

Hooobot commented Oct 17, 2023

Unfortunately updating the docker compose to include ARM64 platform didn't seem to resolve it.
However, changing the sql image from mcr.microsoft.com/mssql/server:2017-latest to mcr.microsoft.com/azure-sql-edge did allow me to launch the sql docker container.
Unfortunately that still didn't seem to resolve the issue since as of September 2023, Microsoft azure-sql-edge seemed to no longer support ARM64 platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants