Compare commits

...

4 Commits

@ -0,0 +1,30 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
!**/.gitignore
!.git/HEAD
!.git/config
!.git/packed-refs
!.git/refs/heads/**

@ -0,0 +1,24 @@
#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.
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["VeraxShield/VeraxShield.csproj", "VeraxShield/"]
RUN dotnet restore "./VeraxShield/VeraxShield.csproj"
COPY . .
WORKDIR "/src/VeraxShield"
RUN dotnet build "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "VeraxShield.dll"]

@ -0,0 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>db90e7c7-2fe7-4678-b9a3-95a1758ccd99</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\data\fakeUtilisateurs.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
<PackageReference Include="Blazored.LocalStorage" Version="4.4.0" />
<PackageReference Include="Blazorise.Bootstrap" Version="1.4.1" />
<PackageReference Include="Blazorise.Components" Version="1.4.0" />
<PackageReference Include="Blazorise.DataGrid" Version="1.4.1" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.4.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
</ItemGroup>
</Project>

@ -0,0 +1,24 @@
#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.
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["VeraxShield/VeraxShield.csproj", "VeraxShield/"]
RUN dotnet restore "./VeraxShield/VeraxShield.csproj"
COPY . .
WORKDIR "/src/VeraxShield"
RUN dotnet build "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "VeraxShield.dll"]

@ -34,6 +34,16 @@
"ASPNETCORE_URLS": "https://localhost:7112;http://localhost:5272"
},
"distributionName": ""
},
"Container (Dockerfile)": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"environmentVariables": {
"ASPNETCORE_URLS": "https://+:443;http://+:80"
},
"publishAllPorts": true,
"useSSL": true
}
},
"iisSettings": {

@ -4,6 +4,8 @@
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>db90e7c7-2fe7-4678-b9a3-95a1758ccd99</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
@ -17,6 +19,7 @@
<PackageReference Include="Blazorise.Components" Version="1.4.0" />
<PackageReference Include="Blazorise.DataGrid" Version="1.4.1" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.4.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
</ItemGroup>
</Project>

@ -36,7 +36,7 @@ namespace VeraxShield.composants.authentification
try
{
await DonneurEtat.Connexion(this.Requete);
NavigationManager.NavigateTo("/");
NavigationManager.NavigateTo("/utilisateurs/liste");
} catch (Exception ex)
{

@ -23,7 +23,7 @@ namespace VeraxShield.pages
private void RetourVerax()
{
NavigationManager.NavigateTo("https://www.verax.com");
NavigationManager.NavigateTo("http://181.214.189.133:9090/");
}
}
}

@ -1,34 +0,0 @@
# Première étape : Créer l'image de base
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
# Deuxième étape : Construire l'application
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
# Copier les fichiers nécessaires pour la restauration des dépendances
COPY ["dockerfile", "."]
COPY ["VeraxShield/VeraxShield/VeraxShield.csproj", "VeraxShield/"]
RUN dotnet restore "VeraxShield/VeraxShield.csproj"
# Copier le reste des fichiers
COPY . .
WORKDIR "/src/VeraxShield"
RUN dotnet build "VeraxShield.csproj" -c Release -o /app/build
# Troisième étape : Publier l'application
FROM build AS publish
RUN dotnet publish "VeraxShield.csproj" -c Release -o /app/publish
# Quatrième étape : Créer l'image finale
FROM base AS final
WORKDIR /app
# Copier les fichiers publiés dans l'image finale
COPY --from=publish /app/publish .
# Définir le point d'entrée de l'application
ENTRYPOINT ["dotnet", "VeraxShield.dll"]

@ -0,0 +1,18 @@
# Doit être unique dans l'instance SonarQube
sonar.projectKey=tony
# Le nom et la version affichés dans l'interface SonarQube
sonar.projectName=projetSonarVeraxShield
sonar.projectVersion=1.0
# Le chemin relatif aux fichiers que vous vous souhaitez analyser dans votre code
sonar.sources=VeraxShield
# Cas d'un projet utilisant composer.
# On ignore l'analyse du code présent dans les dépendances.
# sonar.exclusions=vendor/**
# Encodage du code source.
sonar.sourceEncoding=UTF-8
Loading…
Cancel
Save