diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..5bc8f90d --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,15 @@ +## Goal + + +## Changes + + +## Testing + + +--- + +### Checklist +- [ ] Clear, descriptive PR title +- [ ] Documentation/README updated (if needed) +- [ ] No secrets or large temporary files committed diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 00000000..b00f8e94 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€ +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v5 + - run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/labs/submission8.md b/labs/submission8.md new file mode 100644 index 00000000..db7030e9 --- /dev/null +++ b/labs/submission8.md @@ -0,0 +1,54 @@ +# Lab 8 Solution + +## Task 1 + +Outputs: + +![all stats](<./Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2026-03-23 131725.png>) + +Top CPU and memory consumers (Cursor server/extension host, cassandra DB): + +![top cpu and mem](<./Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2026-03-23 132009.png>) + +Top I/O consumers (sdd, main WSL root disk): + +![top IO](<./Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2026-03-23 132134.png>) + +Disk Usage: + +```bash +(base) lexi@lexandrinnnt:~/DevOps-Intro$ df -h +du -h /var | sort -rh | head -n 10 +Filesystem Size Used Avail Use% Mounted on +none 7.6G 0 7.6G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 7.6G 4.0K 7.6G 1% /mnt/wsl +drivers 895G 322G 574G 36% /usr/lib/wsl/drivers +/dev/sdd 1007G 79G 877G 9% / +none 7.6G 304K 7.6G 1% /mnt/wslg +none 7.6G 0 7.6G 0% /usr/lib/wsl/lib +rootfs 7.6G 2.7M 7.6G 1% /init +none 7.6G 944K 7.6G 1% /run +none 7.6G 0 7.6G 0% /run/lock +none 7.6G 1.1M 7.6G 1% /run/shm +none 7.6G 76K 7.6G 1% /mnt/wslg/versions.txt +none 7.6G 76K 7.6G 1% /mnt/wslg/doc +C:\ 895G 322G 574G 36% /mnt/c + +(base) lexi@lexandrinnnt:~/DevOps-Intro$ sudo find /var -type f -exec du -h {} + | sort -rh | head -n 3 +1.4G /var/lib/mongodb/collection-47-8162888075226237177.wt +1.1G /var/lib/postgresql/16/main/base/16452/16473 +1.1G /var/lib/postgresql/16/main/base/16421/16445 +``` + +Reflection: I really should remove all databases that I used in the past :D + +## Task 2 + +I created API check for yandex afisha and browser check for German Wikipedia. +Checks succeeded!!! But it was difficult :( + +![overview](<./Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2026-03-23 211137.png>) + +![api check](<./Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2026-03-23 211627.png>) + +![browser check](<./Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2026-03-23 211954.png>) \ No newline at end of file diff --git "a/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 131725.png" "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 131725.png" new file mode 100644 index 00000000..a7878c45 Binary files /dev/null and "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 131725.png" differ diff --git "a/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 132009.png" "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 132009.png" new file mode 100644 index 00000000..aad849f6 Binary files /dev/null and "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 132009.png" differ diff --git "a/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 132134.png" "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 132134.png" new file mode 100644 index 00000000..2fb4a57c Binary files /dev/null and "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 132134.png" differ diff --git "a/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211137.png" "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211137.png" new file mode 100644 index 00000000..c2481281 Binary files /dev/null and "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211137.png" differ diff --git "a/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211627.png" "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211627.png" new file mode 100644 index 00000000..4771f038 Binary files /dev/null and "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211627.png" differ diff --git "a/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211954.png" "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211954.png" new file mode 100644 index 00000000..eb74af29 Binary files /dev/null and "b/labs/\320\241\320\275\320\270\320\274\320\276\320\272 \321\215\320\272\321\200\320\260\320\275\320\260 2026-03-23 211954.png" differ