From eab54133cfc0ba9ca71dbed540514c67d7f4c4b3 Mon Sep 17 00:00:00 2001 From: "batala@mail.ru" Date: Wed, 3 Jan 2024 14:17:16 +0000 Subject: [PATCH 1/4] Add PR template --- .github/PULL_REQUEST_TEMPLATE.md | 18 ++++++++++++++++++ .pre-commit-config.yaml | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .pre-commit-config.yaml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..b120338 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,18 @@ +# Выполнено ДЗ № + + - [ ] Основное ДЗ + - [ ] Задание со * + +## В процессе сделано: + - Пункт 1 + - Пункт 2 + +## Как запустить проект: + - Например, запустить команду X в директории Y + +## Как проверить работоспособность: + - Например, перейти по ссылке http://localhost:8080 + +## PR checklist + - [ ] Выставил label с номером домашнего задания + - [ ] Выставил label с темой домашнего задания diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..feb9c39 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace From 7f5e8c61607e335cbfe23e2c55d8218cbd6451a3 Mon Sep 17 00:00:00 2001 From: "batala@mail.ru" Date: Wed, 3 Jan 2024 14:38:04 +0000 Subject: [PATCH 2/4] Add PR template --- .github/auto_assign.yml | 6 ++++++ .github/workflows/auto-assign.yml | 10 ++++++++++ .github/workflows/run-tests.yml | 26 ++++++++++++++++++++++++++ play-travis/test.py | 9 +++++++++ 4 files changed, 51 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/auto-assign.yml create mode 100644 .github/workflows/run-tests.yml create mode 100644 play-travis/test.py diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..fcd38ec --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,6 @@ +# Set to true to add assignees to pull requests +addAssignees: true + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - mrgreyves diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..7ac2755 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,10 @@ +name: 'Auto Assign' +on: pull_request + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.4 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..ee7ff9c --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,26 @@ +name: Run tests for OTUS homework + +on: + push: + branches-ignore: main + pull_request: + branches-ignore: main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout this repo + uses: actions/checkout@v2 + with: + ref: ${{ github.ref }} + - name: Checkout repo with tests + uses: actions/checkout@v2 + with: + repository: "express42/otus-homeworks" + ref: 2023-07 + path: "./otus-homeworks/" + + - name: Run tests + run: curl https://raw.githubusercontent.com/express42/otus-homeworks/2023-09/run.sh | bash diff --git a/play-travis/test.py b/play-travis/test.py new file mode 100644 index 0000000..952dce7 --- /dev/null +++ b/play-travis/test.py @@ -0,0 +1,9 @@ +import unittest + +class NumbersTest(unittest.TestCase): + + def test_equal(self): + self.assertEqual(1 + 1, 1) + +if __name__ == '__main__': + unittest.main() From adf346298dcb4d31e8a51b688742c26b03cebb1d Mon Sep 17 00:00:00 2001 From: "batala@mail.ru" Date: Wed, 3 Jan 2024 16:10:54 +0000 Subject: [PATCH 3/4] docker-1 --- dockermonolith/docker-1.log | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 dockermonolith/docker-1.log diff --git a/dockermonolith/docker-1.log b/dockermonolith/docker-1.log new file mode 100644 index 0000000..aca8f10 --- /dev/null +++ b/dockermonolith/docker-1.log @@ -0,0 +1,4 @@ +REPOSITORY TAG IMAGE ID CREATED SIZE +yourname/ubuntu-tmp-file latest 747c7399851b About a minute ago 63.2MB +ubuntu 18.04 f9a80a55f492 7 months ago 63.2MB +hello-world latest d2c94e258dcb 8 months ago 13.3kB From ebffa9c5303f661b9a4401fbc1e160dbc6e6b5dd Mon Sep 17 00:00:00 2001 From: "batala@mail.ru" Date: Thu, 4 Jan 2024 16:45:09 +0000 Subject: [PATCH 4/4] play_travis --- dockermonolith/.inspect_cont.txt.swo | Bin 0 -> 16384 bytes dockermonolith/Dockerfile | 21 +++ dockermonolith/db_config | 1 + dockermonolith/diff | 72 ++++++++++ dockermonolith/inspect_cont.txt | 198 +++++++++++++++++++++++++++ dockermonolith/inspect_image.txt | 90 ++++++++++++ dockermonolith/mongod.conf | 16 +++ dockermonolith/start.sh | 7 + play-travis/test.py | 2 +- 9 files changed, 406 insertions(+), 1 deletion(-) create mode 100644 dockermonolith/.inspect_cont.txt.swo create mode 100644 dockermonolith/Dockerfile create mode 100644 dockermonolith/db_config create mode 100644 dockermonolith/diff create mode 100644 dockermonolith/inspect_cont.txt create mode 100644 dockermonolith/inspect_image.txt create mode 100644 dockermonolith/mongod.conf create mode 100644 dockermonolith/start.sh diff --git a/dockermonolith/.inspect_cont.txt.swo b/dockermonolith/.inspect_cont.txt.swo new file mode 100644 index 0000000000000000000000000000000000000000..6018ced42bd44978c775e8824ac0c5dbe64b3c19 GIT binary patch literal 16384 zcmeI3ZHOdC8OJ-h#6***iIIFz>j@5OwzD?#Arij=Q%B+~wG-?yjEg z+n(;ee%am0aca~LiCpW2`EI+i~s8Bnd#~2 zo;wIRM0&_Cv(xod)l*MBRrNeIbGmR}d+o3`FL8Lio#S49_>1&L{(3G}I4;&>H;P%o z>{rh=0xzV&o^8-@hUmuz4c1K0*rmaoRMSaB9I`!8KP~NfuIJd%PR({hpBmA&;knU# zbP&yGzbdLMP+6eF0&!%`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+  "Id": "9612e7e02706a16c2b91e2894472| +  "Created": "2024-01-03T16:04:47.557| +  "Path": "/bin/bash", | +  "Args": [], | +  "State": { | +   "Status": "exited", | +   "Running": false, | +   "Paused": false, | +   "Restarting": false, | +   "OOMKilled": false, | +  "Dead": false, | +  "Pid": 0, | +  "ExitCode": 1, | +  "Error": "", | +  "StartedAt": "2024-01-03T16:04:| +  "FinishedAt": "2024-01-03T16:05| +  }, | +  "Image": "sha256:f9a80a55f492e823bf| +  "ResolvConfPath": "/var/lib/docker/| +  "HostnamePath": "/var/lib/docker/co| +inspect_cont.txt 1,1 Top  [  {  "Id": "sha256:747c7399851b198408da6  "RepoTags": [    "yourname/ubuntu-tmp-file:lates  ],   "RepoDigests": [],   "Parent": "sha256:f9a80a55f492e823b  "Comment": "",   "Created": "2024-01-03T16:08:14.210  "Container": "9612e7e02706a16c2b91e  "ContainerConfig": {   "Hostname": "9612e7e02706",   "Domainname": "",   "User": "",   "AttachStdin": true,   "AttachStdout": true,   "AttachStderr": true,    "Tty": true,    "OpenStdin": true,    "StdinOnce": true,    "Env": [ inspect_image.txt 1,1 Top[?25h[?25l^M 2,52,5 [?25h[?25lType :qa and press to exit Vim[?25h[?25l^X [?25h[?25l[?25h[?25l^X [?25h[?25l [| +  {| +  "Id": "9612e7e02706a16c2b91e2894472| +  "Created": "2024-01-03T16:04:47.557| +  "Path": "/bin/bash", | +  "Args": [], | +  "State": { | +   "Status": "exited", | +   "Running": false, | +   "Paused": false, | +   "Restarting": false, | +   "OOMKilled": false, | +  "Dead": false, | +  "Pid": 0, | +  "ExitCode": 1, | +  "Error": "", | +  "StartedAt": "2024-01-03T16:04:| +  "FinishedAt": "2024-01-03T16:05| +  }, | +  "Image": "sha256:f9a80a55f492e823bf| +  "ResolvConfPath": "/var/lib/docker/| +  "HostnamePath": "/var/lib/docker/co| +  "HostsPath": "/var/lib/docker/conta| +  "LogPath": "/var/lib/docker/contain| +inspect_cont.txt 2,5 Top  [  {  "Id": "sha256:747c7399851b198408da6  "RepoTags": [    "yourname/ubuntu-tmp-file:lates  ],   "RepoDigests": [],   "Parent": "sha256:f9a80a55f492e823b  "Comment": "",   "Created": "2024-01-03T16:08:14.210  "Container": "9612e7e02706a16c2b91e  "ContainerConfig": {   "Hostname": "9612e7e02706",   "Domainname": "",   "User": "",   "AttachStdin": true,   "AttachStdout": true,   "AttachStderr": true,    "Tty": true,    "OpenStdin": true,    "StdinOnce": true,    "Env": [    "PATH=/usr/local/sbin:/usr/ -------------------------------------------inspect_image.txt 2,5 Top[?25h[?25l^Z +[?1004l[?2004l[?1l>[?25h[>4;m[?1049l[?1049h[>4;2m[?1h=[?2004h[?1004h[?12h[?12l[?25l [| +  {| +  "Id": "9612e7e02706a16c2b91e2894472| +  "Created": "2024-01-03T16:04:47.557| +  "Path": "/bin/bash", | +  "Args": [], | +  "State": { | +   "Status": "exited", | +   "Running": false, | +   "Paused": false, | +   "Restarting": false, | +   "OOMKilled": false, | +  "Dead": false, | +  "Pid": 0, | +  "ExitCode": 1, | +  "Error": "", | +  "StartedAt": "2024-01-03T16:04:| +  "FinishedAt": "2024-01-03T16:05| +  }, | +  "Image": "sha256:f9a80a55f492e823bf| +  "ResolvConfPath": "/var/lib/docker/| +  "HostnamePath": "/var/lib/docker/co| +inspect_cont.txt 2,5 Top  [  {  "Id": "sha256:747c7399851b198408da6  "RepoTags": [    "yourname/ubuntu-tmp-file:lates  ],   "RepoDigests": [],   "Parent": "sha256:f9a80a55f492e823b  "Comment": "",   "Created": "2024-01-03T16:08:14.210  "Container": "9612e7e02706a16c2b91e  "ContainerConfig": {   "Hostname": "9612e7e02706",   "Domainname": "",   "User": "",   "AttachStdin": true,   "AttachStdout": true,   "AttachStderr": true,    "Tty": true,    "OpenStdin": true,    "StdinOnce": true,    "Env": [ inspect_image.txt 2,5 Top[?25h[?25l[?2004l[>4;m[?1004l[?2004l[?1l>[?25h[>4;m[?1049lVim: Error reading input, exiting... +Vim: Finished. +2 files to edit diff --git a/dockermonolith/inspect_cont.txt b/dockermonolith/inspect_cont.txt new file mode 100644 index 0000000..9f5a1ef --- /dev/null +++ b/dockermonolith/inspect_cont.txt @@ -0,0 +1,198 @@ +[ + { + "Id": "9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d", + "Created": "2024-01-03T16:04:47.557464744Z", + "Path": "/bin/bash", + "Args": [], + "State": { + "Status": "exited", + "Running": false, + "Paused": false, + "Restarting": false, + "OOMKilled": false, + "Dead": false, + "Pid": 0, + "ExitCode": 1, + "Error": "", + "StartedAt": "2024-01-03T16:04:47.866939726Z", + "FinishedAt": "2024-01-03T16:05:05.041826075Z" + }, + "Image": "sha256:f9a80a55f492e823bf5d51f1bd5f87ea3eed1cb31788686aa99a2fb61a27af6a", + "ResolvConfPath": "/var/lib/docker/containers/9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d/resolv.conf", + "HostnamePath": "/var/lib/docker/containers/9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d/hostname", + "HostsPath": "/var/lib/docker/containers/9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d/hosts", + "LogPath": "/var/lib/docker/containers/9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d/9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d-json.log", + "Name": "/crazy_lovelace", + "RestartCount": 0, + "Driver": "overlay2", + "Platform": "linux", + "MountLabel": "", + "ProcessLabel": "", + "AppArmorProfile": "docker-default", + "ExecIDs": null, + "HostConfig": { + "Binds": null, + "ContainerIDFile": "", + "LogConfig": { + "Type": "json-file", + "Config": {} + }, + "NetworkMode": "default", + "PortBindings": {}, + "RestartPolicy": { + "Name": "no", + "MaximumRetryCount": 0 + }, + "AutoRemove": false, + "VolumeDriver": "", + "VolumesFrom": null, + "ConsoleSize": [ + 24, + 80 + ], + "CapAdd": null, + "CapDrop": null, + "CgroupnsMode": "private", + "Dns": [], + "DnsOptions": [], + "DnsSearch": [], + "ExtraHosts": null, + "GroupAdd": null, + "IpcMode": "private", + "Cgroup": "", + "Links": null, + "OomScoreAdj": 0, + "PidMode": "", + "Privileged": false, + "PublishAllPorts": false, + "ReadonlyRootfs": false, + "SecurityOpt": null, + "UTSMode": "", + "UsernsMode": "", + "ShmSize": 67108864, + "Runtime": "runc", + "Isolation": "", + "CpuShares": 0, + "Memory": 0, + "NanoCpus": 0, + "CgroupParent": "", + "BlkioWeight": 0, + "BlkioWeightDevice": [], + "BlkioDeviceReadBps": [], + "BlkioDeviceWriteBps": [], + "BlkioDeviceReadIOps": [], + "BlkioDeviceWriteIOps": [], + "CpuPeriod": 0, + "CpuQuota": 0, + "CpuRealtimePeriod": 0, + "CpuRealtimeRuntime": 0, + "CpusetCpus": "", + "CpusetMems": "", + "Devices": [], + "DeviceCgroupRules": null, + "DeviceRequests": null, + "MemoryReservation": 0, + "MemorySwap": 0, + "MemorySwappiness": null, + "OomKillDisable": null, + "PidsLimit": null, + "Ulimits": null, + "CpuCount": 0, + "CpuPercent": 0, + "IOMaximumIOps": 0, + "IOMaximumBandwidth": 0, + "MaskedPaths": [ + "/proc/asound", + "/proc/acpi", + "/proc/kcore", + "/proc/keys", + "/proc/latency_stats", + "/proc/timer_list", + "/proc/timer_stats", + "/proc/sched_debug", + "/proc/scsi", + "/sys/firmware", + "/sys/devices/virtual/powercap" + ], + "ReadonlyPaths": [ + "/proc/bus", + "/proc/fs", + "/proc/irq", + "/proc/sys", + "/proc/sysrq-trigger" + ] + }, + "GraphDriver": { + "Data": { + "LowerDir": "/var/lib/docker/overlay2/2a154c92459371b642645843d08242f438d5efb6248d59a21551287f0fc7e3cc-init/diff:/var/lib/docker/overlay2/dcdc47d447c3b18018d7afc1ebfb3e8a29eb09fbe9386bda88acd5550238f009/diff", + "MergedDir": "/var/lib/docker/overlay2/2a154c92459371b642645843d08242f438d5efb6248d59a21551287f0fc7e3cc/merged", + "UpperDir": "/var/lib/docker/overlay2/2a154c92459371b642645843d08242f438d5efb6248d59a21551287f0fc7e3cc/diff", + "WorkDir": "/var/lib/docker/overlay2/2a154c92459371b642645843d08242f438d5efb6248d59a21551287f0fc7e3cc/work" + }, + "Name": "overlay2" + }, + "Mounts": [], + "Config": { + "Hostname": "9612e7e02706", + "Domainname": "", + "User": "", + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Tty": true, + "OpenStdin": true, + "StdinOnce": true, + "Env": [ + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + ], + "Cmd": [ + "/bin/bash" + ], + "Image": "ubuntu:18.04", + "Volumes": null, + "WorkingDir": "", + "Entrypoint": null, + "OnBuild": null, + "Labels": { + "org.opencontainers.image.ref.name": "ubuntu", + "org.opencontainers.image.version": "18.04" + } + }, + "NetworkSettings": { + "Bridge": "", + "SandboxID": "42ed2aa857cdd877978dd247b5e5e4a1c2e39ee00e08a3814f851e56e0f287c3", + "HairpinMode": false, + "LinkLocalIPv6Address": "", + "LinkLocalIPv6PrefixLen": 0, + "Ports": {}, + "SandboxKey": "/var/run/docker/netns/42ed2aa857cd", + "SecondaryIPAddresses": null, + "SecondaryIPv6Addresses": null, + "EndpointID": "", + "Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "MacAddress": "", + "Networks": { + "bridge": { + "IPAMConfig": null, + "Links": null, + "Aliases": null, + "NetworkID": "613a360f3a4f1c95d98120cb08b0debf28ac427ff7e4abc75881397f4f50defc", + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "", + "DriverOpts": null + } + } + } + } +] diff --git a/dockermonolith/inspect_image.txt b/dockermonolith/inspect_image.txt new file mode 100644 index 0000000..22826b7 --- /dev/null +++ b/dockermonolith/inspect_image.txt @@ -0,0 +1,90 @@ +[ + { + "Id": "sha256:747c7399851b198408da6886fb16ba5d94619645048707abc63272ee31e64f9c", + "RepoTags": [ + "yourname/ubuntu-tmp-file:latest" + ], + "RepoDigests": [], + "Parent": "sha256:f9a80a55f492e823bf5d51f1bd5f87ea3eed1cb31788686aa99a2fb61a27af6a", + "Comment": "", + "Created": "2024-01-03T16:08:14.210921366Z", + "Container": "9612e7e02706a16c2b91e2894472b78f01e7d213a8ccd4428a1e31c04fe2258d", + "ContainerConfig": { + "Hostname": "9612e7e02706", + "Domainname": "", + "User": "", + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Tty": true, + "OpenStdin": true, + "StdinOnce": true, + "Env": [ + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + ], + "Cmd": [ + "/bin/bash" + ], + "Image": "ubuntu:18.04", + "Volumes": null, + "WorkingDir": "", + "Entrypoint": null, + "OnBuild": null, + "Labels": { + "org.opencontainers.image.ref.name": "ubuntu", + "org.opencontainers.image.version": "18.04" + } + }, + "DockerVersion": "24.0.7", + "Author": "", + "Config": { + "Hostname": "9612e7e02706", + "Domainname": "", + "User": "", + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Tty": true, + "OpenStdin": true, + "StdinOnce": true, + "Env": [ + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + ], + "Cmd": [ + "/bin/bash" + ], + "Image": "ubuntu:18.04", + "Volumes": null, + "WorkingDir": "", + "Entrypoint": null, + "OnBuild": null, + "Labels": { + "org.opencontainers.image.ref.name": "ubuntu", + "org.opencontainers.image.version": "18.04" + } + }, + "Architecture": "amd64", + "Os": "linux", + "Size": 63156492, + "VirtualSize": 63156492, + "GraphDriver": { + "Data": { + "LowerDir": "/var/lib/docker/overlay2/dcdc47d447c3b18018d7afc1ebfb3e8a29eb09fbe9386bda88acd5550238f009/diff", + "MergedDir": "/var/lib/docker/overlay2/c553ae82a432898e75c591a6f970009327197d7ba8b3d69466bde7b4f626969e/merged", + "UpperDir": "/var/lib/docker/overlay2/c553ae82a432898e75c591a6f970009327197d7ba8b3d69466bde7b4f626969e/diff", + "WorkDir": "/var/lib/docker/overlay2/c553ae82a432898e75c591a6f970009327197d7ba8b3d69466bde7b4f626969e/work" + }, + "Name": "overlay2" + }, + "RootFS": { + "Type": "layers", + "Layers": [ + "sha256:548a79621a426b4eb077c926eabac5a8620c454fb230640253e1b44dc7dd7562", + "sha256:ebccf5683ed70e159ec4626dc75f7d5760e59b48e000db0edd45dfb6d52c7134" + ] + }, + "Metadata": { + "LastTagTime": "2024-01-03T16:08:14.230050416Z" + } + } +] diff --git a/dockermonolith/mongod.conf b/dockermonolith/mongod.conf new file mode 100644 index 0000000..8fa86c0 --- /dev/null +++ b/dockermonolith/mongod.conf @@ -0,0 +1,16 @@ +# Where and how to store data. +storage: + dbPath: /var/lib/mongodb + journal: + enabled: true + +# where to write logging data. +systemLog: + destination: file + logAppend: true + path: /var/log/mongodb/mongod.log + +# network interfaces +net: + port: 27017 + bindIp: 127.0.0.1 diff --git a/dockermonolith/start.sh b/dockermonolith/start.sh new file mode 100644 index 0000000..2754b25 --- /dev/null +++ b/dockermonolith/start.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +/usr/bin/mongod --fork --logpath /var/log/mongod.log --config /etc/mongodb.conf + +source /reddit/db_config + +cd /reddit && puma || exit diff --git a/play-travis/test.py b/play-travis/test.py index 952dce7..8381bad 100644 --- a/play-travis/test.py +++ b/play-travis/test.py @@ -3,7 +3,7 @@ class NumbersTest(unittest.TestCase): def test_equal(self): - self.assertEqual(1 + 1, 1) + self.assertEqual(1 + 1, 2) if __name__ == '__main__': unittest.main()