From e4fc3e523262168aec5abdf6c91eda448e0b795c Mon Sep 17 00:00:00 2001 From: shaver007 Date: Thu, 30 Oct 2025 02:45:40 +0200 Subject: [PATCH 1/8] chore:Dockerfile - base image, python, app setup --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4e20cfb5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:22.04 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + python3 python3-pip \ + && rm -rf /var/lib/apt/lists/* + +COPY requirements.txt /tmp/requirements.txt +RUN pip install --upgrade pip \ + && pip install --no-cache-dir -r /tmp/requirements.txt + +COPY /app /app +WORKDIR /app + +RUN useradd appuser \ + && chown -R appuser:appuser /app +USER appuser + +CMD ["python3", "app.py"] \ No newline at end of file From fc4d071c977600e4ec8ee88bdb399151c46856c7 Mon Sep 17 00:00:00 2001 From: shaver007 Date: Thu, 30 Oct 2025 04:45:54 +0200 Subject: [PATCH 2/8] docs:add-bio,readme --- README.md | 4 +++- bio.md | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 bio.md diff --git a/README.md b/README.md index d19dfd95..6f94c846 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# devops-programme \ No newline at end of file +# Name: . +# Role: . +# Goals: I want to grow my knowledge and skills in DevOps space. \ No newline at end of file diff --git a/bio.md b/bio.md new file mode 100644 index 00000000..bb335830 --- /dev/null +++ b/bio.md @@ -0,0 +1,3 @@ +I’m an IT professional with wide experience across multiple technologies. + +My goal is to gain knowledge related to DevOps culture. \ No newline at end of file From 46746e866e67f511389140f7e981005bdb5e8d82 Mon Sep 17 00:00:00 2001 From: shaver007 Date: Thu, 30 Oct 2025 15:06:53 +0200 Subject: [PATCH 3/8] docs: update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6f94c846..a1bd9795 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Name: . -# Role: . +# Name: Teodor P +# Role: SRE # Goals: I want to grow my knowledge and skills in DevOps space. \ No newline at end of file From bb01311d277b1a690d00fd570d0adbde84a8704a Mon Sep 17 00:00:00 2001 From: shaver007 Date: Sat, 1 Nov 2025 21:17:23 +0200 Subject: [PATCH 4/8] chore:ADD PR Template --- .github/PULL_REQUEST_TEMPLATE.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..79977ae9 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,20 @@ +# šŸ“ Pull Request + +## Description +Briefly describe what this PR changes or adds. + +--- + +## Testing +How can reviewers test your changes? +_Example:_ +1. Run `npm start` +2. Navigate to `/profile` +3. Verify that the new component loads correctly + +--- + +## Checklist +- [ ] Code builds and runs without errors +- [ ] Tests (if any) pass +- [ ] No unused files or comments \ No newline at end of file From 80857f9da5df7404a7a529a474467043651b2a9d Mon Sep 17 00:00:00 2001 From: shaver007 Date: Sat, 1 Nov 2025 21:43:31 +0200 Subject: [PATCH 5/8] Revert "Add requirements.txt" This reverts commit 21ac64b813d3e84841ec0346ab4ecc760691247f. --- requirements.txt | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 9d440edf..00000000 --- a/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -flask==3.0.0 ; python_version >= "3.10" and python_version < "4.0" -itsdangerous==2.1.2 ; python_version >= "3.10" and python_version < "4.0" -jinja2==3.1.2 ; python_version >= "3.10" and python_version < "4.0" -markupsafe==2.1.3 ; python_version >= "3.10" and python_version < "4.0" -werkzeug==3.0.0 ; python_version >= "3.10" and python_version < "4.0" - From 77ac4d15290acef62bf8fc9efaa572e00481a6b8 Mon Sep 17 00:00:00 2001 From: shaver007 Date: Sat, 1 Nov 2025 21:57:50 +0200 Subject: [PATCH 6/8] Revert "Merge pull request #4 from shaver007/chore-add-pr-template" This reverts commit 132a5a13129e9b0ebc151f84b8065eccbbf26c9a, reversing changes made to a13eae555c3833d6aee695095c2636f5920dd93a. --- .github/PULL_REQUEST_TEMPLATE.md | 20 -------------------- Dockerfile | 19 ------------------- 2 files changed, 39 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 Dockerfile diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 79977ae9..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,20 +0,0 @@ -# šŸ“ Pull Request - -## Description -Briefly describe what this PR changes or adds. - ---- - -## Testing -How can reviewers test your changes? -_Example:_ -1. Run `npm start` -2. Navigate to `/profile` -3. Verify that the new component loads correctly - ---- - -## Checklist -- [ ] Code builds and runs without errors -- [ ] Tests (if any) pass -- [ ] No unused files or comments \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 4e20cfb5..00000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM ubuntu:22.04 - -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - python3 python3-pip \ - && rm -rf /var/lib/apt/lists/* - -COPY requirements.txt /tmp/requirements.txt -RUN pip install --upgrade pip \ - && pip install --no-cache-dir -r /tmp/requirements.txt - -COPY /app /app -WORKDIR /app - -RUN useradd appuser \ - && chown -R appuser:appuser /app -USER appuser - -CMD ["python3", "app.py"] \ No newline at end of file From 51f291ae3ea5470be782d612dca20a69953e6f90 Mon Sep 17 00:00:00 2001 From: shaver007 Date: Sat, 1 Nov 2025 22:28:55 +0200 Subject: [PATCH 7/8] chore:ADD PR template before Dockerfile --- .github/PULL_REQUEST_TEMPLATE.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..79977ae9 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,20 @@ +# šŸ“ Pull Request + +## Description +Briefly describe what this PR changes or adds. + +--- + +## Testing +How can reviewers test your changes? +_Example:_ +1. Run `npm start` +2. Navigate to `/profile` +3. Verify that the new component loads correctly + +--- + +## Checklist +- [ ] Code builds and runs without errors +- [ ] Tests (if any) pass +- [ ] No unused files or comments \ No newline at end of file From e33a83c06380d999f180c2f3529a9f2e024f7724 Mon Sep 17 00:00:00 2001 From: shaver007 Date: Sat, 1 Nov 2025 23:01:38 +0200 Subject: [PATCH 8/8] chore:Dockerfile - set base image, python, Flask app setup --- Dockerfile | 19 +++++++++++++++++++ requirements.txt | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4e20cfb5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:22.04 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + python3 python3-pip \ + && rm -rf /var/lib/apt/lists/* + +COPY requirements.txt /tmp/requirements.txt +RUN pip install --upgrade pip \ + && pip install --no-cache-dir -r /tmp/requirements.txt + +COPY /app /app +WORKDIR /app + +RUN useradd appuser \ + && chown -R appuser:appuser /app +USER appuser + +CMD ["python3", "app.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..134fc824 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +flask==3.0.0 ; python_version >= "3.10" and python_version < "4.0" +itsdangerous==2.1.2 ; python_version >= "3.10" and python_version < "4.0" +jinja2==3.1.2 ; python_version >= "3.10" and python_version < "4.0" +markupsafe==2.1.3 ; python_version >= "3.10" and python_version < "4.0" +werkzeug==3.0.0 ; python_version >= "3.10" and python_version < "4.0" \ No newline at end of file