Pravar Agrawal Technology & Travel

Travis CI

Continuous Integration & Delivery is an important aspect of DevOps methodology. It is surely a process which comes as a part of the whole DevOps cycle and many people misunderstand it for a simple deployment procedure. I’ve seen lot of projects saving time by correctly and effectively implementing their CI/CD flow. In recent past, I got a chance to work on one such CI/CD tool Travis CI and here is my experience with it.

Rootconf Hyderabad

Attending a Rootconf has always been on my list ever since I attended a workshop on TOR at HasGeek office earlier this year. In the month of August, I came to know about the Hyderabad edition of RootConf scheduled later this year in November. Rootconf is all about discussing latest tech in the areas like DevOps, SRE, Distributed Systems and of course meeting some new people from the industry. This really helps in understanding how the variety of available tools are being used in different scenarios at various organizations.

My CKA Preparation

Recently I appeared for my CKA(Certified Kubernetes Administrator) certification, after a year of lingering over exam dates. And I’m glad that I cleared it in the first attempt. In this post, I’ll be sharing my experience starting from the exam format and preparation. I bought the certificate exam around last year during Black Friday sale by CNCF and it cost me almost $160 for the whole bundle including exam and training course.

Pycon India 2019 - A Visit

Although this post is coming almost a month after, the memories are still so fresh. “Came for the language, stayed for the community” - I have heard it before and read it over couple of t-shirts as well. But realized the power of that statement at this year’s PyCon-India 2019. This year, PyCon India was scheduled to be in Chennai from October 12-15th, including conferences, dev-sprints & workshops. Since, it was my first PyCon ever I bought the tickets as soon as they were out in June earlier this year.

Add Busybox to Container

While working on the kubernetes, few times we run into a situation where we need to access the shell inside a pod’s container. And to do that we use, $ kubectl exec -it <pod_name> -- /bin/sh #/ In this case, as we have invoked the already existing shell so the access works like a butter. But, what if there is no /bin/sh in the container? The easiest way to do that is to copy the busyboxexecutable into a container at the build time.

Python Learning Part 5

Continuing from my last post on handling exceptions in Python, I’ll be ndiscussing on Classes today. Classes, are a level of abstraction in Python which can be used to give structure to our programme. Which in-turn results in neat and clean definition of functions inside it. In Python, we define a class in the following way, >>>class ClassName(parent_class): statement 1 statement 2 statement 3 In the statements, we can define any variables or class methods for example,

Python Learning Part 4

In our last post we have discussed about looping techniques, data structures in Python. In this post we’ll take a look at Functions, File Handling and Exceptions in Python. Functions, are a block of code which are reusable throught our programme and can be called upon whenever required. We need to define functions to use them like, >>> def function_name(): print("This is just a function") >>> call_function = function_name() This is just a function Functions can be with or wihtout parameters.

Python Learning Part 3

In our last post, we left while discussing looping techinques in Python. Today, we’ll continue with discussing on For loops and their uses in Python programming language. In Python, the for statement works differently then in C. Here for statement, iterates over a sequence of items which can be a list or a string. Like, >>> x = ['Ball', 'Bat', 'Cat'] >>> for i in x: print(i) We also have continue statements in Python, which skips the execution of code after it and goes back to the start.

Python Learning Part 2

In last post we discussed on some features of Python and getting started with it. Continuing from last time, we’ll look at some more super cool features of Python today. Python gives us feasibility to assign multiple variables in a single line. Following example explains it better, >> a, b = 45, 54 This single line assignment of multiple variables is based upon a data-type called tuple in Python. We use comma to create a tuple.

Python Learning Part-1

I will be posting a series of posts as part of my learning on Python in coming few days. I’m undergoing training under Dgplug summer training and currently learning pym module. The pym book is quite handy when learning python from scratch. Although I’ve been working in Python for quite a few years, this has come as a good refresher to me. Python, which has become one of the most popular and widely used language in the community - is an interpreted language.