main #3
75
tasks/klementeva-ja/lab_2/README.MD
Normal file
75
tasks/klementeva-ja/lab_2/README.MD
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# Отчёт по лабораторной работе №2
|
||||||
|
|
||||||
|
Выполнил: студентка гр. ИСЭбд-41 Клементьева Жанна.
|
||||||
|
|
||||||
|
Вариант программы 1: Ищет в каталоге `/var/data` файл с наибольшим количеством строк и перекладывает его в `/var/result/data.txt`.
|
||||||
|
|
||||||
|
Вариант программы 2: Ищет наименьшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`.
|
||||||
|
|
||||||
|
## Создание приложений
|
||||||
|
|
||||||
|
Создадим 2 приложения.
|
||||||
|
Был выбран язык C# и технология .NET 6, потому что потому.
|
||||||
|
|
||||||
|
Для создания обычных консольных приложений воспользуемся командами:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dotnet new console -o worker-1
|
||||||
|
dotnet new console -o worker-2
|
||||||
|
```
|
||||||
|
|
||||||
|
Согласно варианту программа 1 ищет в каталоге `/var/data` файл с наибольшим количеством строк и перекладывает его в `/var/result/data.txt`.
|
||||||
|
|
||||||
|
[Исходный текст программы worker-1](worker-1/Program.cs)
|
||||||
|
|
||||||
|
Согласно варианту программа 2 ищет наименьшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`.
|
||||||
|
|
||||||
|
[Исходный текст программы worker-2](worker-2/Program.cs)
|
||||||
|
|
||||||
|
Дополнительно создан файл [.gitignore](.gitignore) для того, чтобы не закоммитить в git ничего лишнего.
|
||||||
|
|
||||||
|
## Настройка окружения
|
||||||
|
|
||||||
|
Для связи двух приложений воспользуемся следующей схемой:
|
||||||
|
|
||||||
|
1. Каталог `./data` должен быть примонтирован в каталог `/var/data` для программы 1.
|
||||||
|
Оттуда будут браться исходные данные.
|
||||||
|
2. Каталог `./result-1` должен быть примонтирован в каталог `/var/result` для программы 2.
|
||||||
|
Туда будут складываться промежуточные данные.
|
||||||
|
3. Каталог `./result-1` также должен быть примонтирован в каталог `/var/data` для программы 2.
|
||||||
|
Оттуда будут браться промежуточные результаты.
|
||||||
|
4. Каталог `./result` должен быть примонтирован в каталог `/var/result` для программы 2.
|
||||||
|
Туда будут складывать результаты финальной обработки.
|
||||||
|
|
||||||
|
Для каждой программы были созданы файлы Dockerfile ([программа 1](worker-1/Dockerfile.yml), [программа 2](worker-1/Dockerfile.yml)) с подробным описанием процесса сборки.
|
||||||
|
|
||||||
|
Был создан файл [docker-compose.yml](docker-compose.yml), в котором указан манифест для запуска распределённого приложения.
|
||||||
|
|
||||||
|
Дополнительно был создан файл [.dockerignore](.dockerignore) и дополнен [.gitignore](.gitignore), чтобы исключить для сборки и коммита всё лишнее.
|
||||||
|
|
||||||
|
## Сборка и запуск
|
||||||
|
|
||||||
|
В каталог `./data` помещены 2 файла.
|
||||||
|
В первом файле были числа 1 2 3, во втором 1 1 7 5 3 1.
|
||||||
|
|
||||||
|
Для запуска приложения необходимо ввести команду `docker compose up ---build`.
|
||||||
|
|
||||||
|
Результат запуска после сборки:
|
||||||
|
|
||||||
|
```
|
||||||
|
[+] Running 2/0
|
||||||
|
- Container lab_2-worker-1-1 Created
|
||||||
|
- Container lab_2-worker-2-1 Created
|
||||||
|
Attaching to lab_2-worker-1-1, lab_2-worker-2-1
|
||||||
|
lab_2-worker-1-1 | Начало обработки файла /var/data/another data.txt
|
||||||
|
lab_2-worker-1-1 | Начало обработки файла /var/data/data.txt
|
||||||
|
lab_2-worker-1-1 exited with code 0
|
||||||
|
lab_2-worker-2-1 | Чисел для обработки: 8
|
||||||
|
lab_2-worker-2-1 exited with code 0
|
||||||
|
```
|
||||||
|
|
||||||
|
В результате в каталоге `./result` создался файл `result.txt` с содержимым `3`, что соответствует входным данным.
|
||||||
|
|
||||||
|
Изменение значений в файлах из каталога `./data` также изменяет содержимое в файлах из каталогов `./result-1` и `./result`.
|
||||||
|
|
||||||
|
![resultat](resultat.png)
|
16
tasks/klementeva-ja/lab_2/docker-compose.yml
Normal file
16
tasks/klementeva-ja/lab_2/docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
version: "3.1"
|
||||||
|
services:
|
||||||
|
worker-1:
|
||||||
|
build: ./worker-1
|
||||||
|
volumes:
|
||||||
|
#монтируем локальную папку в запущенный образ контейнера
|
||||||
|
- ./data:/var/data
|
||||||
|
- ./result-1:/var/result
|
||||||
|
worker-2:
|
||||||
|
build: ./worker-2
|
||||||
|
volumes:
|
||||||
|
- ./result-1:/var/data
|
||||||
|
- ./result:/var/result
|
||||||
|
#добавляется зависимость, так как по условию второе приложение зависит от первого
|
||||||
|
depends_on:
|
||||||
|
- worker-1
|
72
tasks/klementeva-ja/lab_2/obj/project.assets.json
Normal file
72
tasks/klementeva-ja/lab_2/obj/project.assets.json
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"targets": {
|
||||||
|
"net6.0": {}
|
||||||
|
},
|
||||||
|
"libraries": {},
|
||||||
|
"projectFileDependencyGroups": {
|
||||||
|
"net6.0": []
|
||||||
|
},
|
||||||
|
"packageFolders": {
|
||||||
|
"C:\\Users\\Angelina\\.nuget\\packages\\": {},
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||||
|
},
|
||||||
|
"project": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
|
||||||
|
"projectName": "rvip_j2",
|
||||||
|
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
8
tasks/klementeva-ja/lab_2/obj/project.nuget.cache
Normal file
8
tasks/klementeva-ja/lab_2/obj/project.nuget.cache
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"dgSpecHash": "hiebTXlxthjXc1QJSKY3S0IQRu5qUGAH0gSd/Nco/5iDafnuAWzESuqJHEv4balZJHuPkpIs5zlfPwaMVwwrWw==",
|
||||||
|
"success": true,
|
||||||
|
"projectFilePath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
|
||||||
|
"expectedPackageFiles": [],
|
||||||
|
"logs": []
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"format": 1,
|
||||||
|
"restore": {
|
||||||
|
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj": {}
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
|
||||||
|
"projectName": "rvip_j2",
|
||||||
|
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
16
tasks/klementeva-ja/lab_2/obj/rvip_j2.csproj.nuget.g.props
Normal file
16
tasks/klementeva-ja/lab_2/obj/rvip_j2.csproj.nuget.g.props
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Angelina\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<SourceRoot Include="C:\Users\Angelina\.nuget\packages\" />
|
||||||
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
BIN
tasks/klementeva-ja/lab_2/resultat.png
Normal file
BIN
tasks/klementeva-ja/lab_2/resultat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
31
tasks/klementeva-ja/lab_2/rvip_j2.sln
Normal file
31
tasks/klementeva-ja/lab_2/rvip_j2.sln
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.5.002.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "worker-1", "worker-1\worker-1.csproj", "{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}"
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "worker-2", "worker-2\worker-2.csproj", "{B18DF6BB-6783-4F53-A5EE-140D07BF447C}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {D0BD68D2-E574-457E-B29C-4A1167DE76D6}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
3
tasks/klementeva-ja/lab_2/var/data/anotherData.txt
Normal file
3
tasks/klementeva-ja/lab_2/var/data/anotherData.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
6
tasks/klementeva-ja/lab_2/var/data/data.txt
Normal file
6
tasks/klementeva-ja/lab_2/var/data/data.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
1
|
||||||
|
1
|
||||||
|
7
|
||||||
|
5
|
||||||
|
3
|
||||||
|
1
|
5
tasks/klementeva-ja/lab_2/var/result/data.txt
Normal file
5
tasks/klementeva-ja/lab_2/var/result/data.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
4
|
||||||
|
5
|
1
tasks/klementeva-ja/lab_2/var/result/result.txt
Normal file
1
tasks/klementeva-ja/lab_2/var/result/result.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
3147483647
|
15
tasks/klementeva-ja/lab_2/worker-1/Dockerfile
Normal file
15
tasks/klementeva-ja/lab_2/worker-1/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#указываем образ из которого будем брать все слои
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
|
||||||
|
#папка, с которой мы будем работать
|
||||||
|
WORKDIR /App
|
||||||
|
#копируем файл в рабочую дерикторию
|
||||||
|
COPY . ./
|
||||||
|
#запускаем команду
|
||||||
|
RUN dotnet restore
|
||||||
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||||
|
WORKDIR /App
|
||||||
|
#копирует не из файловой системы хоста, а из того, что собрали на прерыдущей стадии
|
||||||
|
COPY --from=build-env /App/out .
|
||||||
|
ENTRYPOINT ["dotnet", "worker-1.dll"]
|
13
tasks/klementeva-ja/lab_2/worker-1/Program.cs
Normal file
13
tasks/klementeva-ja/lab_2/worker-1/Program.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
var files = Directory.GetFiles("/var/data");
|
||||||
|
int maxCount = 0;
|
||||||
|
string lagrestFile = "";
|
||||||
|
foreach(var file in files){
|
||||||
|
var lines = File.ReadAllLines(file);
|
||||||
|
if(lines.Count() > maxCount){
|
||||||
|
maxCount = lines.Count();
|
||||||
|
lagrestFile = file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(File.Exists("/var/result/data.txt"))
|
||||||
|
File.Delete("/var/result/data.txt");
|
||||||
|
File.Move(lagrestFile, "/var/result/data.txt");
|
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v6.0": {
|
||||||
|
"worker-1/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"worker-1.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"worker-1/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
tasks/klementeva-ja/lab_2/worker-1/bin/Debug/net6.0/worker-1.dll
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-1/bin/Debug/net6.0/worker-1.dll
Normal file
Binary file not shown.
BIN
tasks/klementeva-ja/lab_2/worker-1/bin/Debug/net6.0/worker-1.exe
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-1/bin/Debug/net6.0/worker-1.exe
Normal file
Binary file not shown.
BIN
tasks/klementeva-ja/lab_2/worker-1/bin/Debug/net6.0/worker-1.pdb
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-1/bin/Debug/net6.0/worker-1.pdb
Normal file
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net6.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "6.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
|
BIN
tasks/klementeva-ja/lab_2/worker-1/obj/Debug/net6.0/apphost.exe
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-1/obj/Debug/net6.0/apphost.exe
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,22 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("worker-1")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("worker-1")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("worker-1")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Создано классом WriteCodeFragment MSBuild.
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
9b423a53481895e7341de7e28fe8c945c03908af
|
@ -0,0 +1,10 @@
|
|||||||
|
is_global = true
|
||||||
|
build_property.TargetFramework = net6.0
|
||||||
|
build_property.TargetPlatformMinVersion =
|
||||||
|
build_property.UsingMicrosoftNETSdkWeb =
|
||||||
|
build_property.ProjectTypeGuids =
|
||||||
|
build_property.InvariantGlobalization =
|
||||||
|
build_property.PlatformNeutralAssembly =
|
||||||
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
|
build_property.RootNamespace = worker_1
|
||||||
|
build_property.ProjectDir = C:\Users\Angelina\source\repos\rvip_j2\worker-1\
|
@ -0,0 +1,8 @@
|
|||||||
|
// <auto-generated/>
|
||||||
|
global using global::System;
|
||||||
|
global using global::System.Collections.Generic;
|
||||||
|
global using global::System.IO;
|
||||||
|
global using global::System.Linq;
|
||||||
|
global using global::System.Net.Http;
|
||||||
|
global using global::System.Threading;
|
||||||
|
global using global::System.Threading.Tasks;
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
2ce983111ab3dfd18d5a764821ca2badebb59785
|
@ -0,0 +1,15 @@
|
|||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.exe
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.deps.json
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.runtimeconfig.json
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.dll
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.pdb
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.AssemblyInfo.cs
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.dll
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\refint\worker-1.dll
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.pdb
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.genruntimeconfig.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\ref\worker-1.dll
|
BIN
tasks/klementeva-ja/lab_2/worker-1/obj/Debug/net6.0/worker-1.dll
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-1/obj/Debug/net6.0/worker-1.dll
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
09fd2cb6c9c353226ef9a0fc0e4386552dffb164
|
BIN
tasks/klementeva-ja/lab_2/worker-1/obj/Debug/net6.0/worker-1.pdb
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-1/obj/Debug/net6.0/worker-1.pdb
Normal file
Binary file not shown.
72
tasks/klementeva-ja/lab_2/worker-1/obj/project.assets.json
Normal file
72
tasks/klementeva-ja/lab_2/worker-1/obj/project.assets.json
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"targets": {
|
||||||
|
"net6.0": {}
|
||||||
|
},
|
||||||
|
"libraries": {},
|
||||||
|
"projectFileDependencyGroups": {
|
||||||
|
"net6.0": []
|
||||||
|
},
|
||||||
|
"packageFolders": {
|
||||||
|
"C:\\Users\\Angelina\\.nuget\\packages\\": {},
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||||
|
},
|
||||||
|
"project": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
|
||||||
|
"projectName": "worker-1",
|
||||||
|
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"dgSpecHash": "C2anyFjtRK0Epm22JYF/qjf/rPQav2nfpkocjB7jwVD+lUPaShv6REMOWux8v/WiQkOsZJDmvzWFBToAD24j9g==",
|
||||||
|
"success": true,
|
||||||
|
"projectFilePath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
|
||||||
|
"expectedPackageFiles": [],
|
||||||
|
"logs": []
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"format": 1,
|
||||||
|
"restore": {
|
||||||
|
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj": {}
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
|
||||||
|
"projectName": "worker-1",
|
||||||
|
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Angelina\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<SourceRoot Include="C:\Users\Angelina\.nuget\packages\" />
|
||||||
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
11
tasks/klementeva-ja/lab_2/worker-1/worker-1.csproj
Normal file
11
tasks/klementeva-ja/lab_2/worker-1/worker-1.csproj
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<RootNamespace>worker_1</RootNamespace>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
15
tasks/klementeva-ja/lab_2/worker-2/Dockerfile
Normal file
15
tasks/klementeva-ja/lab_2/worker-2/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#указываем образ из которого будем брать все слои
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
|
||||||
|
#папка, с которой мы будем работать
|
||||||
|
WORKDIR /App
|
||||||
|
#копируем файл в рабочую дерикторию
|
||||||
|
COPY . ./
|
||||||
|
#запускаем команду
|
||||||
|
RUN dotnet restore
|
||||||
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||||
|
WORKDIR /App
|
||||||
|
#копирует не из файловой системы хоста, а из того, что собрали на прерыдущей стадии
|
||||||
|
COPY --from=build-env /App/out .
|
||||||
|
ENTRYPOINT ["dotnet", "worker-2.dll"]
|
23
tasks/klementeva-ja/lab_2/worker-2/Program.cs
Normal file
23
tasks/klementeva-ja/lab_2/worker-2/Program.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using System.Text;
|
||||||
|
|
||||||
|
int[] numbers = File.ReadAllLines("/var/data/data.txt").Select(x=> int.Parse(x)).ToArray();
|
||||||
|
int minNumber = int.MaxValue;
|
||||||
|
int minNumberCount = 0;
|
||||||
|
foreach(var number in numbers){
|
||||||
|
if(number > minNumber){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if(number == minNumber){
|
||||||
|
minNumberCount++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if(number < minNumber){
|
||||||
|
minNumber = number;
|
||||||
|
minNumberCount = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
using(FileStream fstream = new FileStream("/var/result/result.txt", FileMode.OpenOrCreate)){
|
||||||
|
byte[] buffer = Encoding.Default.GetBytes(minNumberCount.ToString());
|
||||||
|
await fstream.WriteAsync(buffer, 0, buffer.Length);
|
||||||
|
}
|
||||||
|
Console.WriteLine(minNumberCount);
|
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v6.0": {
|
||||||
|
"worker-2/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"worker-2.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"worker-2/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
tasks/klementeva-ja/lab_2/worker-2/bin/Debug/net6.0/worker-2.dll
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-2/bin/Debug/net6.0/worker-2.dll
Normal file
Binary file not shown.
BIN
tasks/klementeva-ja/lab_2/worker-2/bin/Debug/net6.0/worker-2.exe
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-2/bin/Debug/net6.0/worker-2.exe
Normal file
Binary file not shown.
BIN
tasks/klementeva-ja/lab_2/worker-2/bin/Debug/net6.0/worker-2.pdb
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-2/bin/Debug/net6.0/worker-2.pdb
Normal file
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net6.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "6.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
|
BIN
tasks/klementeva-ja/lab_2/worker-2/obj/Debug/net6.0/apphost.exe
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-2/obj/Debug/net6.0/apphost.exe
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,22 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("worker-2")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("worker-2")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("worker-2")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Создано классом WriteCodeFragment MSBuild.
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
643bd591d6cbf6f32b3a54c41a97b5a36f4e7d08
|
@ -0,0 +1,10 @@
|
|||||||
|
is_global = true
|
||||||
|
build_property.TargetFramework = net6.0
|
||||||
|
build_property.TargetPlatformMinVersion =
|
||||||
|
build_property.UsingMicrosoftNETSdkWeb =
|
||||||
|
build_property.ProjectTypeGuids =
|
||||||
|
build_property.InvariantGlobalization =
|
||||||
|
build_property.PlatformNeutralAssembly =
|
||||||
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
|
build_property.RootNamespace = worker_2
|
||||||
|
build_property.ProjectDir = C:\Users\Angelina\source\repos\rvip_j2\worker-2\
|
@ -0,0 +1,8 @@
|
|||||||
|
// <auto-generated/>
|
||||||
|
global using global::System;
|
||||||
|
global using global::System.Collections.Generic;
|
||||||
|
global using global::System.IO;
|
||||||
|
global using global::System.Linq;
|
||||||
|
global using global::System.Net.Http;
|
||||||
|
global using global::System.Threading;
|
||||||
|
global using global::System.Threading.Tasks;
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
54c8c991314c63255ce51a9987c7a47af1851b61
|
@ -0,0 +1,15 @@
|
|||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.exe
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.deps.json
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.runtimeconfig.json
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.dll
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.pdb
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.AssemblyInfo.cs
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.dll
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\refint\worker-2.dll
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.pdb
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.genruntimeconfig.cache
|
||||||
|
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\ref\worker-2.dll
|
BIN
tasks/klementeva-ja/lab_2/worker-2/obj/Debug/net6.0/worker-2.dll
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-2/obj/Debug/net6.0/worker-2.dll
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
caad38d25e12a3a0db3d3cf805a9a40b1b91fcfb
|
BIN
tasks/klementeva-ja/lab_2/worker-2/obj/Debug/net6.0/worker-2.pdb
Normal file
BIN
tasks/klementeva-ja/lab_2/worker-2/obj/Debug/net6.0/worker-2.pdb
Normal file
Binary file not shown.
72
tasks/klementeva-ja/lab_2/worker-2/obj/project.assets.json
Normal file
72
tasks/klementeva-ja/lab_2/worker-2/obj/project.assets.json
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"targets": {
|
||||||
|
"net6.0": {}
|
||||||
|
},
|
||||||
|
"libraries": {},
|
||||||
|
"projectFileDependencyGroups": {
|
||||||
|
"net6.0": []
|
||||||
|
},
|
||||||
|
"packageFolders": {
|
||||||
|
"C:\\Users\\Angelina\\.nuget\\packages\\": {},
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||||
|
},
|
||||||
|
"project": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
|
||||||
|
"projectName": "worker-2",
|
||||||
|
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"dgSpecHash": "wYIsdvPg4RwdU+jlKSXlZS7arFd51dWDos+biLAT6ep3sLL46XF1K/YmWYLWFaVsuqdW2jYpoSBn/Bir3GgdAw==",
|
||||||
|
"success": true,
|
||||||
|
"projectFilePath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
|
||||||
|
"expectedPackageFiles": [],
|
||||||
|
"logs": []
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"format": 1,
|
||||||
|
"restore": {
|
||||||
|
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj": {}
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
|
||||||
|
"projectName": "worker-2",
|
||||||
|
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Angelina\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<SourceRoot Include="C:\Users\Angelina\.nuget\packages\" />
|
||||||
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
11
tasks/klementeva-ja/lab_2/worker-2/worker-2.csproj
Normal file
11
tasks/klementeva-ja/lab_2/worker-2/worker-2.csproj
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<RootNamespace>worker_2</RootNamespace>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user