Last weekend, 28th June we had 5th Bangalore Docker meetup at Shippabale. Over the last few weeks we worked on the agenda and finalized on following :-
1. Dockercon Report - Neependra Khare, Red Hat
Dockercon is scheduled on 9th-10th June’14. If anyone of us attending Dockercon then he/she can share his/her experience. Else we’ll try to look at the Dockercon videos, blogs etc and attempt to summarize it.
2. Hands-on with DockerFiles - Ramchandra Palekar, ElasticScalability
3. Demo of cAdvisor - Himanshu Roy, Red Hat
This time we were not able to do “Hands-on with DockerFiles” , so it would be scheduled for next meetup.
~20-25 people attended the meetup. Some of the participants came from Chennai to attend the this meetup. ~40% of them were new to Docker, so along with my session I gave an overview of Docker as well. In my session I mostly summarized Dockercon keynotes .
After my session Himanshu gave a demo of cAdvisor, Though we were not able to see per container stats but overall stats were nicely shown on the browser. I think this is very useful tool and would use it regularly.
During my session I also share the coupon code which @vcoisne gave me, through which one setup few private repositories in Docker Hub for free.
There have been lots of questions during the session so it very interactive. Chennai guys seems interested in starting a Docker meetup group in Chennai and I heard that a Docker meetup group in coming in Mysore as well. We also decided to have short (15 – 20 mins) Docker Intro talk in few upcoming meetups, which would help new folks to understand other talks in the meetup.
We tried to live-stream the meetup but due to some issue there was no audio. Anyways next time we’ll to do better in that front.
- Issues faced while deploying Docker in production by Ragesh (@ ) from Shippable
- Dry run of my Dokcer workshop @rootconf
Though there were less attendees in that meetup, we had good interaction.
Later in that week Rohit pinged us and suggested to talk on “Resource isolation in Docker ” as he is visiting India. We did not want to miss the chance to hear from him so organized the second meetup of May.Later he agreed to talk on “Docker Internals”. I thought it would be good idea to have some introductory on Go language, so reached out #golang Bangalore G+ community to find out a speaker. Shivakumar GN agreed to take that up. Also Roshan volunteered to talk on Chef and Docker. With that we had following agenda :-
This time participation was better. ~40 people attended the meetup.
We also tried to live stream and record the video. Though quality was not that great but a good start .
We plan to do more hands on with #docker and #golang in future meetups.
We had second Bangalore Docker meetup @ Red Hat Office on 22nd Feb’14. ~65 people registered for the event though only 40 – 45 people turned up, which I think is pretty good.
We started the session with a round of introduction from everyone. Not many attendees used Docker before, so I hope the sessions were help for them.
Vijay Bellur started the session by giving an overview on of Red Hat and Docker and how Red Hat is planning to integrate Docker with GlusterFS, OpenShift Origin and RDO (Red Hat OpenStack).
Next session was from Vamsee Kanakala Introduction to Docker. It was very information and gave very good overview of Docker
Venky Shankar then gave quick and nice Demo. He covered basic Docker commands like how to get the image, start a container, commit it etc. After Venky’s talks Gawtham Sadasivam shared his experience to create a docker file.
At the end we had some snacks and open discussion. Thanks a lot for Docker team for sending Docker T-shirts for speakers and stickers for everyone.
I hope everyone learnt something new during the meetup. Hope to have next meetup soon.
$ yum install docker-io -y $ systemctl enable docker.service ln -s '/usr/lib/systemd/system/docker.service' '/etc/systemd/system/multi-user.target.wants/docker.service' $ systemctl start docker.service $ docker version Client version: 0.7.6 .. Server version: 0.7.6
and then started a Fedora container
$ docker run -i -t mattdm/fedora /bin/bash
Once I am inside the container I installed GlusterFS packages
bash-4.2# yum install glusterfs glusterfs-server -y
And then tried to create volume
bash-4.2# /usr/sbin/glusterd bash-4.2# gluster volume create vol 172.17.0.3:/mnt/brick/ force
but I got following error:-
volume create: vol: failed: Glusterfs is not supported on brick: 172.17.0.3:/mnt/brick. Setting extended attributes failed, reason: Operation not permitted.
From above error it looked as setting up extended attributes are not supported, which is a basic need to use GlusteFS. So I tried to test them manually. I was able to set extended attributes in user namespace but not in trusted namespace.
bash-4.2# yum install attr -y bash-4.2# setfattr -n user.foo1 -v "bar" a bash-4.2# touch a; setfattr -n trusted.foo1 -v "bar" a setfattr: a: Operation not permitted
With some internet search I figured out that CAP_SYS_ADMIN is needed for setting up extended attributes in trusted namespace and to get that inside docker we need to run an image with –privileged=true option like
$ docker run --privileged=true -i -t mattdm/fedora /bin/bash
With that I was able to create the volume and start it
bash-4.2# gluster volume create vol 172.17.0.3:/mnt/brick/ force bash-4.2# gluster volume start vol
But when I tried to mount the volume I got following error:-
E [mount.c:267:gf_fuse_mount] 0-glusterfs-fuse: cannot open /dev/fuse (No such file or directory)
this turned out to be image specific problem, which I am using (mattdm/fedora). I had to mknod for /dev/fuse
bash-4.2# mknod /dev/fuse c 10 229
and after that I was able to mount volume.
On Fedroa 20 for docker version 0.7.6 the default storage driver for docker is device-mapper on which extended attributes are supported. AUFS storage driver does not support extended attributes as of now.I have tried with btrfs storage driver with docker 0.8 as well and was able to use GlusterFS. To use btrfs storage driver, we need to start docker daemon with following command :-
$ docker -d -s btrfs
Above will only work if Docker is running on a btrfs partition already prepared by the host system.
In last week of our course Understanding Media by Understanding Google we have to answer question similar to mentioned above. Here is my take on that:-
We love convenience !! We are always willing to pay something extra for it. The payment we make may, not be the direct one. Lets say you want to have pizza at home on a rainy day and you following options :-
- Cook yourself
- You like pizza from shop A but it does not do home delivery
- Order a pizza from the shop B, which provides OK kind of pizza but do free home delivery.
For simplicity lets assume cost of each of the above option is same. Given the above choices most of us, including myself going to opt of the 3rd options because :-
- We’ll get pizza at home without doing addtional work.
- No need to take a break from on-going activity like watching football/baseball etc to cook or drive to the shop.
- No need to pay extra money.
By ordering pizza from shop B, we are compromising the on the quality and bit on our taste. This is an indirect price we are paying for the convenience. On the internet lets try to compare this indirect price with :-
- Increased data collection and sharing by internet giants.
- decrease in anonymity.
- loss of personal touch with friends, relatives.
In 21st Century, due to high demanding work, traffic, choices etc; I think it is worth paying some indirect price for the convenience we are getting. We save time, money which are two of the most important things which improve life in 21st Century. As mentioned by Jeff Jarvis in Economist Debate on Social Networking “We are sharing for good reason—not because we are insane, exhibitionistic, or drunk. We are sharing because, at last, we can, and we find benefit in it.”
Until we are just paying limited indirect price we would be able to make perfect balance in our public and private life. The problem starts when we become greedy and start ordering pizzas from some low standard shops which charges less money and deliver at home. This would eventually kill our taste and we would forget the original joy of having the pizza. Similar thing applies on what we share on the internet. We just be careful on what we share !!.
In second last week of our course Understanding Media by Understanding Google we have to answer question similar to mentioned above. Here is my take on that.
Lets say our referred in the question is me. While at work or otherwise when I am engaged with my primary activity I do Google searches and browse the internet to somehow enhance and deepen my understand with it. Here is my observation :-
- About 70% of the time that would help me to finish my primary activity or job quickly like finding howto instructions to setup a development environment etc.
- For rest 30% of the it can’t help like stop a crying a baby.
Because of our high success rate we hope to find every answer on the internet even when our primary activity has more to do with personal relations, friends. Other than high success rate we get answers within few minutes, even if we have to skim through multiple search results. This increases our expectation at all fronts of life. And we end up :-
- doing multitask.
- having urge to be connected with internet all the time.
- not paying attention to content of one link as we want to skim through more.
- responding to non-urgent stuff urgently like FB post, chat pings.
- not paying enough attention to the person in front of us.
As mentioned in Joe Kraus video our mind is not designed to do multitask as computers and we are 40% less productive if we do so. I think this true in most of the cases. Only is very few cases context switching between multiple things/work helps and we have to careful when we do that. On the contrary all the internet giants are trying to make internet as part of everyday. They are urging you keep connected all the time. Because this means business as mentioned in Nicholas Carr, “Is Google Making Us Stupid? article.
Clearly the choice is ours and we shouldn’t use the technology at the cost of personal relation.
One more week is gone and this week as part of assignment for Understanding Media by Understanding Google we need to explicitly rank YouTube’s impact in these three areas – politics, culture, news and then explain our choice for the area we believe to have been most affected. Here is my take on that:-
I live in India and as per my opinion YouTube’s impact us (in India) in following areas in descending order:-
- News and Politics
Culture is a very broad term. It can be considered as group of people or society bound by :-
- social behavior
Now if in every second, more than one hour of video is uploaded on YouTube and with over 6 billion hours of videos watched each month , a niche culture is getting created every part of the World. Again this aligns with Google’s goal to serve the long tail. India is no exception here. If we look at the YouTube channels for India then we’ll see following :-
- Best of YouTube
- Films and Entertainment
- Beauty and Fashion
- From TV
- How-to and DIY
- Science and Education
- Cooking and Health
- Causes and Non-Profit
- News and Politics
Inside each of these categories there are many sub-channels. From the definition of culture we can consider each of these categories as a type of culture. I am sure each one of us would be part of one or more types. I personally visit YouTube for Music, Tech, Science and Education and News often. As far as I know most of friends and family members visit channels from one or more categories.
From the above I can say that YouTube’s imapct on culture in the most.
Also from the above list News and Politics is a sub-category and can keep them in same bucket. If we look at the trend dashboard for India :-
we do not see many people are interested in following News and Politics on YouTube.
Last weekend I did Cruise to the Coast ride with CAM. We cycled through Bhagamandala – Bekalfort – Kasargod – Jalsoor and covered ~130 kms. We started from Bangalore on Friday (4th Oct) night and reached Bhagamandala at 5 AM on Saturday. Then after couple of hours of rest we started cycling to Bekal Fort. We followed http://goo.gl/maps/dDFtN route.
On the way we saw many waterfalls. Both sides of the roads there were just trees. I maintained distance from other cyclist most of the time. It was like I was alone on the road. All the nature beauty was just for me. While cycling I can see yellow butterflies on the roads, like they were welcoming us. I used to see and play with them in my childhood. I almost forgot that there are such butterflies.
Most of cycling we did in Kerla state and I must mention that the people/govt. has tried to keep it green and clean. Some houses on the way were very beautiful. They had very good wood work. Some houses even had their own water well. I know this sound stupid to mention but I have seen them since ages.
On they way be Bekal Fort it started raining. I cycled around ~20 kms during that. It was such a great feeling. I even tasted the rain water which got mixed with my sweat. It was sweet ..:).
I reached at Bekal Fort ~3 PM. After spending some time there we headed to our hotels. Second day we started at 7 AM cycled from Kasargot to Jalsoor, which was around 50 kms. We followed http://gooaps/oOx8c route.
We reached to Jalsoor around 11:30 AM and started our journey back at ~12:30 PM. We reached Bangalore ~10:30 PM.
During the ride people greeted us, kids have us high five. Kids kept asking “Whats your name” and “Where are you going”.
Overall it was fun ride. I made some new friends and hope to keep in touch with them.
As mentioned in the previous blog post I have been doing Understanding Media by Understanding Google course on Coursera and as part of second peer graded assignment I have to log the next 20 ads I encounter from Google, whether as the result of a search on google.com or through one of its partner sites and summarize what those ads get right about me and my interests, including at least one example, and what you believe they get wrong.
So I logged them and here they are:-
and to summarize.
- am male
- am married
- reside in Bangalore, India
- work for a Linux based company
- Interested in cloud technology
- have been searching for training in hadoop and a cars using Google
- have been searching for books in flipkart
- fly often
- do banking
- buy consumer goods
From the above list following advertisements are right about me and my interests :-
- Consumer Electronics
- Air Travel Agent
- Online retailer
- Cloud Product
- Online yellow pages
- Car dealer
Following advertisements are somehow interest me :-
- Hardware Vendor (Dell)
- Real State
- Greetings, Gifts
Following advertisements do not interest me and are wrong :-
- Matrimony (as I am already married)
- Forex Trading
If I look at the advertisement more closely then just on one page I am seeing ads about real estate, travel, retailer, matrimony, gifts. Just look how commercial a web page has become. And on top that we now see ads based on personal needs, preferences. This is what can be called as serving the long tail. Web companies are collecting more and more data about us and we giving them for free. But the web companies are charging their advertiser aka our seller.
I have been doing Understanding Media by Understanding Google course on Coursera and as part of first peer graded assignment we have to write about “Is Google’s intention to digitize all the world’s books a good thing or a bad thing, and for whom? “. Here is my take on it :-
Imagine if every book in the world is digitized then we can:-
- search books as we search publicly accessible web pages today without paying any fee. This will enable us to access books from anywhere with different devices, choose best possible book etc.
- give access of same knowledge base to everyone irrespective to country, income level.
- increase the visibility and life span of books by linking/tagging them and creating conversation around them.
- collaborate more easily, which can put seed for new ideas.
- get access to out of print books.
As mentioned by Jeff Jarvis in “The Google Times”, that we need to kill books to save them and above points support it. Other than the authors of out of print books who want their work to reach more people, a general user like me/us would get benefited by digitization of books from Google.
But wait !!! everything comes at a cost. Google is a publicly traded company and it has to make profit to keep its investors happy. As per Siva Vaidhyanathan lecture, “Google, Digitization, and the Future of Books” and from some his other work :-
- neither Google nor the publishers guarantee to protect user privacy when using the Google Books site.
- we would loose the personal touch which we get librarians.
- digitization of books can lead to privatization of libraries.
- the quality of the scanning is not good enough.
- with digitization of books Google is trying to make its search better.
By making its search better Google is effectively increasing revenue. Also there is no guarantee that based on user private data, Google would not show sub-optimal results with search; to benefit its Ad sponsors. This is bad for the user. After digitization of a book Google can sell it online to make money from someone else’s work, which is bad for the original author.