Skip to content

Commit

Permalink
Merge branch 'main' into feature/162020-preferred-trust
Browse files Browse the repository at this point in the history
  • Loading branch information
elielijah321 authored Apr 16, 2024
2 parents 91c684c + 5473933 commit 680d876
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ namespace Dfe.Academies.Academisation.IService.ServiceModels.TransferProject
{
public class AcademyTransferProjectResponse
{
public int Id { get; set; }
public string ProjectUrn { get; set; }

public string ProjectReference { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public static AcademyTransferProjectResponse Create(ITransferProject model)

return new AcademyTransferProjectResponse
{
Id = model.Id,
ProjectUrn = model.Urn.ToString(),
ProjectReference = model.ProjectReference,
OutgoingTrustUkprn = model.OutgoingTrustUkprn,
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN dotnet restore Dfe.Academies.Academisation.WebApi
RUN dotnet build Dfe.Academies.Academisation.WebApi

RUN dotnet new tool-manifest
RUN dotnet tool install dotnet-ef --version 7.0.14
RUN dotnet tool install dotnet-ef --version 8.0.4

RUN dotnet ef migrations script --output /app/SQL/DbMigrationScript.sql --idempotent -p /build/Dfe.Academies.Academisation.Data -s /build/Dfe.Academies.Academisation.WebApi -c AcademisationContext

Expand All @@ -33,11 +33,11 @@ ARG ASPNET_IMAGE_TAG
FROM "mcr.microsoft.com/dotnet/aspnet:${ASPNET_IMAGE_TAG}" AS final

RUN apt-get update
RUN apt-get install unixodbc curl gnupg -y
RUN apt-get install curl gnupg -y
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/11/prod.list | tee /etc/apt/sources.list.d/msprod.list
RUN apt-get update
RUN ACCEPT_EULA=Y apt-get install msodbcsql18 mssql-tools18 -y
RUN ACCEPT_EULA=Y apt-get install msodbcsql18 mssql-tools18 unixodbc-dev -y

COPY --from=build /app /app
WORKDIR /app
Expand Down

0 comments on commit 680d876

Please sign in to comment.