generated from BRP-API/brp-shared
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d34ff0b
commit 23d1f62
Showing
4 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
MODE=$1 | ||
|
||
if [ "$MODE" = "ci" ]; then | ||
# gebruik docker compose up -d om te forceren dat de container image wordt aangemaakt in de lokale registry | ||
docker compose -f .docker/docker-compose-ci.yml up -d | ||
docker compose -f .docker/docker-compose-ci.yml down | ||
else | ||
docker compose -f src/docker-compose.yml build | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
|
||
# This stage is used when running from VS in fast mode (Default for Debug configuration) | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base | ||
WORKDIR /app | ||
|
||
|
||
# This stage is used to build the service project | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
ARG BUILD_CONFIGURATION=Release | ||
WORKDIR /src | ||
COPY ["Historie.Data.Service/Historie.Data.Service.csproj", "Historie.Data.Service/"] | ||
COPY ["Rvig.Base.App/Rvig.Base.App.csproj", "Rvig.Base.App/"] | ||
COPY ["Brp.Shared.Infrastructure/Brp.Shared.Infrastructure.csproj", "Brp.Shared.Infrastructure/"] | ||
COPY ["Serilog.Sinks.PersistentFile/Serilog.Sinks.PersistentFile.csproj", "Serilog.Sinks.PersistentFile/"] | ||
COPY ["Rvig.Data.Base.WebApi/Rvig.Data.Base.WebApi.csproj", "Rvig.Data.Base.WebApi/"] | ||
COPY ["Rvig.Data.Base/Rvig.Data.Base.csproj", "Rvig.Data.Base/"] | ||
COPY ["Rvig.HaalCentraalApi.Shared/Rvig.HaalCentraalApi.Shared.csproj", "Rvig.HaalCentraalApi.Shared/"] | ||
COPY ["Rvig.Data.Base.Postgres/Rvig.Data.Base.Postgres.csproj", "Rvig.Data.Base.Postgres/"] | ||
COPY ["Rvig.Data.Historie/Rvig.Data.Historie.csproj", "Rvig.Data.Historieen/"] | ||
COPY ["Rvig.HaalCentraalApi.Historie/Rvig.HaalCentraalApi.Historie.csproj", "Rvig.HaalCentraalApi.Historie/"] | ||
RUN dotnet restore "./Historie.Data.Service/Historie.Data.Service.csproj" | ||
COPY . . | ||
WORKDIR "/src/Historie.Data.Service" | ||
RUN dotnet build "./Historie.Data.Service.csproj" -c "$BUILD_CONFIGURATION" -o /app/build | ||
|
||
# This stage is used to publish the service project to be copied to the final stage | ||
FROM build AS publish | ||
ARG BUILD_CONFIGURATION=Release | ||
RUN dotnet publish "./Historie.Data.Service.csproj" -c "$BUILD_CONFIGURATION" -o /app/publish /p:UseAppHost=false | ||
|
||
# This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration) | ||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
|
||
# See https://github.com/Contrast-Security-OSS/agent-operator/blob/master/docs/public/08-tips.md | ||
ENV DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE=false | ||
|
||
ENTRYPOINT ["dotnet", "Historie.Data.Service.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
historie-data-service: | ||
image: ghcr.io/brp-api/historie-data-service:latest | ||
build: | ||
context: . | ||
dockerfile: Historie.Data.Service/Dockerfile | ||
|