GithubHelp home page GithubHelp logo

cloud-1's Introduction

Automation Deployment using Ansible

Rules
• Your site can restart automatically if the server is rebooted.
• In case of reboot all the data of the site are persisted (images, user accounts, articles, ...).
• It is possible to deploy your site on several servers in parallel.
• The script must be able to function in an automated way with for only assumption an ubuntu 20.04 LTS like OS of the target instance running an SSH daemon and with Python installed.
• Your applications will run in separate containers that can communicate with each other (1 process = 1 container)
• Public access to your server must be limited and secure (for example, it is not possible to connect directly to your database from the internet).
• The services will be the different components of a WordPress to install by yourself. For example Phpmyadmin, MySQL, ...
• You must have a docker-compose.yml.
• You will need to ensure that your SQL database works with WordPress and PHPMyAdmin.
• Your server should be able, when possible, to use TLS.
• You will need to make sure that, depending on the URL requested, your server redirects to the correct site.

Some useful command lines...

  1. Vagrant cli - vagrant init - vagrant up - vagrant ssh - vagrant halt - vagrant destroy

  2. Ansible cli - ansible-galaxy init 'project_name' - ansible-playbook -i 'inventory_name' 'playbook.yml'

  3. Docker cli - docker logs 'container_name' - docker exec -it 'container_name' 'command' - docker restart 'container_name'

Tips for the project :)

  1. Create ansible rollback playbook
  2. Find Vagrant ssh key
  3. Understand web server, proxy server
  4. Watch out for Docker volumes and understand how they're used
  5. Try out different ways of writing dockerfile commands
  6. Install dependencies for services (Check their official websites)
  7. Know that php works as a server
  8. Before dockerfile, try commands(to install, setup etc) on terminal to verify if it works
  9. Configuring is a key
  10. Test and Debug!

cloud-1's People

Contributors

suhyeonahn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.