Build: Add MSSQL devenv for ARM64 processors (#43888)

* Build: Add MSSQL devenv for ARM64 processors

* Change docker image tag from latest to fixed version
This commit is contained in:
Victor Marin 2022-01-12 16:24:06 +02:00 committed by GitHub
parent e894837b7e
commit f8b527b818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,12 @@
This build is basically a clone of the `mssql` folder but without the custom `grafana` db/user created.
At this moment, there is no `MSSQL Server` available for `arm64` processors. The workaround is using an `azure-sql-edge` image instead.
The `setup` files cannot be used to create a custom `grafana` db/user since `sqlcmd` does not work for `arm64` processors.
(https://docs.microsoft.com/en-us/azure/azure-sql-edge/connect)
You can connect the Grafana MSSQL datasource to this instance by using the following credentials:
* Host: `localhost`
* Database: `master`
* User: `sa`
* Password: `Password!` or whatever is set in `docker-compose.yaml` for env var `MSSQL_SA_PASSWORD`

View File

@ -0,0 +1,11 @@
FROM mcr.microsoft.com/azure-sql-edge:1.0.4
WORKDIR /usr/setup
COPY entrypoint.sh ./
USER root
RUN chown -R mssql ./
USER mssql
CMD /bin/bash ./entrypoint.sh

View File

@ -0,0 +1,2 @@
#start SQL Server
/opt/mssql/bin/sqlservr

View File

@ -0,0 +1,8 @@
mssql:
build:
context: docker/blocks/mssql_arm64/build
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: Password!
ports:
- "1433:1433"