-
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
Shanmugapriya Nadimuthu
committed
Nov 2, 2023
1 parent
5d7a6ee
commit a4a6cf7
Showing
52 changed files
with
4,784 additions
and
0 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,25 @@ | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
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,39 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (web)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/GitHubActions.NetDemo.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}", | ||
"stopAtEntry": false, | ||
"serverReadyAction": { | ||
"action": "openExternally", | ||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)" | ||
}, | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"sourceFileMap": { | ||
"/Views": "${workspaceFolder}/Views" | ||
} | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach" | ||
}, | ||
{ | ||
"name": "Docker .NET Launch", | ||
"type": "docker", | ||
"request": "launch", | ||
"preLaunchTask": "docker-run: debug", | ||
"netCore": { | ||
"appProject": "${workspaceFolder}/GitHubActions.NetDemo.csproj" | ||
} | ||
} | ||
] | ||
} |
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,101 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/GitHubActions.NetDemo.sln", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary;ForceNoAlign" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/GitHubActions.NetDemo.sln", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary;ForceNoAlign" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "watch", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"watch", | ||
"run", | ||
"--project", | ||
"${workspaceFolder}/GitHubActions.NetDemo.sln" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"type": "docker-build", | ||
"label": "docker-build: debug", | ||
"dependsOn": [ | ||
"build" | ||
], | ||
"dockerBuild": { | ||
"tag": "dotnetdockerdemo:dev", | ||
"target": "base", | ||
"dockerfile": "${workspaceFolder}/Dockerfile", | ||
"context": "${workspaceFolder}", | ||
"pull": true | ||
}, | ||
"netCore": { | ||
"appProject": "${workspaceFolder}/GitHubActions.NetDemo.csproj" | ||
} | ||
}, | ||
{ | ||
"type": "docker-build", | ||
"label": "docker-build: release", | ||
"dependsOn": [ | ||
"build" | ||
], | ||
"dockerBuild": { | ||
"tag": "dotnetdockerdemo:latest", | ||
"dockerfile": "${workspaceFolder}/Dockerfile", | ||
"context": "${workspaceFolder}", | ||
"platform": { | ||
"os": "linux", | ||
"architecture": "amd64" | ||
}, | ||
"pull": true | ||
}, | ||
"netCore": { | ||
"appProject": "${workspaceFolder}/GitHubActions.NetDemo.csproj" | ||
} | ||
}, | ||
{ | ||
"type": "docker-run", | ||
"label": "docker-run: debug", | ||
"dependsOn": [ | ||
"docker-build: debug" | ||
], | ||
"dockerRun": {}, | ||
"netCore": { | ||
"appProject": "${workspaceFolder}/GitHubActions.NetDemo.csproj", | ||
"enableDebugging": true | ||
} | ||
}, | ||
{ | ||
"type": "docker-run", | ||
"label": "docker-run: release", | ||
"dependsOn": [ | ||
"docker-build: release" | ||
], | ||
"dockerRun": {}, | ||
"netCore": { | ||
"appProject": "${workspaceFolder}/GitHubActions.NetDemo.csproj" | ||
} | ||
} | ||
] | ||
} |
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,28 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base | ||
WORKDIR /app | ||
EXPOSE 5000 | ||
|
||
ENV ASPNETCORE_URLS=http://+:5000 | ||
|
||
# Creates a non-root user with an explicit UID and adds permission to access the /app folder | ||
# For more info, please refer to https://aka.ms/vscode-docker-dotnet-configure-containers | ||
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app | ||
USER appuser | ||
|
||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:3.1 AS build | ||
ARG configuration=Release | ||
WORKDIR /src | ||
COPY ["GitHubActions.NetDemo.csproj", "./"] | ||
RUN dotnet restore "GitHubActions.NetDemo.csproj" | ||
COPY . . | ||
WORKDIR "/src/." | ||
RUN dotnet build "GitHubActions.NetDemo.csproj" -c $configuration -o /app/build | ||
|
||
FROM build AS publish | ||
ARG configuration=Release | ||
RUN dotnet publish "GitHubActions.NetDemo.csproj" -c $configuration -o /app/publish /p:UseAppHost=false | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
ENTRYPOINT ["dotnet", "GitHubActions.NetDemo.dll"] |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.