direnv: Default to the Azure SQL Edge image on macOS.

Sometimes you just want to run `docker compose up` without faffing about with `make`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6499
GitOrigin-RevId: 1a88dae933e314ea8204c6c22a831b38808776c1
This commit is contained in:
Samir Talwar 2022-10-24 17:52:01 +02:00 committed by hasura-bot
parent 63e576cce3
commit 0fa76e8abb

6
.envrc
View File

@ -3,6 +3,12 @@
# This file provides some tooling on an opt-in basis via `direnv`
# (https://direnv.net/)
# We cannot use the proper MSSQL Server image on arm64, as it's not available.
# Instead, we use `mcr.microsoft.com/azure-sql-edge`.
if [[ "$(uname -m)" == 'arm64' ]]; then
export MSSQL_IMAGE='mcr.microsoft.com/azure-sql-edge'
fi
# To use the functionality here, create an `.envrc.local` file in this folder
# that runs the functions you need.
# There is an example in `.envrc.local.example` you can start with