Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# # Use the official Nginx image as a base
# FROM nginx:1.25

# # Create a non-root user and switch to it
# RUN addgroup --system nginx && adduser --system --ingroup nginx nginx
# USER nginx

# # Copy your custom configuration or HTML files if needed
# COPY --chown=nginx:nginx index.html /usr/share/nginx/html/

# # Expose port 80
# EXPOSE 80

# # Start Nginx
# CMD ["nginx", "-g", "daemon off;"]

# Use the official Nginx image as a base
FROM nginx:1.25

# Copy the index.html file to the default Nginx web directory
COPY index.html /usr/share/nginx/html/

# Expose port 80
EXPOSE 80

# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
4 changes: 4 additions & 0 deletions giri.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
this is a new file
i have inserted something new line in this file
thank you
changes happen
81 changes: 51 additions & 30 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,57 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sample Deployment</title>
<style>
body {
color: #ffffff;
background-color: #007f3f;
font-family: Arial, sans-serif;
font-size: 14px;
}

h1 {
font-size: 500%;
font-weight: normal;
margin-bottom: 0;
}

h2 {
font-size: 200%;
font-weight: normal;
margin-bottom: 0;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deployment Success</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
h1 {
font-size: 50px;
margin: 10px 0;
}
p {
font-size: 20px;
}
.container {
background: rgba(255, 255, 255, 0.1);
padding: 20px 40px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.button {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
font-size: 18px;
color: white;
text-decoration: none;
background: #ff7e5f;
border-radius: 5px;
transition: 0.3s;
}
.button:hover {
background: #feb47b;
}
</style>
</head>
<body>
<div align="center">
<h1>Congratulations!</h1>
<h2>You have successfully created a pipeline that retrieved this source application from an Amazon S3 bucket and deployed it
to three Amazon EC2 instances using AWS CodeDeploy.</h2>
<p>For next steps, read the AWS CodePipeline Documentation.</p>
</div>
<div class="container">
<h1>🚀 Deployment Successful! 🎉</h1>
<p>I am Girivelan and I have created the codepipeline using EC2 and has been successfully deployed.</p>
<a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/welcome.html" class="button" target="_blank">Learn More</a>
</div>
</body>
</html>