diff --git a/docker/.gitignore b/.gitignore similarity index 100% rename from docker/.gitignore rename to .gitignore diff --git a/docker-compose.yml b/docker-compose.yml index 2410311..cbcffce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,53 @@ -version: "3.9" - services: - php: - build: - context: . - dockerfile: docker/php/Dockerfile - container_name: itschool-php84 - volumes: - - ./src:/var/www/html + nginx: + image: nginx:latest ports: - "8080:80" + volumes: + - ./src:/var/www/src + - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf + depends_on: + - php + restart: unless-stopped + + php: + image: php:8.3-fpm + volumes: + - ./src:/var/www/src + restart: unless-stopped + + python: + image: python:3.12-slim + container_name: alex-python + working_dir: /app + volumes: + - .:/app + command: python /app/www/script_python2.py + ports: + - "8088:8088" + restart: unless-stopped + dotnet: + image: mcr.microsoft.com/dotnet/sdk:8.0 + container_name: alex-dotnet + working_dir: /app + volumes: + - ./www/programDotNet:/app + command: dotnet run --urls http://0.0.0.0:8085 + ports: + - "8085:8085" + restart: unless-stopped + + node: + image: node:20-alpine + container_name: alex-node + working_dir: /app + volumes: + - .:/app + environment: + - PORT=8090 + command: node /app/www/node_script.js + ports: + - "8090:8090" + restart: unless-stopped + + diff --git a/docker/dotnet/Docker b/docker/dotnet/Docker new file mode 100644 index 0000000..2c6a359 --- /dev/null +++ b/docker/dotnet/Docker @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/dotnet/aspnet:8.0 +WORKDIR /app +COPY . . +EXPOSE 8088 +ENTRYPOINT ["dotnet", "SimpleDotnetServer.dll"] diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf new file mode 100644 index 0000000..06b8344 --- /dev/null +++ b/docker/nginx/default.conf @@ -0,0 +1,22 @@ +server { + listen 80; + server_name localhost; + + root /var/www/src; + index index.php index.html; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + include fastcgi_params; + fastcgi_pass php:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } + + location ~ /\.ht { + deny all; + } +} diff --git a/www/node_script.js b/www/node_script.js new file mode 100644 index 0000000..20c78b9 --- /dev/null +++ b/www/node_script.js @@ -0,0 +1,12 @@ +const http = require("http"); + +const PORT = process.env.PORT || 8090; + +const server = http.createServer((req, res) => { + res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" }); + res.end("Salut! Node.js rulează pe portul " + PORT + "\n"); +}); + +server.listen(PORT, "0.0.0.0", () => { + console.log(`Node server: http://0.0.0.0:${PORT}`); +}); diff --git a/www/programDotNet/ProgramDotNet.cs b/www/programDotNet/ProgramDotNet.cs new file mode 100644 index 0000000..31619fd --- /dev/null +++ b/www/programDotNet/ProgramDotNet.cs @@ -0,0 +1,10 @@ +var builder = WebApplication.CreateBuilder(args); + +// ascultă pe 0.0.0.0:8085 +builder.WebHost.UseUrls("http://0.0.0.0:8085"); + +var app = builder.Build(); + +app.MapGet("/", () => "Salut! .NET rulează pe 8085. fisier updatat"); + +app.Run(); diff --git a/www/programDotNet/bin/Debug/net8.0/programDotNet b/www/programDotNet/bin/Debug/net8.0/programDotNet new file mode 100755 index 0000000..3205ce5 Binary files /dev/null and b/www/programDotNet/bin/Debug/net8.0/programDotNet differ diff --git a/www/programDotNet/bin/Debug/net8.0/programDotNet.deps.json b/www/programDotNet/bin/Debug/net8.0/programDotNet.deps.json new file mode 100644 index 0000000..1bf9dc8 --- /dev/null +++ b/www/programDotNet/bin/Debug/net8.0/programDotNet.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "programDotNet/1.0.0": { + "runtime": { + "programDotNet.dll": {} + } + } + } + }, + "libraries": { + "programDotNet/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/www/programDotNet/bin/Debug/net8.0/programDotNet.dll b/www/programDotNet/bin/Debug/net8.0/programDotNet.dll new file mode 100644 index 0000000..50f03b4 Binary files /dev/null and b/www/programDotNet/bin/Debug/net8.0/programDotNet.dll differ diff --git a/www/programDotNet/bin/Debug/net8.0/programDotNet.pdb b/www/programDotNet/bin/Debug/net8.0/programDotNet.pdb new file mode 100644 index 0000000..b3ee545 Binary files /dev/null and b/www/programDotNet/bin/Debug/net8.0/programDotNet.pdb differ diff --git a/www/programDotNet/bin/Debug/net8.0/programDotNet.runtimeconfig.json b/www/programDotNet/bin/Debug/net8.0/programDotNet.runtimeconfig.json new file mode 100644 index 0000000..5e604c7 --- /dev/null +++ b/www/programDotNet/bin/Debug/net8.0/programDotNet.runtimeconfig.json @@ -0,0 +1,19 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "frameworks": [ + { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + { + "name": "Microsoft.AspNetCore.App", + "version": "8.0.0" + } + ], + "configProperties": { + "System.GC.Server": true, + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/www/programDotNet/bin/Debug/net8.0/programDotNet.staticwebassets.endpoints.json b/www/programDotNet/bin/Debug/net8.0/programDotNet.staticwebassets.endpoints.json new file mode 100644 index 0000000..5576e88 --- /dev/null +++ b/www/programDotNet/bin/Debug/net8.0/programDotNet.staticwebassets.endpoints.json @@ -0,0 +1 @@ +{"Version":1,"ManifestType":"Build","Endpoints":[]} \ No newline at end of file diff --git a/www/programDotNet/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/www/programDotNet/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..dca70aa --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/www/programDotNet/obj/Debug/net8.0/apphost b/www/programDotNet/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..3205ce5 Binary files /dev/null and b/www/programDotNet/obj/Debug/net8.0/apphost differ diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.AssemblyInfo.cs b/www/programDotNet/obj/Debug/net8.0/programDotNet.AssemblyInfo.cs new file mode 100644 index 0000000..c8d79a4 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("programDotNet")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("programDotNet")] +[assembly: System.Reflection.AssemblyTitleAttribute("programDotNet")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.AssemblyInfoInputs.cache b/www/programDotNet/obj/Debug/net8.0/programDotNet.AssemblyInfoInputs.cache new file mode 100644 index 0000000..95e86c7 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +ef4e0c11006f2dd239d8ab66d729a68f61d4fa32924b55c8329b555050161ab2 diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.GeneratedMSBuildEditorConfig.editorconfig b/www/programDotNet/obj/Debug/net8.0/programDotNet.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..dd00d6b --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,23 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetFrameworkIdentifier = .NETCoreApp +build_property.TargetFrameworkVersion = v8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = true +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = programDotNet +build_property.RootNamespace = programDotNet +build_property.ProjectDir = /app/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.RazorLangVersion = 8.0 +build_property.SupportLocalizedComponentNames = +build_property.GenerateRazorMetadataSourceChecksumAttributes = +build_property.MSBuildProjectDirectory = /app +build_property._RazorSourceGeneratorDebug = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.GlobalUsings.g.cs b/www/programDotNet/obj/Debug/net8.0/programDotNet.GlobalUsings.g.cs new file mode 100644 index 0000000..5e6145d --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.GlobalUsings.g.cs @@ -0,0 +1,17 @@ +// +global using Microsoft.AspNetCore.Builder; +global using Microsoft.AspNetCore.Hosting; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Routing; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Hosting; +global using Microsoft.Extensions.Logging; +global using System; +global using System.Collections.Generic; +global using System.IO; +global using System.Linq; +global using System.Net.Http; +global using System.Net.Http.Json; +global using System.Threading; +global using System.Threading.Tasks; diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.MvcApplicationPartsAssemblyInfo.cache b/www/programDotNet/obj/Debug/net8.0/programDotNet.MvcApplicationPartsAssemblyInfo.cache new file mode 100644 index 0000000..e69de29 diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.assets.cache b/www/programDotNet/obj/Debug/net8.0/programDotNet.assets.cache new file mode 100644 index 0000000..01ba0a4 Binary files /dev/null and b/www/programDotNet/obj/Debug/net8.0/programDotNet.assets.cache differ diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.csproj.CoreCompileInputs.cache b/www/programDotNet/obj/Debug/net8.0/programDotNet.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ca69b65 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +78e56dd823ebe82c5116b011dea1d4f07d11c07a6cbca67c3b275ceeafa27f13 diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.csproj.FileListAbsolute.txt b/www/programDotNet/obj/Debug/net8.0/programDotNet.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..f8e6ffb --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.csproj.FileListAbsolute.txt @@ -0,0 +1,26 @@ +/app/obj/Debug/net8.0/programDotNet.GeneratedMSBuildEditorConfig.editorconfig +/app/obj/Debug/net8.0/programDotNet.AssemblyInfoInputs.cache +/app/obj/Debug/net8.0/programDotNet.AssemblyInfo.cs +/app/obj/Debug/net8.0/programDotNet.csproj.CoreCompileInputs.cache +/app/obj/Debug/net8.0/programDotNet.MvcApplicationPartsAssemblyInfo.cache +/app/bin/Debug/net8.0/programDotNet +/app/bin/Debug/net8.0/programDotNet.deps.json +/app/bin/Debug/net8.0/programDotNet.runtimeconfig.json +/app/bin/Debug/net8.0/programDotNet.dll +/app/bin/Debug/net8.0/programDotNet.pdb +/app/obj/Debug/net8.0/staticwebassets.build.json +/app/obj/Debug/net8.0/staticwebassets.development.json +/app/obj/Debug/net8.0/scopedcss/bundle/programDotNet.styles.css +/app/obj/Debug/net8.0/programDotNet.dll +/app/obj/Debug/net8.0/refint/programDotNet.dll +/app/obj/Debug/net8.0/programDotNet.pdb +/app/obj/Debug/net8.0/programDotNet.genruntimeconfig.cache +/app/obj/Debug/net8.0/ref/programDotNet.dll +/app/bin/Debug/net8.0/programDotNet.staticwebassets.endpoints.json +/app/obj/Debug/net8.0/rpswa.dswa.cache.json +/app/obj/Debug/net8.0/rjimswa.dswa.cache.json +/app/obj/Debug/net8.0/rjsmrazor.dswa.cache.json +/app/obj/Debug/net8.0/rjsmcshtml.dswa.cache.json +/app/obj/Debug/net8.0/staticwebassets.build.json.cache +/app/obj/Debug/net8.0/staticwebassets.build.endpoints.json +/app/obj/Debug/net8.0/swae.build.ex.cache diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.dll b/www/programDotNet/obj/Debug/net8.0/programDotNet.dll new file mode 100644 index 0000000..50f03b4 Binary files /dev/null and b/www/programDotNet/obj/Debug/net8.0/programDotNet.dll differ diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.genruntimeconfig.cache b/www/programDotNet/obj/Debug/net8.0/programDotNet.genruntimeconfig.cache new file mode 100644 index 0000000..72f2ee7 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/programDotNet.genruntimeconfig.cache @@ -0,0 +1 @@ +6c6db989a285f699deea041ae91957c98d32357a05190823d5ccb6d286e83fec diff --git a/www/programDotNet/obj/Debug/net8.0/programDotNet.pdb b/www/programDotNet/obj/Debug/net8.0/programDotNet.pdb new file mode 100644 index 0000000..b3ee545 Binary files /dev/null and b/www/programDotNet/obj/Debug/net8.0/programDotNet.pdb differ diff --git a/www/programDotNet/obj/Debug/net8.0/ref/programDotNet.dll b/www/programDotNet/obj/Debug/net8.0/ref/programDotNet.dll new file mode 100644 index 0000000..43fb6c4 Binary files /dev/null and b/www/programDotNet/obj/Debug/net8.0/ref/programDotNet.dll differ diff --git a/www/programDotNet/obj/Debug/net8.0/refint/programDotNet.dll b/www/programDotNet/obj/Debug/net8.0/refint/programDotNet.dll new file mode 100644 index 0000000..43fb6c4 Binary files /dev/null and b/www/programDotNet/obj/Debug/net8.0/refint/programDotNet.dll differ diff --git a/www/programDotNet/obj/Debug/net8.0/rjsmcshtml.dswa.cache.json b/www/programDotNet/obj/Debug/net8.0/rjsmcshtml.dswa.cache.json new file mode 100644 index 0000000..e33a92d --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/rjsmcshtml.dswa.cache.json @@ -0,0 +1 @@ +{"GlobalPropertiesHash":"fLV7naKvKWbTYVUHjkIjTJtm/olHDr/EnsWwdgzzqYA=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["bzO0TEjhBVNhYEvqtsf/ty9AgBtGHyRIrjLs/G4sxxw="],"CachedAssets":{},"CachedCopyCandidates":{}} \ No newline at end of file diff --git a/www/programDotNet/obj/Debug/net8.0/rjsmrazor.dswa.cache.json b/www/programDotNet/obj/Debug/net8.0/rjsmrazor.dswa.cache.json new file mode 100644 index 0000000..3edb6e9 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/rjsmrazor.dswa.cache.json @@ -0,0 +1 @@ +{"GlobalPropertiesHash":"MMRCzYhPUzk/dvjkevA6gVPm5Xq+/bKRMXBsywen2EU=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["bzO0TEjhBVNhYEvqtsf/ty9AgBtGHyRIrjLs/G4sxxw="],"CachedAssets":{},"CachedCopyCandidates":{}} \ No newline at end of file diff --git a/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.endpoints.json b/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.endpoints.json new file mode 100644 index 0000000..5576e88 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.endpoints.json @@ -0,0 +1 @@ +{"Version":1,"ManifestType":"Build","Endpoints":[]} \ No newline at end of file diff --git a/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.json b/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.json new file mode 100644 index 0000000..c4a6c9e --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.json @@ -0,0 +1 @@ +{"Version":1,"Hash":"R9B4kODIeQ+F5JrbWKZU4XVNo0G1PgbmB01uJL2Dn04=","Source":"programDotNet","BasePath":"/","Mode":"Root","ManifestType":"Build","ReferencedProjectsConfiguration":[],"DiscoveryPatterns":[],"Assets":[],"Endpoints":[]} \ No newline at end of file diff --git a/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.json.cache b/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.json.cache new file mode 100644 index 0000000..5769c74 --- /dev/null +++ b/www/programDotNet/obj/Debug/net8.0/staticwebassets.build.json.cache @@ -0,0 +1 @@ +R9B4kODIeQ+F5JrbWKZU4XVNo0G1PgbmB01uJL2Dn04= \ No newline at end of file diff --git a/www/programDotNet/obj/Debug/net8.0/swae.build.ex.cache b/www/programDotNet/obj/Debug/net8.0/swae.build.ex.cache new file mode 100644 index 0000000..e69de29 diff --git a/www/programDotNet/obj/programDotNet.csproj.nuget.dgspec.json b/www/programDotNet/obj/programDotNet.csproj.nuget.dgspec.json new file mode 100644 index 0000000..5bc9be6 --- /dev/null +++ b/www/programDotNet/obj/programDotNet.csproj.nuget.dgspec.json @@ -0,0 +1,84 @@ +{ + "format": 1, + "restore": { + "/app/programDotNet.csproj": {} + }, + "projects": { + "/app/programDotNet.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/app/programDotNet.csproj", + "projectName": "programDotNet", + "projectPath": "/app/programDotNet.csproj", + "packagesPath": "/root/.nuget/packages/", + "outputPath": "/app/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/root/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "10.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[8.0.22, 8.0.22]" + }, + { + "name": "Microsoft.NETCore.App.Host.linux-arm64", + "version": "[8.0.22, 8.0.22]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[8.0.22, 8.0.22]" + } + ], + "frameworkReferences": { + "Microsoft.AspNetCore.App": { + "privateAssets": "none" + }, + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.101/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/www/programDotNet/obj/programDotNet.csproj.nuget.g.props b/www/programDotNet/obj/programDotNet.csproj.nuget.g.props new file mode 100644 index 0000000..9575c2c --- /dev/null +++ b/www/programDotNet/obj/programDotNet.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /root/.nuget/packages/ + /root/.nuget/packages/ + PackageReference + 7.0.0 + + + + + \ No newline at end of file diff --git a/www/programDotNet/obj/programDotNet.csproj.nuget.g.targets b/www/programDotNet/obj/programDotNet.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/www/programDotNet/obj/programDotNet.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/www/programDotNet/obj/project.assets.json b/www/programDotNet/obj/project.assets.json new file mode 100644 index 0000000..801cc54 --- /dev/null +++ b/www/programDotNet/obj/project.assets.json @@ -0,0 +1,89 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/root/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/app/programDotNet.csproj", + "projectName": "programDotNet", + "projectPath": "/app/programDotNet.csproj", + "packagesPath": "/root/.nuget/packages/", + "outputPath": "/app/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/root/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "10.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[8.0.22, 8.0.22]" + }, + { + "name": "Microsoft.NETCore.App.Host.linux-arm64", + "version": "[8.0.22, 8.0.22]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[8.0.22, 8.0.22]" + } + ], + "frameworkReferences": { + "Microsoft.AspNetCore.App": { + "privateAssets": "none" + }, + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.101/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/www/programDotNet/obj/project.nuget.cache b/www/programDotNet/obj/project.nuget.cache new file mode 100644 index 0000000..e6c6a09 --- /dev/null +++ b/www/programDotNet/obj/project.nuget.cache @@ -0,0 +1,12 @@ +{ + "version": 2, + "dgSpecHash": "83bfm2dKkvU=", + "success": true, + "projectFilePath": "/app/programDotNet.csproj", + "expectedPackageFiles": [ + "/root/.nuget/packages/microsoft.netcore.app.ref/8.0.22/microsoft.netcore.app.ref.8.0.22.nupkg.sha512", + "/root/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.22/microsoft.aspnetcore.app.ref.8.0.22.nupkg.sha512", + "/root/.nuget/packages/microsoft.netcore.app.host.linux-arm64/8.0.22/microsoft.netcore.app.host.linux-arm64.8.0.22.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/www/programDotNet/programDotNet.csproj b/www/programDotNet/programDotNet.csproj new file mode 100644 index 0000000..6b6e065 --- /dev/null +++ b/www/programDotNet/programDotNet.csproj @@ -0,0 +1,7 @@ + + + net8.0 + enable + enable + + diff --git a/script_php.php b/www/script_php.php similarity index 100% rename from script_php.php rename to www/script_php.php diff --git a/www/script_python2.py b/www/script_python2.py new file mode 100644 index 0000000..d0c865f --- /dev/null +++ b/www/script_python2.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 +from http.server import BaseHTTPRequestHandler, HTTPServer + +class Handler(BaseHTTPRequestHandler): + def do_GET(self): + self.send_response(200) + self.send_header("Content-Type", "text/plain; charset=utf-8") + self.end_headers() + self.wfile.write(b"Salut! Server Python 2 ruleaza pe portul 8088") + +def main(): + server = HTTPServer(("0.0.0.0", 8088), Handler) + print("Python server pornit pe http://0.0.0.0:8088") + server.serve_forever() + +if __name__ == "__main__": + main()