From a10029af983fa626353e96e97d01c3fca2399c88 Mon Sep 17 00:00:00 2001 From: manoj kumar Date: Fri, 16 May 2025 16:06:23 +0530 Subject: [PATCH 1/5] modified --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8434dfa..6ab8320 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# hello-python +# hello-python1 Very simple hello world python Flask application. From 38543a4caedbe1b5c470f6ddeb622b06de47ca54 Mon Sep 17 00:00:00 2001 From: manoj kumar Date: Fri, 16 May 2025 16:15:07 +0530 Subject: [PATCH 2/5] modifiedagain --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ab8320..cae4549 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# hello-python1 +# hello-python11 Very simple hello world python Flask application. From 8e8c5354207d27c58aa81cd648aaa86664325e56 Mon Sep 17 00:00:00 2001 From: manoj kumar Date: Fri, 16 May 2025 16:19:00 +0530 Subject: [PATCH 3/5] modified1 --- python_code | 1 + 1 file changed, 1 insertion(+) create mode 160000 python_code diff --git a/python_code b/python_code new file mode 160000 index 0000000..ed51380 --- /dev/null +++ b/python_code @@ -0,0 +1 @@ +Subproject commit ed51380654bf65186c1e2d2eedc53a85d274e8eb From 13948528704e93cefabbf580d147bf272b8f16f9 Mon Sep 17 00:00:00 2001 From: manoj kumar Date: Thu, 22 May 2025 13:02:47 +0530 Subject: [PATCH 4/5] changes --- docker/pipeline.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker/pipeline.yaml diff --git a/docker/pipeline.yaml b/docker/pipeline.yaml new file mode 100644 index 0000000..b79a24b --- /dev/null +++ b/docker/pipeline.yaml @@ -0,0 +1,34 @@ +name: Docker Image java + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + +- name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + +- name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: username/myapp:latest + From 262da470e5f144bc9c33ba087f306433e8c4eaac Mon Sep 17 00:00:00 2001 From: manoj kumar Date: Thu, 22 May 2025 13:23:16 +0530 Subject: [PATCH 5/5] changes --- app/main.py | 9 --------- app/requirements.txt | 1 - docker/Dockerfile | 9 --------- docker/pipeline.yaml | 34 ---------------------------------- kubernetes/deployment.yaml | 32 -------------------------------- python_code | 2 +- 6 files changed, 1 insertion(+), 86 deletions(-) delete mode 100644 app/main.py delete mode 100644 app/requirements.txt delete mode 100644 docker/Dockerfile delete mode 100644 docker/pipeline.yaml delete mode 100644 kubernetes/deployment.yaml diff --git a/app/main.py b/app/main.py deleted file mode 100644 index 5aff7f2..0000000 --- a/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello from Python!" - -if __name__ == "__main__": - app.run(host='0.0.0.0') diff --git a/app/requirements.txt b/app/requirements.txt deleted file mode 100644 index 2077213..0000000 --- a/app/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -Flask \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index ce620c2..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM python:3.7 - -RUN mkdir /app -WORKDIR /app -ADD . /app/ -RUN pip install -r requirements.txt - -EXPOSE 5000 -CMD ["python", "/app/main.py"] \ No newline at end of file diff --git a/docker/pipeline.yaml b/docker/pipeline.yaml deleted file mode 100644 index b79a24b..0000000 --- a/docker/pipeline.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: Docker Image java - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - -- name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - -- name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: username/myapp:latest - diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml deleted file mode 100644 index fdaeb8e..0000000 --- a/kubernetes/deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: hello-python-service -spec: - selector: - app: hello-python - ports: - - protocol: "TCP" - port: 6000 - targetPort: 5000 - type: LoadBalancer - - ---- -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - name: hello-python -spec: - replicas: 4 - template: - metadata: - labels: - app: hello-python - spec: - containers: - - name: hello-python - image: hello-python:latest - imagePullPolicy: Never - ports: - - containerPort: 5000 diff --git a/python_code b/python_code index ed51380..69f6f48 160000 --- a/python_code +++ b/python_code @@ -1 +1 @@ -Subproject commit ed51380654bf65186c1e2d2eedc53a85d274e8eb +Subproject commit 69f6f485e61bdfab705625f42bc1e59f72a960e8