Multistage build in Docker

Example Use Cases When might you want to use a multi-stage build? It allows you to do an entire pipeline within a single build, rather than having to script the pipeline externally. Here’s a few examples… Java apps using WAR files First stage uses a container with Maven to compile, test, and build the war file Second stage copies the built war file into an image with the app server (Wildfly, Tomcat, Jetty, etc....

September 13, 2017 Â· 3 min Â· Suraj Narwade

Remove white noise from Videos

May times, We have to create demos for projects for which we use various desktop screen recorders along with normal earphones with mic for audio. But, It causes a lot of white/background noise in the video results into degraded video quality. Another case, where we record demos, talks from meetups. In this cases, we are not equipped with smart gadgets but only normal mic or mobile phone due to which lots of white noise occurs in a video....

July 23, 2017 Â· 2 min Â· Suraj Narwade

Kubernetes Pune Meetup - July 2017

It was beautiful Saturday morning and we were at yet another chapter of kubernetes Pune meetup. Meetup had a good turnaround of about 30 people, even it was the weekend. Harshal Shah started the Session on “Lifecycle of a Pod”, where he explained in detail about various states of pods, liveness and readiness probes as well as restart policies. That was really helpful as we get to know what actually happens to pod while deploying and undeploying the application....

July 10, 2017 Â· 3 min Â· Suraj Narwade

tools to adopt best practices in golang

I went through internet yesterday regarding best practices with golang, I found go-tools written by Dominik Honnef which were pretty interesting and can be . I found some of them useful for me, so are they listed below. static check applies tons of static analysis checks. it needs go 1.6 or later, go get honnef.co/go/tools/cmd/staticcheck syntax is: $ statickcheck [pkg] or [directory] I tried it for kompose with some extra hacks: $ for pkg in $(go list -f '{{ join ....

July 6, 2017 Â· 2 min Â· Suraj Narwade

Golang workaround for cannot assign to struct field in map

Yesterday, I was working one of the Kompose issue, and I was working on map of string to struct, while iterating over a map I wanted to change elements of struct, so I tried similar to this, package main import "fmt" type Animal struct { count int } func main() { m := map[string]Animal{"cat": Animal{2}, "dog": Animal{3}, "mouse": Animal{5}} fmt.Println(m) m["dog"].count = 4 fmt.Println(m) } so I got this error,...

May 28, 2017 Â· 1 min Â· Suraj Narwade

The GO Workshop by Baiju

A golang hands-on workshop was organized under meetup group Practical Data Science on May 6th, 2017. It was run up event for Devconf India 2017. Around 60 people turned up. Baiju’s, who was workshop instructor, started with introduction of golang. He carried audience through the setup of golang SDK, basic golang semantics, datatypes, control structures, concurrency and other advanced constructs. Workshop course material can be found here. Me(SurajN), SurajD and Zeeshan volunteered for the event....

May 7, 2017 Â· 1 min Â· Suraj Narwade

What's new in Docker ?

Recently, I installed latest docker on my machine. But I noticed lots of new features, commands and aliases to the existing commands and felt it was worth posting. Docker version that I installed is 17.03.0-ce, Click here to know how to install Docker As we can see in docker help, commands are grouped as management commands under names like container, network, image, etc as per their purpose. $ docker --help Usage: docker COMMAND A self-sufficient runtime for containers ....

March 21, 2017 Â· 3 min Â· Suraj Narwade