From 4506b1f2f4f61dc2c189caf0e82703b8e9d74b1c Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Sun, 26 May 2024 20:56:08 +0530 Subject: [PATCH 1/8] Create Dockerfile --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..9807314f8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu +RUN apt update +RUN apt install apache2 -y +ADD . /var/www/html/ +ENTRYPOINT apachectl -D FOREGROUND From a75c5e33dea57a3c9e6e9e54686503b375362ce8 Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Sun, 26 May 2024 21:14:35 +0530 Subject: [PATCH 2/8] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 19c25caa0..fd239e6a6 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,6 @@ Intellipaat -

Hello world!

+

Hello world from Develop branch

From 75f828c03cf788b756a066253c6eec59a186876d Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Sun, 26 May 2024 21:16:07 +0530 Subject: [PATCH 3/8] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index fd239e6a6..1a18912a7 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,6 @@ Intellipaat -

Hello world from Develop branch

+

Hello world from Develop branch again

From 1af000c9c101b22aa2ab44e15daa974fe8fe214b Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Wed, 29 May 2024 23:39:26 +0530 Subject: [PATCH 4/8] Create deployment.yaml --- deployment.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 deployment.yaml diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 000000000..64cf4ad3d --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment + labels: + app: nginx +spec: + replicas: 2 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: myproj + image: ashwathy/project2 + ports: + - containerPort: 80 From 641067f662d905d995adafdeb6e6aad169184c27 Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Wed, 29 May 2024 23:44:36 +0530 Subject: [PATCH 5/8] Create service.yaml --- service.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 service.yaml diff --git a/service.yaml b/service.yaml new file mode 100644 index 000000000..ea6e7849c --- /dev/null +++ b/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: my-service +spec: + type: NodePort + selector: + app: nginx + ports: + - port: 80 + targetPort: 80 + nodePort: 30008 From 0e08790426b6b16aff92d199e4f9673b417683de Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Wed, 29 May 2024 23:55:26 +0530 Subject: [PATCH 6/8] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1a18912a7..852227019 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,6 @@ Intellipaat -

Hello world from Develop branch again

+

Hello world from Master Branch

From 952caf3252ec6e696ab7e674fc92916ab7194161 Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:04:02 +0530 Subject: [PATCH 7/8] Create Important --- Important | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Important diff --git a/Important b/Important new file mode 100644 index 000000000..ef4aa4d60 --- /dev/null +++ b/Important @@ -0,0 +1,3 @@ +#sudo docker rm -f c1 +sudo docker build /home/ubuntu/jenkins/workspace/Job -t job +sudo docker run -itd -p 83:80 --name=c1 job1 From e74b1b28198c3c66ce2078b813f37b1578541aa9 Mon Sep 17 00:00:00 2001 From: Ashwathy Jairaj <43380953+tomboy98@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:10:05 +0530 Subject: [PATCH 8/8] Update Important --- Important | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Important b/Important index ef4aa4d60..2ac920420 100644 --- a/Important +++ b/Important @@ -1,3 +1,3 @@ #sudo docker rm -f c1 sudo docker build /home/ubuntu/jenkins/workspace/Job -t job -sudo docker run -itd -p 83:80 --name=c1 job1 +sudo docker run -itd -p 83:80 --name=c1 job