From bf711b2c490bcd0d5783d1c14fddb350eab792be Mon Sep 17 00:00:00 2001 From: Anna Sentimental Date: Tue, 10 Oct 2023 16:40:13 +0400 Subject: [PATCH 1/5] =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=B0=202=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/zinoveva-ad/lab_2/.gitignore | 454 ++++++++++++++++++ tasks/zinoveva-ad/lab_2/README.md | 86 ++++ tasks/zinoveva-ad/lab_2/Screenshot_1.jpg | Bin 0 -> 8597 bytes tasks/zinoveva-ad/lab_2/Screenshot_2.jpg | Bin 0 -> 5405 bytes tasks/zinoveva-ad/lab_2/Screenshot_3.jpg | Bin 0 -> 6527 bytes tasks/zinoveva-ad/lab_2/Screenshot_4.jpg | Bin 0 -> 5728 bytes tasks/zinoveva-ad/lab_2/data/123.txt | 0 tasks/zinoveva-ad/lab_2/data/1234.txt | 0 tasks/zinoveva-ad/lab_2/data/data.txt | 12 + tasks/zinoveva-ad/lab_2/docker-compose.yml | 18 + tasks/zinoveva-ad/lab_2/lab_2.sln | 48 ++ .../lab_2/photo_2023-10-10_16-25-51.jpg | Bin 0 -> 17457 bytes tasks/zinoveva-ad/lab_2/result-1/data.txt | 3 + tasks/zinoveva-ad/lab_2/result/result.txt | 1 + tasks/zinoveva-ad/lab_2/worker-1/Dockerfile | 18 + tasks/zinoveva-ad/lab_2/worker-1/Program.cs | 27 ++ .../lab_2/worker-1/worker-1.csproj | 9 + tasks/zinoveva-ad/lab_2/worker-2/Dockerfile | 18 + tasks/zinoveva-ad/lab_2/worker-2/Program.cs | 58 +++ .../lab_2/worker-2/worker-2.csproj | 9 + 20 files changed, 761 insertions(+) create mode 100644 tasks/zinoveva-ad/lab_2/.gitignore create mode 100644 tasks/zinoveva-ad/lab_2/README.md create mode 100644 tasks/zinoveva-ad/lab_2/Screenshot_1.jpg create mode 100644 tasks/zinoveva-ad/lab_2/Screenshot_2.jpg create mode 100644 tasks/zinoveva-ad/lab_2/Screenshot_3.jpg create mode 100644 tasks/zinoveva-ad/lab_2/Screenshot_4.jpg create mode 100644 tasks/zinoveva-ad/lab_2/data/123.txt create mode 100644 tasks/zinoveva-ad/lab_2/data/1234.txt create mode 100644 tasks/zinoveva-ad/lab_2/data/data.txt create mode 100644 tasks/zinoveva-ad/lab_2/docker-compose.yml create mode 100644 tasks/zinoveva-ad/lab_2/lab_2.sln create mode 100644 tasks/zinoveva-ad/lab_2/photo_2023-10-10_16-25-51.jpg create mode 100644 tasks/zinoveva-ad/lab_2/result-1/data.txt create mode 100644 tasks/zinoveva-ad/lab_2/result/result.txt create mode 100644 tasks/zinoveva-ad/lab_2/worker-1/Dockerfile create mode 100644 tasks/zinoveva-ad/lab_2/worker-1/Program.cs create mode 100644 tasks/zinoveva-ad/lab_2/worker-1/worker-1.csproj create mode 100644 tasks/zinoveva-ad/lab_2/worker-2/Dockerfile create mode 100644 tasks/zinoveva-ad/lab_2/worker-2/Program.cs create mode 100644 tasks/zinoveva-ad/lab_2/worker-2/worker-2.csproj diff --git a/tasks/zinoveva-ad/lab_2/.gitignore b/tasks/zinoveva-ad/lab_2/.gitignore new file mode 100644 index 0000000..8afdcb6 --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/.gitignore @@ -0,0 +1,454 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# JetBrains Rider +.idea/ +*.sln.iml + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json diff --git a/tasks/zinoveva-ad/lab_2/README.md b/tasks/zinoveva-ad/lab_2/README.md new file mode 100644 index 0000000..374edac --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/README.md @@ -0,0 +1,86 @@ +# Отчёт по лабораторной работе №2 + +Выполнил: студентка гр. ИСЭбд-41, Зиновьева Анна. + +Вариант программы 1: Ищет в каталоге `/var/data` файл с самым коротким названием и перекладывает его в `/var/result/data.txt`. + +Вариант программы 2: Ищет наименьшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`. + +## Создание приложений + +Создадим 2 приложения. +Был выбран язык C# и технология .NET 7. + +Для создания обычных консольных приложений воспользуемся командами: + +```sh +dotnet new console -o worker-1 +dotnet new console -o worker-2 +``` + +Согласно варианту, программа 1 должна брать все файлы из папки `/var/data`, считывать длину их названия, найти минимальное и переложить его в папку `/var/result`. + +[Исходный текст программы worker-1](worker-1/Program.cs) + +Согласно варианту программа 2 должна брать строки из папки `/var/data/` с скопированным файлом, пытаться привести их к числам, затем найти минимальное из них. +Далее найти количество вхождений этого числа и результат записать в файл `/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), [программа 2](worker-1/Dockerfile)) с подробным описанием процесса сборки. + +Был создан файл [docker-compose.yml](docker-compose.yml), в котором указан манифест для запуска распределённого приложения. + +Дополнительно был создан файл [.dockerignore](.dockerignore) и дополнен [.gitignore](.gitignore), чтобы исключить для сборки и коммита всё лишнее. + +## Сборка и запуск + +1. В каталог `./data` помещены 3 файла с различной длиной названия и содержимым. + +![](photo_2023-10-10_16-25-51.jpg) + +На выходе программа должна записать 7 8 8. + +![](Screenshot_2.jpg) + +2. Теперь, обрабатывая этот файл: + +![](Screenshot_3.jpg) + +На выходе программа должна записать число 2 в `./result` так как в файле c названием data.txt максимальное число = 8, которое встречается 2 раза. + +![](Screenshot_4.jpg) + +Для запуска приложения необходимо ввести команду `docker compose up --build`. +Результат запуска после сборки: + +``` +[+] Running 2/0 + ✔ Container lab_2-worker-1-1 Created 0.0s + ✔ Container lab_2-worker-2-1 Created 0.0s +Attaching to lab_2-worker-1-1, lab_2-worker-2-1 +lab_2-worker-1-1 | Файл успешно создан: ../var/result/data.txt +lab_2-worker-2-1 | The maximum number is: 8 +lab_2-worker-2-1 | The count of maximum numbers is: 2 +lab_2-worker-1-1 exited with code 0 +lab_2-worker-2-1 exited with code 0 +``` + +В результате в каталоге `./result` создался файл `result.txt` с содержимым `7 8 8`, что соответствует входным данным. + +Изменение значений в файлах из каталога `./data` также изменяет содержимое в файлах из каталогов `./result-1` и `./result`. \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/Screenshot_1.jpg b/tasks/zinoveva-ad/lab_2/Screenshot_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2264de61ee01f0ede641e2666acb7f1d5c7edafb GIT binary patch literal 8597 zcmdscXIN8Pw{9Tx08&FQN^epF2ue|DA|Qx>AcT(8fJl=PiWKQZU<(4$K{^t8??psv zAT$$fR6`FK;KXz9J;(h$-+rEZzO&DtGqc8z^~^Qr8t*9Y7<1)f{^ApW?vAF8CV+^D z2w+Y40WKB+w*Ww5;$IhGkPt3X3Q|%M5>hI1axw~PDr#yF6$nH_%Rom%OHT^|(Shmc z8JU=wnW-28>N-7ZH0R$a@mt=k%! zTG~2y?i)WaF*SQ=ZfEb{==9jx#rvs`ub+Rwvxw)BQPD9kVpG#zre|dS@hYpJu&B7C zw5HrJpmUn2?>yd{1+}FVn2ca=}Aa0OOr9E8e(${LTg7dEC7V zKwc8w3*MWA(?(o6!Ce4`Sny)<9YRNb(+3Hrn87rsD(6*HMw*rbKN zz;&+=)45V=ioY)t{?mpXTHSCeIaT&`#z!}DtBTLcB}-~sTV^X~AK1jVigpjzFFz@^ z((VNWdU{Omz$E((C3_XYUYLvkzhRzkc&{}wY^JqLCz7}`RyaB~lvs& zQ4w)IIyMJKW0W`j4`56#JwCLK$EdPK$&0rUfa?`i#3w zm^HOFjaL=FXOF)rHa7Uh&P=c6vLS^NOm>>}D!{yAwe;{TV7)W6a@(T|d3e0#bpgPp zxbW=nUH}p$afTNFN^t%KK$QoFxd224`XzL7;tXyETbS;u!*Y7gG%nd@Znx9C=2kc_dPg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<0z0Xum~+34?y{#$pCUlI3w`2xa3(Yr@v{jX67Zt!YMD+;(rp97up-&p(loIF(nc zw5iesaqq&SuB!?n%A8Y%Y$!t?ohT&hLGoYuX&l8EqO=u=hO#OMjdrz6bXzBS()Zt6 zNj^1P3VK`;J(J7QjGZeIXv-X*@!?W1Oc0}TJyPrsp(BXrixKXQd@ zJ3G&^wykG^ZWXvFZG~LPHq8a^N~8}gT0mY)7rHZMI*u~W6L~f5#A201bXT4iuB=8F z;ipK8(#{bkDxtfQQ8qYNtmgi$kB2q1o5!uEiz~SBQ)IuqDJDX)?5J9*cvW}?rok6ZxqvzDeq2>&%WtsgaZE#x|-Fbs5Uvo1Ff zy>>sUHn=w%vK;K~{l#s+*jaw(gN)9g*AF#9_w(Q!c|NhJMfljeaQ2vZfEl_C-#Tvy bt~tw_3l;xgJF5XOEr=Bc{0|85V&UHa$i&p~ literal 0 HcmV?d00001 diff --git a/tasks/zinoveva-ad/lab_2/Screenshot_2.jpg b/tasks/zinoveva-ad/lab_2/Screenshot_2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0c4e55e11ddf9297cc69211b6efce403993cbb82 GIT binary patch literal 5405 zcmds)XIK+$m&XS}Z_;~Fx*{l5suZarMx+-(=`A27G(i+aBoqY%9zc382}B5y(3C15 zBE3XP5D@7gL3UoWM*XM{BIlS1HeWHgi(M&6runn8wH4s zg47L&000FwS?wRe|1b(lvPK$OI(i01asi4JprinSD5*eyRFkWt$$5Z^jhg*}ye2 zriG=IwT-Qvy{ntMho_gfPjCn{G%P$K^4asa7x6C>U}@=ZGBUIN%FZb+DJ?6nsI01f z*U*S+Lcedubar+3^!9z~9~d1QpO~DQo|(lheP3Q#{jv6QeQ*EQ!6E+l(J|o<7X<+N zcdUPs{U1(rY?CzFx1t3*kQr zezUos>)SBAF5bCYJZzl|mHiC&UaTINXKFnyWZ5R`k_L@b)~OXg(c=H-NzLqwghypF zKc~X(99t8TWCMLp#*b4IgcTmL7=1~(`Y?R>mia1epg~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;W@T_EP z2}MC$6p|~u{byZ6?i=%J9*BoX)~^+^)GW~^UXHSRRAJ^?)>jU1OX41`@6U8gwtSUi abZlA05H23QnX}?m{DeXJe{X1$X8sKT*+*ai literal 0 HcmV?d00001 diff --git a/tasks/zinoveva-ad/lab_2/Screenshot_3.jpg b/tasks/zinoveva-ad/lab_2/Screenshot_3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..63c55147c93a1bd973f0bc7dfef4056d1bb3214a GIT binary patch literal 6527 zcmd^@cTiMKw!kk*z#$DuK=P23C{c+55=KN&a#lcP7zP9+hapGF3Ig(>$cSXgStKWs z%#d?X5S&5D!_1ER-tM}u>U;IxtNr6uZQnlCb*sZUzk9mx>2AUlVF_TksSVWzNJvP4 zd&CDI%mSJK87b+nOibj&OhH9KK~7F_o|5t$70r1X8qj$Vh?b6#ftC(T2Lds$GJu(w zSy)(T=r6FbGP5xRMh7|#0E7C04WI>87Vp0FRO{IgNXG2IhcZx?~3|4 zraSj3`Q4eNLsMQ;K{P7bSniHs1Z3VJkiH%E5d-gm%<3(mx-kW^X+k$t6 zMU_?6HMMp14UO#`on75My?yQC?_~dl3ryr9B_}5%r~Ji5Lh3^lGB7y>-<5NW>USvbyEE}ihf*XoHBt++tfdMt(2!dxEFgV^+INMX} zPCC*PSKEBKc-Tt-IM%+rqO1C|%2}-1$1^+i55wZ(Zn9@LZOrs+pqXAEvRYjK~lmk2=Ij;o}7V?|Ac)fI5+#*aI-Ve`$Mk~|qQy^!R}usGkd)*ayS;S%Oy;ZoDH+6mK9(R8s=iWb}j#v2161N@!e9PSy+Kc=Tlq@~v$WAri8 zj>ZY5=l=NYcDja4;K8I@B8RTEeow*62}Lgr7+mnRw~&Qxq;*bOtv8IK+D`TBH$T;V z>~mzFXYYe-u(y$cu4B&7v67aPqgHGvV`0y`-r%f?K?5LN-VFtDef|qCFkhf!;e;@Qh3>bF*uIq*~0Ci#p<=+9!O; z|BWs^B&NJ`CaC04(t)-sUp^riEpPVTx_!7LOu^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EU}}C4D1SR z-VJEWMsNy4RRLCm`LQ-FL~!Ur(ZNt^p(nN|XLWF^@?Z;{>%w;B zL7IhgvY51;FaL`)8N=jmiJ|XH7y{eoz)(j(tx>4#5h`zeB|ssN?bAtdHceK=SsP7E z2Og>7r8Q`si9WQ7@ro ze5WsA3Fb`=<48eecRrEvdM19v#pf0g)@fKOW4}~^*lzn2gA2^TrDf^0US4E?&UC+q z3`BA&N0=hL`{aLWGJQf(qm|g=pt8iqYOT^Yh(@z`MJ#rlEff@|gl@_-2H79G(I%|k z_ffhdRjK3ZUGAX!)6AWJD25E!_xx1JHl~V| zd_x-#Gi{lyuKZC^S&T+EB|AkfE-LOD{_rU)Q-`Dg)TvoBdp+UEoye2*Ls;|=RBgSG z#FfMgLkaNY>4!PJpVb9xvr3o!CyJ)MoX6xdZcIQH1OgP{;wdGrB2O|Gz#wz&`H$?r zi>=Ow#r3hcEeJMFplqOHYaB zr|lYjJ^f@LmdJmac(x!`D*Riwi&@~bbhtfWd&&P99s;vCxbb2- zE=nbpaXSsyLUQ}jDPw9RG#Owb{9v-NJ0VpQkx;(@)9vb2{q(#Acz=#Ap!WacR#zhy zc=Xq=#n$$S5O#s+C-iyBOBJNcX$};`O8z#GMZ-I-C>0o%QW%Mzt(+j|Ez}QEU1&8i zZ>oIsDwozYX?Ror|Gd{CSd!X^^6w|HlMGZjA7>3#%7&0&=Sa literal 0 HcmV?d00001 diff --git a/tasks/zinoveva-ad/lab_2/data/123.txt b/tasks/zinoveva-ad/lab_2/data/123.txt new file mode 100644 index 0000000..e69de29 diff --git a/tasks/zinoveva-ad/lab_2/data/1234.txt b/tasks/zinoveva-ad/lab_2/data/1234.txt new file mode 100644 index 0000000..e69de29 diff --git a/tasks/zinoveva-ad/lab_2/data/data.txt b/tasks/zinoveva-ad/lab_2/data/data.txt new file mode 100644 index 0000000..728ae1c --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/data/data.txt @@ -0,0 +1,12 @@ +5 +7 +3 +7 +5 +8 +8 +9 +9 +5 +2 +1 \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/docker-compose.yml b/tasks/zinoveva-ad/lab_2/docker-compose.yml new file mode 100644 index 0000000..9c753e7 --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3.1" +services: + worker-1: + build: ./worker-1 + volumes: + # Монтирует локальную папку data к папке data в контейнере. + - ./data:/var/data + # Монтирует локальную папку result-1 к папке result в контейнере. + - ./result-1:/var/result + worker-2: + build: ./worker-2 + volumes: + # Монтирует локальную папку result-1 к папке data в контейнере. + - ./result-1:/var/data + - ./result:/var/result + # Зависимость от первого приложения. + depends_on: + - worker-1 \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/lab_2.sln b/tasks/zinoveva-ad/lab_2/lab_2.sln new file mode 100644 index 0000000..2c78217 --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/lab_2.sln @@ -0,0 +1,48 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30114.105 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "worker-1", "worker-1\worker-1.csproj", "{634E1073-C536-49F1-92E2-48812E9724D4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "worker-2", "worker-2\worker-2.csproj", "{CD71CC0E-6A85-4AC9-B8CE-47910331C868}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {634E1073-C536-49F1-92E2-48812E9724D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Debug|x64.ActiveCfg = Debug|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Debug|x64.Build.0 = Debug|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Debug|x86.ActiveCfg = Debug|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Debug|x86.Build.0 = Debug|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Release|Any CPU.Build.0 = Release|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Release|x64.ActiveCfg = Release|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Release|x64.Build.0 = Release|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Release|x86.ActiveCfg = Release|Any CPU + {634E1073-C536-49F1-92E2-48812E9724D4}.Release|x86.Build.0 = Release|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Debug|x64.ActiveCfg = Debug|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Debug|x64.Build.0 = Debug|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Debug|x86.ActiveCfg = Debug|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Debug|x86.Build.0 = Debug|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Release|Any CPU.Build.0 = Release|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Release|x64.ActiveCfg = Release|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Release|x64.Build.0 = Release|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Release|x86.ActiveCfg = Release|Any CPU + {CD71CC0E-6A85-4AC9-B8CE-47910331C868}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/tasks/zinoveva-ad/lab_2/photo_2023-10-10_16-25-51.jpg b/tasks/zinoveva-ad/lab_2/photo_2023-10-10_16-25-51.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f3c265d996036b141adbaac4586bbbd390b56d88 GIT binary patch literal 17457 zcmce-WmH{FvmktcgS)#E9D-|bcRjef6EwI6cXxMpcXxt21P>0uJwu-Ne(&7%&7HYF zX054xRsIAl2Zj|UkG2?gonhlPQIj)sndK~8{!LqJYLMnXozOi$0u&&#i*WDE9xE8tH* z02KyI1#k!fh6(^j1%p5Z`!fh&|EMMa9O5JSH$VcRz`!A(VLosl`2U>qfd)cCLH}6; zAV7R@p+KN~FulhAn-f5p=*I$n9{$;&+euyQ=X?~-O~mgx8IQh{@^fK>*K)zhgm(eM9({iq1!v2a+M)wkmG*M)x} z!PwSs|IGwoKWVN4APyT5er~ybI!3v^sYnZcy#EWpEhPcSrCaHCTI&;I zQ9j`=BjI(QOT?P0JpblnS^GuV9)9TW`O|TQans~$j%4(GjqESD=ZSf@mgB!98r9%@ zEg!}H8_=Z%A)LEhY+P5_CeS_`8Lvyb?b+&?Y5hY0##RVmorExvN8|o-rWEw~UtE7# zzVrex$|BeQX$ruDJm2l3TcD0TPFBuuGrOG_8|GMRexwZY5f|Sy`u*kFaNLgb-d)fC zsQL7x!rtb?X9-Q z*PzX7q&uGvyK+B>!0P6cy-r!yrfB}M{0m@Kc|dzg&VGOBf$5BPxe`fZh!f&)$9*+y~xmulMl zef2CmlWkLNYj)|aZg)0$Tw%ZVSMo;-6TEk||F+OP6*BzBV~M%SYfS}fd8nyl@JF-X z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>VD&Y-lky5hIU-RSHnZ8GD2gY#w28H~ z+?T+Ir=Jhy)> z@AI@Sx>;UUqB6yB*gO-{zFDI?`~jOts+hEVHf)NmuW$@ zB+2nGr3a!ZArJ+skAR$reNwEn?7Dew-!b59VQF)#TWe?<%?$edn*=XUxjnSmIGpu> z3wjx+gg>M56iE`15yP0;Iys<2s@lWSF`8dbX8MfO+yHE!G@9MxO^8R6^|Q$osZ*+d zoK675NRPq3bC(Rcv4I>d9hBr||L9Ou46C{Fp}DYm_uxG`fCc`;Plt~qGcp@4 z9FW8v!FGee^3lS_A@?gb_{?lsn39ZaiziQw1f8zrzS1!p@_A8wf4-jw8b)ShHpNQ~ d%mFLVk#+LqiaD2Six+y1DB)eGC|&*m|Jl_02`K;o literal 0 HcmV?d00001 diff --git a/tasks/zinoveva-ad/lab_2/result-1/data.txt b/tasks/zinoveva-ad/lab_2/result-1/data.txt new file mode 100644 index 0000000..b54cc0d --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/result-1/data.txt @@ -0,0 +1,3 @@ +7 +8 +8 diff --git a/tasks/zinoveva-ad/lab_2/result/result.txt b/tasks/zinoveva-ad/lab_2/result/result.txt new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/result/result.txt @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/worker-1/Dockerfile b/tasks/zinoveva-ad/lab_2/worker-1/Dockerfile new file mode 100644 index 0000000..e4756e5 --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/worker-1/Dockerfile @@ -0,0 +1,18 @@ +# Задаем базовый образ на .net +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env +# Задаем рабочую директорию +WORKDIR /src + + +# Копируем файлы и папки в каталог в контейнер +COPY . ./ +# Создаем образы и устанавливаем данные пакеты в контейнер +RUN dotnet restore +COPY . . +RUN dotnet publish -c Release -o /publish + +FROM mcr.microsoft.com/dotnet/aspnet:5.0 +WORKDIR /publish +COPY --from=build-env /publish . +# Вызываем приложение во время выполнения контейнера +ENTRYPOINT ["dotnet", "worker-1.dll"] \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/worker-1/Program.cs b/tasks/zinoveva-ad/lab_2/worker-1/Program.cs new file mode 100644 index 0000000..6b16175 --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/worker-1/Program.cs @@ -0,0 +1,27 @@ +using System; +using System.IO; + +var dir = new DirectoryInfo("../var/data"); + +var files = dir.GetFiles(); + +//var quantity_files = dir.GetFiles().Length; + +string resultFilePath = "../var/result/data.txt"; +try +{ + // Создаем новый файл или перезаписываем существующий + using (StreamWriter writer = new StreamWriter(resultFilePath, false)) + { + foreach (var file in files) + { + // Записываем в файл количество символов в имени каждого файла + writer.WriteLine(file.Name.Length); + } + } + Console.WriteLine("Файл успешно создан: " + resultFilePath); +} +catch (Exception ex) +{ + Console.WriteLine("Произошла ошибка: " + ex.Message); +} diff --git a/tasks/zinoveva-ad/lab_2/worker-1/worker-1.csproj b/tasks/zinoveva-ad/lab_2/worker-1/worker-1.csproj new file mode 100644 index 0000000..328500d --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/worker-1/worker-1.csproj @@ -0,0 +1,9 @@ + + + + Exe + net5.0 + worker_1 + + + diff --git a/tasks/zinoveva-ad/lab_2/worker-2/Dockerfile b/tasks/zinoveva-ad/lab_2/worker-2/Dockerfile new file mode 100644 index 0000000..f80c2dc --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/worker-2/Dockerfile @@ -0,0 +1,18 @@ +# Задаем базовый образ на .net +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env +# Задаем рабочую директорию +WORKDIR /src + + +# Копируем файлы и папки в каталог в контейнер +COPY . ./ +# Создаем образы и устанавливаем данные пакеты в контейнер +RUN dotnet restore +COPY . . +RUN dotnet publish -c Release -o /publish + +FROM mcr.microsoft.com/dotnet/aspnet:5.0 +WORKDIR /publish +COPY --from=build-env /publish . +# Вызываем приложение во время выполнения контейнера +ENTRYPOINT ["dotnet", "worker-2.dll"] \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/worker-2/Program.cs b/tasks/zinoveva-ad/lab_2/worker-2/Program.cs new file mode 100644 index 0000000..56c440d --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/worker-2/Program.cs @@ -0,0 +1,58 @@ +using System; +using System.IO; + +string filePath = "../var/data/data.txt"; +string resultPath = "../var/result/result.txt"; + +// Считываем числа из файла +int[] numbers = ReadNumbersFromFile(filePath); + +// Ищем наибольшее число +int maxNumber = FindMaxNumber(numbers); + +// Считаем количество таких чисел + int count = CountNumbers(numbers, maxNumber); + +// Сохраняем результат в файл + SaveCountToFile(resultPath, count); + +Console.WriteLine($"Максимальное число: {maxNumber}"); +Console.WriteLine($"Количество макисмальных чисел: {count}"); + + static int[] ReadNumbersFromFile(string filePath) + { + string[] lines = File.ReadAllLines(filePath); + int[] numbers = Array.ConvertAll(lines, int.Parse); + return numbers; + } + + static int FindMaxNumber(int[] numbers) + { + int maxNumber = int.MinValue; + foreach (int number in numbers) + { + if (number > maxNumber) + { + maxNumber = number; + } + } + return maxNumber; + } + + static int CountNumbers(int[] numbers, int targetNumber) + { + int count = 0; + foreach (int number in numbers) + { + if (number == targetNumber) + { + count++; + } + } + return count; + } + + static void SaveCountToFile(string filePath, int count) + { + File.WriteAllText(filePath, count.ToString()); + } \ No newline at end of file diff --git a/tasks/zinoveva-ad/lab_2/worker-2/worker-2.csproj b/tasks/zinoveva-ad/lab_2/worker-2/worker-2.csproj new file mode 100644 index 0000000..fb2480c --- /dev/null +++ b/tasks/zinoveva-ad/lab_2/worker-2/worker-2.csproj @@ -0,0 +1,9 @@ + + + + Exe + net5.0 + worker_2 + + + From 0508392cdb2087ac86a4338b2fb84128555b9f2f Mon Sep 17 00:00:00 2001 From: Anna Sentimental Date: Tue, 10 Oct 2023 16:42:35 +0400 Subject: [PATCH 2/5] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/zinoveva-ad/lab_2/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/zinoveva-ad/lab_2/README.md b/tasks/zinoveva-ad/lab_2/README.md index 374edac..be12ee6 100644 --- a/tasks/zinoveva-ad/lab_2/README.md +++ b/tasks/zinoveva-ad/lab_2/README.md @@ -2,9 +2,9 @@ Выполнил: студентка гр. ИСЭбд-41, Зиновьева Анна. -Вариант программы 1: Ищет в каталоге `/var/data` файл с самым коротким названием и перекладывает его в `/var/result/data.txt`. +Вариант программы 1: 4. Формирует файл `/var/result/data.txt` так, что каждая строка файла - количество символов в именах файлов из каталога `/var/data`. -Вариант программы 2: Ищет наименьшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`. +Вариант программы 2: 3. Ищет набольшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`. ## Создание приложений From d356a64a04cbcdbf5fdd08a100b8110f59b50f96 Mon Sep 17 00:00:00 2001 From: Anna Sentimental Date: Tue, 10 Oct 2023 16:44:58 +0400 Subject: [PATCH 3/5] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/zinoveva-ad/lab_2/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/zinoveva-ad/lab_2/README.md b/tasks/zinoveva-ad/lab_2/README.md index be12ee6..0003d57 100644 --- a/tasks/zinoveva-ad/lab_2/README.md +++ b/tasks/zinoveva-ad/lab_2/README.md @@ -46,7 +46,6 @@ dotnet new console -o worker-2 Был создан файл [docker-compose.yml](docker-compose.yml), в котором указан манифест для запуска распределённого приложения. -Дополнительно был создан файл [.dockerignore](.dockerignore) и дополнен [.gitignore](.gitignore), чтобы исключить для сборки и коммита всё лишнее. ## Сборка и запуск From 3d1c71a68b4478c51b8705c48fab17ddd5678be3 Mon Sep 17 00:00:00 2001 From: Anna Sentimental Date: Tue, 17 Oct 2023 23:06:18 +0400 Subject: [PATCH 4/5] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE.=20=D0=A0=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=B0=D0=B1=D1=81=D0=BE=D0=BB=D1=8E=D1=82=D0=BD=D1=8B?= =?UTF-8?q?=D0=BC=D0=B8=20=D0=BF=D1=83=D1=82=D1=8F=D0=BC=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/zinoveva-ad/lab_2/worker-1/Program.cs | 4 ++-- tasks/zinoveva-ad/lab_2/worker-2/Program.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/zinoveva-ad/lab_2/worker-1/Program.cs b/tasks/zinoveva-ad/lab_2/worker-1/Program.cs index 6b16175..93b6bfb 100644 --- a/tasks/zinoveva-ad/lab_2/worker-1/Program.cs +++ b/tasks/zinoveva-ad/lab_2/worker-1/Program.cs @@ -1,13 +1,13 @@ using System; using System.IO; -var dir = new DirectoryInfo("../var/data"); +var dir = new DirectoryInfo("/var/data"); var files = dir.GetFiles(); //var quantity_files = dir.GetFiles().Length; -string resultFilePath = "../var/result/data.txt"; +string resultFilePath = "/var/result/data.txt"; try { // Создаем новый файл или перезаписываем существующий diff --git a/tasks/zinoveva-ad/lab_2/worker-2/Program.cs b/tasks/zinoveva-ad/lab_2/worker-2/Program.cs index 56c440d..75a622e 100644 --- a/tasks/zinoveva-ad/lab_2/worker-2/Program.cs +++ b/tasks/zinoveva-ad/lab_2/worker-2/Program.cs @@ -1,8 +1,8 @@ using System; using System.IO; -string filePath = "../var/data/data.txt"; -string resultPath = "../var/result/result.txt"; +string filePath = "/var/data/data.txt"; +string resultPath = "/var/result/result.txt"; // Считываем числа из файла int[] numbers = ReadNumbersFromFile(filePath); From b2b12babafafe76a7833831d0f1da64dec0aa101 Mon Sep 17 00:00:00 2001 From: Anna Sentimental Date: Tue, 17 Oct 2023 23:07:27 +0400 Subject: [PATCH 5/5] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BE=D1=82=D1=87=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/zinoveva-ad/lab_2/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/zinoveva-ad/lab_2/README.md b/tasks/zinoveva-ad/lab_2/README.md index 0003d57..962212d 100644 --- a/tasks/zinoveva-ad/lab_2/README.md +++ b/tasks/zinoveva-ad/lab_2/README.md @@ -42,7 +42,7 @@ dotnet new console -o worker-2 4. Каталог `./result` должен быть примонтирован в каталог `/var/result` для программы 2. Туда будут складывать результаты финальной обработки. -Для каждой программы были созданы файлы Dockerfile ([программа 1](worker-1/Dockerfile), [программа 2](worker-1/Dockerfile)) с подробным описанием процесса сборки. +Для каждой программы были созданы файлы Dockerfile ([программа 1](worker-1/Dockerfile), [программа 2](worker-2/Dockerfile)) с подробным описанием процесса сборки. Был создан файл [docker-compose.yml](docker-compose.yml), в котором указан манифест для запуска распределённого приложения.