Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

midterms answers #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions manuel_question1.md
Original file line number Diff line number Diff line change
@@ -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.
18 changes: 18 additions & 0 deletions manuel_question2.md
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions manuel_question3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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.