-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: renew ChatApp docker for MagicOnionv4
- Loading branch information
1 parent
013ae7d
commit 315e379
Showing
20 changed files
with
125 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.git/ | ||
.vs/ | ||
bin/ | ||
obj/ | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.gitattributes | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/azds.yaml | ||
**/charts | ||
**/bin | ||
**/obj | ||
**/Dockerfile | ||
**/Dockerfile.develop | ||
**/docker-compose.yml | ||
**/docker-compose.*.yml | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
**/.toolstarget | ||
|
||
.github/ | ||
docs/ | ||
samples/ChatApp/ChatApp.Unity/Temp/ | ||
samples/ChatApp/ChatApp.Unity/Library/ | ||
sandbox/ | ||
tests/ |
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 |
---|---|---|
|
@@ -123,4 +123,4 @@ nuget/*.unitypackage | |
.idea/ | ||
src/MagicOnion.Client.Unity/Packages/manifest.json | ||
|
||
packages | ||
packages |
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
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
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,25 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base | ||
EXPOSE 12345 | ||
WORKDIR /app | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | ||
WORKDIR /src | ||
COPY ["samples/ChatApp.Telemetry/ChatApp.Server/ChatApp.Server.csproj", "samples/ChatApp.Telemetry/ChatApp.Server/"] | ||
COPY ["samples/ChatApp.Telemetry/ChatApp.Shared/ChatApp.Shared.csproj", "samples/ChatApp.Telemetry/ChatApp.Shared/"] | ||
COPY ["src/MagicOnion/MagicOnion.csproj", "src/MagicOnion/"] | ||
COPY ["src/MagicOnion.Abstractions/MagicOnion.Abstractions.csproj", "src/MagicOnion.Abstractions/"] | ||
COPY ["src/MagicOnion.Server/MagicOnion.Server.csproj", "src/MagicOnion.Server/"] | ||
COPY ["src/MagicOnion.Server.OpenTelemetry/MagicOnion.Server.OpenTelemetry.csproj", "src/MagicOnion.Server.OpenTelemetry/"] | ||
COPY ["src/MagicOnion.Shared/MagicOnion.Shared.csproj", "src/MagicOnion.Shared/"] | ||
RUN dotnet restore "samples/ChatApp.Telemetry/ChatApp.Server/ChatApp.Server.csproj" | ||
COPY . . | ||
WORKDIR "/src/samples/ChatApp.Telemetry/ChatApp.Server" | ||
RUN dotnet build "ChatApp.Server.csproj" -c Debug -o /app | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "ChatApp.Server.csproj" -c Debug -o /app | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
ENTRYPOINT ["dotnet", "ChatApp.Server.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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM grafana/grafana:latest-ubuntu | ||
FROM grafana/grafana:7.3.2-ubuntu | ||
COPY ["./docker/grafana/download_dashboards.sh", "/etc/grafana/download_dashboards.sh"] | ||
RUN mkdir -p /var/tmp/grafana/dashboards/default && /bin/sh /etc/grafana/download_dashboards.sh |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
:: cysharp/magiconion_sample_chatapp_telemetry | ||
docker-compose -f docker-compose.yaml build magiconion | ||
docker build -t chatapp_magiconion:latest -f ChatApp.Server/Dockerfile . | ||
docker tag chatapp_magiconion:latest cysharp/magiconion_sample_chatapp_telemetry:latest | ||
docker tag chatapp_magiconion:latest cysharp/magiconion_sample_chatapp_telemetry:3.0.13 | ||
docker tag chatapp_magiconion:latest cysharp/magiconion_sample_chatapp_telemetry:4.0.1-0.8.0.beta1 | ||
docker push cysharp/magiconion_sample_chatapp_telemetry:latest | ||
docker push cysharp/magiconion_sample_chatapp_telemetry:3.0.13 | ||
docker push cysharp/magiconion_sample_chatapp_telemetry:4.0.1-0.8.0.beta1 |
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,6 @@ | ||
:: cysharp/magiconion_sample_chatapp_telemetry | ||
docker build -t chatapp_magiconion:latest -f samples/ChatApp.Telemetry/ChatApp.Server/Dockerfile.full . | ||
docker tag chatapp_magiconion:latest cysharp/magiconion_sample_chatapp_telemetry:latest | ||
docker tag chatapp_magiconion:latest cysharp/magiconion_sample_chatapp_telemetry:4.0.1-0.8.0.beta1 | ||
docker push cysharp/magiconion_sample_chatapp_telemetry:latest | ||
docker push cysharp/magiconion_sample_chatapp_telemetry:4.0.1-0.8.0.beta1 |
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
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