Image

Docker, GO and CGO application build

Docker, GO and CGO application build

I’ve been avoiding Docker for a very long time. I started as a sysadmin setting up servers running FreeBSD and early versions of Debian on bare-bone servers. As soon as “cloud” came into the market, I switched to AWS and GCE and have used them since then. EC2 was my always goto choice to deploy something on the internet quickly. But Docker — for some reason, I was avoiding it until this two years ago, when I started using it. Without too much trust.

But today, history is not about my love & hate relationship with Docker, but about deploying the GO application and VIPS library. A couple of problems appeared during the process, and it’s worth mentioning them for future generations because I could find much help around my issues.

How to get better results with ImageMagick and convert

How to get better results with ImageMagick and convert

In last two days I’m trying to find best way to convert PDF files to good quality JPEG files. Of course size does matter, not only in case of women breasts.

When I was trying to convert files directly from PDF to JPEG results was pretty scary:

convert myfile.pdf[1] dc.jpg

number 1 in brackets means only one(second) page to process.
As I result I get file with pretty huge size: 496.8K
but… if we do this in two steps: