Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit f9d6eeb

Browse files
feat: renamed database and removed python script
1 parent f93567e commit f9d6eeb

File tree

5 files changed

+5
-39
lines changed

5 files changed

+5
-39
lines changed

compose.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ services:
4949
networks:
5050
- backend
5151

52-
azurite-setup:
53-
container_name: azurite-setup
54-
build:
55-
context: ./
56-
dockerfile: ./setup/azurite/Dockerfile
57-
network_mode: host
58-
depends_on:
59-
- azurite
60-
environment:
61-
- AZURITE_CONNECTION_STRING=${AZURITE_CONNECTION_STRING}
62-
6352
db:
6453
container_name: "db"
6554
image: mcr.microsoft.com/mssql/server:2022-latest
@@ -70,6 +59,7 @@ services:
7059
MSSQL_PID: "Developer"
7160
ports:
7261
- "1433:1433"
62+
user: "root"
7363
volumes:
7464
- db-data:/var/opt/mssql
7565
healthcheck:

database/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM mcr.microsoft.com/mssql-tools
22

33
WORKDIR /database
4-
COPY . /database
4+
COPY db-setup-entrypoint.sh /database/
55
RUN chmod +x /database/db-setup-entrypoint.sh
6+
# USER mssql
67
ENTRYPOINT ["/database/db-setup-entrypoint.sh"]

database/create_database_statement.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ GO
44
IF NOT EXISTS (
55
SELECT name
66
FROM sys.databases
7-
WHERE name = N'Test'
7+
WHERE name = N'ServiceLayer'
88
)
99
CREATE DATABASE [Test];
1010
GO
1111

1212
IF SERVERPROPERTY('ProductVersion') > '12'
13-
ALTER DATABASE [Test] SET QUERY_STORE = ON;
13+
ALTER DATABASE [ServiceLayer] SET QUERY_STORE = ON;
1414
GO

setup/azurite/Dockerfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup/azurite/azurite-setup.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)