Skip to content

Commit

Permalink
Reverted to using prebuilt Trams database
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Mar 23, 2023
1 parent d00c196 commit 30ff505
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 42 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/continuous-integration-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
cp .env.database.example .env.database
cp .env.example .env.development
docker compose -f "docker-compose.yml" up -d --build db sqlcmd
docker compose -f "docker-compose.yml" up -d --build db
- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand Down Expand Up @@ -62,12 +62,6 @@ jobs:
- name: Restore dependencies
run: dotnet restore TramsDataApi.sln

- name: Run TramsDbContext database migrations
run: dotnet ef database update --connection ${{ env.CONNECTION_STRING }} --context TramsDataApi.DatabaseModels.TramsDbContext

- name: Run LegacyTramsDbContext database migrations
run: dotnet ef database update --connection ${{ env.CONNECTION_STRING }} --context TramsDataApi.DatabaseModels.LegacyTramsDbContext

- name: Build, Test and Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
15 changes: 1 addition & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,18 @@ services:
restart: always
depends_on:
- db
- sqlcmd
env_file:
- .env.development
networks:
- dev

db:
image: mcr.microsoft.com/azure-sql-edge:latest
image: ghcr.io/dfe-digital/trams-development-database:sql-2022
env_file: .env.database
ports:
- 1433:1433
networks:
- dev

sqlcmd:
image: mcr.microsoft.com/mssql-tools:latest
env_file: .env.database
command: /etc/docker-entrypoint.sh
depends_on:
- db
stdin_open: true
volumes:
- ./script/sqlcmd-docker-entrypoint.sh:/etc/docker-entrypoint.sh
networks:
- dev

networks:
dev:
Empty file removed initial
Empty file.
21 changes: 0 additions & 21 deletions script/sqlcmd-docker-entrypoint.sh

This file was deleted.

0 comments on commit 30ff505

Please sign in to comment.