ElasticSearch - Update a document and change value of a key
Thanks for reading.
March 03, 2018
I have been using drupal 7 from a long time, and setting up a dev environment always felt bit tricky. Thanks to docker, life becomes easier now.
In this post, I will show how I setup my drupal 7 environment from my production environment. And, do any development work.
And, I have taken backup from mariadb running. I will use this backup in next steps.
Also, you can set a custom password for your database as well. ReplaceMYMYSQLPASSWORD with the desired password.
Till now, I have not imported database yet.
It should start three container. You can see these three by running docker ps command.
These steps you have to do first time only.
Now, open localhost:8084, where we have configured phpmyadmin to open up.
All of the above steps needs to be done only once. Every time, you want to start your stack, you need to run following command:
docker-compose up -d
And, to stop stack:
docker-compose down
Note, by stopping stack. All of your drupal file changes, database changes, theming changes will remain. Since, we have passed the local disk paths.
Everytime, you start the stack, you will get all the changes from last time.
Enjoy.
Thanks for reading.
Introduction This post is about hosting ElasticSearch cluster on dockerised…
While doing code review of one of junior, I encountered following code: What…
Introduction In Azure, assuming you are having a storage container. And, you…
This article shows some of common usages of JIRA rest apis. Note: This article…
This will take backup of your passed database name, to the passed folder. It…
In this post, we will see some of the frequently used concepts/vocabulary in…
System design interview is pretty common these days, specially if you are having…
Introduction You are given an array of integers with size N, and a number K…
Graph Topological Sorting This is a well known problem in graph world…
Problem Statement Given a Binary tree, print out nodes in level order traversal…
Problem Statement Given an array nums of n integers and an integer target, are…