From 8271937a6c56ed62ad1ddab2278a48f8c6a6c50e Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:42:39 +0530 Subject: [PATCH 01/10] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 184cba8..483fe9f 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ -

Welcome to My Beautiful Node.js Web Application ajin abraham

+

Welcome to My Beautiful Node.js Web Application ajin abraham...

This is my first Node.js application created on July 20, 08:5 AM.

My Image From 2ef2e0672fd58ec65ff88d676f12f69c8ef5aea8 Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:36:22 +0530 Subject: [PATCH 02/10] Delete package.json --- package.json | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 package.json diff --git a/package.json b/package.json deleted file mode 100644 index b0d12df..0000000 --- a/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "node-hello", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "start": "node index.js" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/johnpapa/node-hello.git" - }, - "keywords": [], - "author": "", - "license": "ISC", - "bugs": { - "url": "https://github.com/johnpapa/node-hello/issues" - }, - "homepage": "https://github.com/johnpapa/node-hello#readme" -} From 344e74de2d059a6a5184320dd602c006ae959ed5 Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:36:41 +0530 Subject: [PATCH 03/10] Delete package-lock.json --- package-lock.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 61b5dcb..0000000 --- a/package-lock.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "papa-node-hello-000", - "version": "1.0.0", - "lockfileVersion": 1 -} From 31078144e37e596a5dc9f8b09a2bca66527688cd Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:36:57 +0530 Subject: [PATCH 04/10] Delete index.js --- index.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 index.js diff --git a/index.js b/index.js deleted file mode 100644 index e38b7cc..0000000 --- a/index.js +++ /dev/null @@ -1,30 +0,0 @@ -const http = require('http'); -const fs = require('fs'); -const path = require('path'); - -const port = process.env.PORT || 3000; - -const server = http.createServer((req, res) => { - if (req.url === '/') { - // Serve the index.html file - const filePath = path.join(__dirname, 'index.html'); - fs.readFile(filePath, 'utf8', (err, data) => { - if (err) { - res.writeHead(500); - res.end('Error loading the page'); - } else { - res.writeHead(200, { 'Content-Type': 'text/html' }); - res.end(data); - } - }); - } else { - // Handle 404 - Not Found - res.writeHead(404); - res.end('Page not found'); - } -}); - -server.listen(port, () => { - console.log(`Server running on http://localhost:${port}/`); -}); - From c52c78271c9866868f7945a8e35a55b9665e287e Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:37:14 +0530 Subject: [PATCH 05/10] Delete index.html --- index.html | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 483fe9f..0000000 --- a/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - My Beautiful Node.js Web Application - - - -

Welcome to My Beautiful Node.js Web Application ajin abraham...

-

This is my first Node.js application created on July 20, 08:5 AM.

- My Image - - From 9ec97d5af98f3330bb6105aada1393726e1dfa5e Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:37:29 +0530 Subject: [PATCH 06/10] Delete deployment.yml --- deployment.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 deployment.yml diff --git a/deployment.yml b/deployment.yml deleted file mode 100644 index c2d6277..0000000 --- a/deployment.yml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/name: cicd-demo - app.kubernetes.io/instance: cicd-demo-instance - app.kubernetes.io/version: '1.0.0' - app.kubernetes.io/managed-by: kubectl - name: cicd-demo-deployment -spec: - replicas: 1 - selector: - matchLabels: - app: cicd-demo - template: - metadata: - labels: - app: cicd-demo - spec: - containers: - - image: 591802062023.dkr.ecr.us-east-1.amazonaws.com/mywebapprepo:latest - imagePullPolicy: Always - name: cicd-demo - ports: - - containerPort: 3000 - - From 795a7bfc50ad76b457a1caaf15ddf6628cf5a87b Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:38:22 +0530 Subject: [PATCH 07/10] Delete buildspec.yml --- buildspec.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 buildspec.yml diff --git a/buildspec.yml b/buildspec.yml deleted file mode 100644 index 7ca194c..0000000 --- a/buildspec.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: 0.2 - -# env: -# parameter-store: -# buildNumber: "/build-number/mycodebuild" - -phases: - pre_build: - commands: - - echo Logging in to Amazon ECR - - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com - build: - commands: - - echo Build started on `date` - - echo Building the Docker image. - - echo $CODEBUILD_BUILD_NUMBER - - docker build -t $IMAGE_REPO_NAME:$CODEBUILD_BUILD_NUMBER . - - docker tag $IMAGE_REPO_NAME:$CODEBUILD_BUILD_NUMBER $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$CODEBUILD_BUILD_NUMBER - post_build: - commands: - - echo Build completed on `date` - - echo Pushing the Docker image... - - docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$CODEBUILD_BUILD_NUMBER - - From ce87bd8a3b70da6cd689de77926c6f7b1db59f8e Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:38:42 +0530 Subject: [PATCH 08/10] Delete Dockerfile --- Dockerfile | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 51e5d98..0000000 --- a/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -# Use the official Node.js 14 image as the base image -FROM node:14 - -# Set the working directory in the container -WORKDIR /app - -# Copy the package.json and package-lock.json files to the container -COPY package*.json ./ - -# Install the dependencies -RUN npm install - -# Copy the rest of the application code to the container -COPY . . - -# Expose the port your application listens on -EXPOSE 3000 - -# Start the application -CMD [ "node", "index.js" ] From 7684dae2bfb759127dd57982d1fa7700552f66bc Mon Sep 17 00:00:00 2001 From: Ajin Abraham <105640840+ajin009@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:38:52 +0530 Subject: [PATCH 09/10] Delete .prettierrc --- .prettierrc | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 3f8d299..0000000 --- a/.prettierrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "bracketSpacing": true, - "printWidth": 80, - "singleQuote": true, - "tabWidth": 2, - "trailingComma": "all", - "useTabs": false -} From 2fded958438006afbd26ddffb264b0e776ad5339 Mon Sep 17 00:00:00 2001 From: ajin-abraham Date: Thu, 10 Aug 2023 16:16:38 +0530 Subject: [PATCH 10/10] testing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 823f360..f54f61c 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ Great for testing simple deployments to the cloud.----- --- - + testing