From a0d36a14de633c4017b3c8d056ae3f7bf50870eb Mon Sep 17 00:00:00 2001 From: ssamu801 Date: Wed, 6 Mar 2024 17:02:13 +0800 Subject: [PATCH 1/2] midterms answers --- manuel_question1.md | 1 + manuel_question2.md | 18 ++++++++++++++++++ manuel_question3.md | 8 ++++++++ 3 files changed, 27 insertions(+) create mode 100644 manuel_question1.md create mode 100644 manuel_question2.md create mode 100644 manuel_question3.md diff --git a/manuel_question1.md b/manuel_question1.md new file mode 100644 index 0000000..34745ce --- /dev/null +++ b/manuel_question1.md @@ -0,0 +1 @@ +An effective DevOps workflow involves planning, coding, testing, deploying, and monitoring. Developers use tools like Git and project management platforms for coding and planning. Continuous Integration (CI) servers automatically test code changes, while Continuous Delivery (CD) automates deployment to testing environments using tools like Docker. Deployment to production is managed by automation scripts and tools like Ansible or Kubernetes. Continuous monitoring of performance and feedback loops drive iterative improvements, ensuring efficient and reliable software delivery. \ No newline at end of file diff --git a/manuel_question2.md b/manuel_question2.md new file mode 100644 index 0000000..3fa438c --- /dev/null +++ b/manuel_question2.md @@ -0,0 +1,18 @@ +FROM centos:7 + +RUN yum update -y && \ + yum install -y mysql-server && \ + yum clean all + +RUN systemctl enable mysqld.service + +RUN systemctl start mysqld && \ + mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'your_password';" && \ + mysql -e "CREATE DATABASE your_database;" && \ + mysql -e "GRANT ALL PRIVILEGES ON your_database.* TO 'your_user'@'localhost' IDENTIFIED BY 'your_password';" && \ + mysql -e "FLUSH PRIVILEGES;" && \ + systemctl stop mysqld + +EXPOSE 3306 + +CMD ["mysqld_safe"] \ No newline at end of file diff --git a/manuel_question3.md b/manuel_question3.md new file mode 100644 index 0000000..14ac64e --- /dev/null +++ b/manuel_question3.md @@ -0,0 +1,8 @@ +Advantages of Docker: +1. Docker containers run consistently on any system with Docker, regardless of the underlying operating system. This makes applications easy to move between development, testing, and production environments. +2. Each Docker container runs in isolation, with its own processes and file system. This prevents conflicts between applications and ensures consistent behavior. +3. Docker allows building and deployment of applications quickly and easily. Changes can be packaged in containers and deployed to production with minimal downtime. +Benefits of DevOps Framework: +1. DevOps breaks down silos between development and operations teams, fostering better communication and collaboration. +2. By automating tasks and streamlining processes, DevOps enables faster and more frequent application releases. +3. DevOps practices like continuous integration and continuous delivery (CI/CD) help identify and fix bugs earlier, leading to higher quality applications. \ No newline at end of file From 4606611de126ac28719cde2f8219b9315c91ce35 Mon Sep 17 00:00:00 2001 From: ssamu801 Date: Wed, 6 Mar 2024 17:09:09 +0800 Subject: [PATCH 2/2] midterms answers --- manuel_question3.md | 1 + 1 file changed, 1 insertion(+) diff --git a/manuel_question3.md b/manuel_question3.md index 14ac64e..a23b070 100644 --- a/manuel_question3.md +++ b/manuel_question3.md @@ -2,6 +2,7 @@ Advantages of Docker: 1. Docker containers run consistently on any system with Docker, regardless of the underlying operating system. This makes applications easy to move between development, testing, and production environments. 2. Each Docker container runs in isolation, with its own processes and file system. This prevents conflicts between applications and ensures consistent behavior. 3. Docker allows building and deployment of applications quickly and easily. Changes can be packaged in containers and deployed to production with minimal downtime. + Benefits of DevOps Framework: 1. DevOps breaks down silos between development and operations teams, fostering better communication and collaboration. 2. By automating tasks and streamlining processes, DevOps enables faster and more frequent application releases.