mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
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:
parent
e894837b7e
commit
f8b527b818
12
devenv/docker/blocks/mssql_arm64/README.md
Normal file
12
devenv/docker/blocks/mssql_arm64/README.md
Normal 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`
|
11
devenv/docker/blocks/mssql_arm64/build/Dockerfile
Normal file
11
devenv/docker/blocks/mssql_arm64/build/Dockerfile
Normal 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
|
2
devenv/docker/blocks/mssql_arm64/build/entrypoint.sh
Normal file
2
devenv/docker/blocks/mssql_arm64/build/entrypoint.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#start SQL Server
|
||||||
|
/opt/mssql/bin/sqlservr
|
8
devenv/docker/blocks/mssql_arm64/docker-compose.yaml
Normal file
8
devenv/docker/blocks/mssql_arm64/docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
mssql:
|
||||||
|
build:
|
||||||
|
context: docker/blocks/mssql_arm64/build
|
||||||
|
environment:
|
||||||
|
ACCEPT_EULA: Y
|
||||||
|
MSSQL_SA_PASSWORD: Password!
|
||||||
|
ports:
|
||||||
|
- "1433:1433"
|
Loading…
Reference in New Issue
Block a user