Skip to content

Commit

Permalink
Fixup Tefca.Proxy.Server Reference Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeShook committed Sep 12, 2024
1 parent 74915d7 commit 8b8eb42
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions examples/Tefca.Proxy.Server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src

COPY ["Udap.Proxy.Server.csproj", "."]
RUN dotnet restore "Udap.Proxy.Server.csproj"
COPY ["Tefca.Proxy.Server.csproj", "."]
RUN dotnet restore "Tefca.Proxy.Server.csproj"
COPY . .

RUN dotnet build "Udap.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build
RUN dotnet build "Tefca.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Udap.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "./Tefca.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Udap.Proxy.Server.dll"]
ENTRYPOINT ["dotnet", "Tefca.Proxy.Server.dll"]
10 changes: 5 additions & 5 deletions examples/Tefca.Proxy.Server/Dockerfile.gcp
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src

COPY ["Udap.Proxy.Server.csproj", "."]
RUN dotnet restore "Udap.Proxy.Server.csproj"
COPY ["Tefca.Proxy.Server.csproj", "."]
RUN dotnet restore "Tefca.Proxy.Server.csproj"
COPY . .

ENV GCPDeploy=true

RUN dotnet build "Udap.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build
RUN dotnet build "Tefca.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Udap.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "./Tefca.Proxy.Server.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENV ASPNETCORE_URLS=http://*:8080
ENV GCPDeploy=true
ENTRYPOINT ["dotnet", "Udap.Proxy.Server.dll"]
ENTRYPOINT ["dotnet", "Tefca.Proxy.Server.dll"]
2 changes: 1 addition & 1 deletion examples/Tefca.Proxy.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
theme: TemplateTheme.Code)));

// Mount Cloud Secrets
builder.Configuration.AddJsonFile("/secret/udapproxyserverappsettings", true, false);
builder.Configuration.AddJsonFile("/secret/tefcaproxyserverappsettings", true, false);

// Add services to the container.
builder.Services.AddControllersWithViews();
Expand Down
2 changes: 1 addition & 1 deletion examples/Tefca.Proxy.Server/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"AccessToken": "your bearer token"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:7075;https://proxy.fhirlabs.net:7075"
"applicationUrl": "https://localhost:7075"
},
"Container (Dockerfile)": {
"commandName": "Docker",
Expand Down
2 changes: 1 addition & 1 deletion examples/Tefca.Proxy.Server/Tefca.Proxy.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>.</DockerfileContext>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
<DockerfileRunArguments>-p "7074:443" </DockerfileRunArguments>
<DockerfileRunArguments>-p "7075:443" </DockerfileRunArguments>
<UserSecretsId>7cd9d06d-9101-4137-8709-b6b54c1c09a1</UserSecretsId>
</PropertyGroup>

Expand Down

0 comments on commit 8b8eb42

Please sign in to comment.