Coder Social home page Coder Social logo

drupal-mysql's Introduction

Drupal-MySQL

IIEC Docker Project using drupal and mysql

This is a multi-container docker application using drupal and MySQL.

What is docker?

Docker is a software platform for building applications based on containers โ€” small and lightweight execution environments that make shared use of the operating system kernel but otherwise run in isolation from one another. While containers as a concept have been around for some time, Docker, an open source project launched in 2013, helped popularize the technology, and has helped drive the trend towards containerization and microservices in software development that has come to be known as cloud-native development.

What is Drupal?

Drupal is a free and open-source content-management framework written in PHP and distributed under the GNU General Public License. It is used as a back-end framework for at least 2.1% of all Web sites worldwide ranging from personal blogs to corporate, political, and government sites including WhiteHouse.gov and data.gov.uk. It is also used for knowledge management and business collaboration.

What is MySQL?

MySQL is the world's most popular open source database. With its proven performance, reliability and ease-of-use, MySQL has become the leading database choice for web-based applications, covering the entire range from personal projects and websites, via e-commerce and information services, all the way to high profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more.

Steps to create this multicontainer application.

1 Prerequisites

  • This project is completely done on RHEL(Red Hat Enterprise Linux).
  • Install docker on the os using the cmd yum install docker.
  • Install docker-compose using the below cmd:

curl โ€“L"https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

2 Start the Docker Service

  • Use systemctl start docker to start Docker Service.

3 Download the required images:

  • Pull MySQL Image:

    Use docker pull mysql:5.7 to download the mysql version 5.7 image to use as a database server.

  • Pull Drupal Image:

    Use docker pull drupal:8-apache to download the drupal Image in which apache server is preconfigured.

    alt text

4 Docker-Compose

  • Create a docker-compose file with yml extension using vim docker-compose.yml
  • The yml file is

alt text

5 start Docker-compose:

  • Use docker-compose up -d to start the docker-compose service in detach mode.

alt text

6 Start the Drupal Service

  • Open the web browser and type the ip address with port number. In my case it is 192.168.122.1:8080.

alt text

7 stop the docker-compose

  • Use docker-compose stop to stop the docker-compose service.

alt text

References:

To learn docker-container technology from scratch.

Youtube link (https://www.youtube.com/playlist?list=PLAi9X1uG6jZ30QGz7FZ55A27jPeY8EwkE)

drupal-mysql's People

Contributors

anandhukrishna1998 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.