From fd1b8f27ee557a8548bc687ce5ff36942c560f80 Mon Sep 17 00:00:00 2001 From: Nicolas Moreau Date: Wed, 29 Jan 2025 14:53:11 +0100 Subject: [PATCH 1/3] chore: bump mssql docker version --- packages/_example/docker-compose.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/_example/docker-compose.yml b/packages/_example/docker-compose.yml index b9ebc2e6fb..458afee235 100644 --- a/packages/_example/docker-compose.yml +++ b/packages/_example/docker-compose.yml @@ -26,7 +26,7 @@ services: - mysql-data:/var/lib/mysql mssql: - image: mcr.microsoft.com/azure-sql-edge + image: mcr.microsoft.com/mssql/server:2022-latest container_name: forest_agent_example_mssql ports: - '1433:1433' @@ -36,6 +36,15 @@ services: volumes: - mssql-data:/var/opt/mssql +# waiting 30secs for mssql to be up and creating the 'example' database + sqlcmd: + image: mcr.microsoft.com/mssql-tools:latest + stdin_open: true + environment: + - MSSQL_SA_PASSWORD=yourStrong(!)Password + command: /bin/bash -c 'sleep 30 && /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P $$MSSQL_SA_PASSWORD -d master -Q "CREATE DATABASE example"' + + mariadb: image: mariadb:latest container_name: forest_agent_example_mariadb @@ -70,4 +79,4 @@ volumes: mariadb-data: driver: local mongodb-data: - driver: local + driver: local \ No newline at end of file From 6e6061c48e00cc73d3aaf932f99a0c2b9689465e Mon Sep 17 00:00:00 2001 From: Nicolas Moreau Date: Wed, 29 Jan 2025 14:57:48 +0100 Subject: [PATCH 2/3] fix: set target platform --- packages/_example/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/_example/docker-compose.yml b/packages/_example/docker-compose.yml index 458afee235..64e0b14e08 100644 --- a/packages/_example/docker-compose.yml +++ b/packages/_example/docker-compose.yml @@ -28,6 +28,7 @@ services: mssql: image: mcr.microsoft.com/mssql/server:2022-latest container_name: forest_agent_example_mssql + platform: linux/amd64 ports: - '1433:1433' environment: @@ -39,6 +40,7 @@ services: # waiting 30secs for mssql to be up and creating the 'example' database sqlcmd: image: mcr.microsoft.com/mssql-tools:latest + platform: linux/amd64 stdin_open: true environment: - MSSQL_SA_PASSWORD=yourStrong(!)Password From 457415957d756959e19bf1295f2aa8ce4279f5d7 Mon Sep 17 00:00:00 2001 From: Nicolas Moreau Date: Wed, 29 Jan 2025 15:26:29 +0100 Subject: [PATCH 3/3] chore: use fixed version --- packages/_example/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/_example/docker-compose.yml b/packages/_example/docker-compose.yml index 64e0b14e08..6a2f9855a0 100644 --- a/packages/_example/docker-compose.yml +++ b/packages/_example/docker-compose.yml @@ -26,7 +26,7 @@ services: - mysql-data:/var/lib/mysql mssql: - image: mcr.microsoft.com/mssql/server:2022-latest + image: mcr.microsoft.com/mssql/server:2022-CU17-ubuntu-22.04 container_name: forest_agent_example_mssql platform: linux/amd64 ports: