[docker] Multi-stage builds

Consider the following scenario: you are going to rolling update your cluster, and it turns out your network bandwidth is limited for some reason and size of built docker image is not small enough. What’s worse, every instance of cluster will need to pull the docker image before start-up…

Date
Categories
Tags
Comments

Published:May 14, 2017 View Post

docker golang

Also tagged

Leave a comment

Crop image in golang

In python, for cropping  image I use PIL. However the dependencies of PIL is huge, also need to install some lib*-dev packages. So I choose go to crop images: Usage: % go run crop.go large.jpeg thumbnail.jpg

Date
Categories
Tags
Comments

Published:October 4, 2013 View Post

golang

Also tagged

Leave a comment