Wednesday, February 8, 2017
QR Code Generator in Docker.
That's how I feel about Docker today. Well, I feel that about Docker pretty much everyday. Anyways, I digress.
I know QR codes aren't the hot stuff they were a few years ago but they do have their place and are still used quite a bit. In my company we use QR codes for clients projects and printed items (think menus and such). So I'm tasked to generate those QR codes. I have been doing this for a few years now and realized that all the software I have running to build QR codes is on my MBP. It was a bit of a pain to get it going initially and if I'm not in the office and someone needs to generate a QR code then what will they do?
That got me thinking about building an image that someone can just download and run and get the QR code they need. Day and a half later the result is what you just scanned above and posted on my Git Hub repo. The best way to learn to do something is to just build it. Whether it's coding or building Docker images. You'll never learn if you don't try. The road to build this image was filled with a lot of broken containers and images. :) (Never said I was a Docker Guru...yet :) )
This was a great exercise on building out a Dockerfile from scratch, adding the necessary packages (in this case Python, pip, etc.) and then pushing it to Git Hub and watching Docker Hub do an automated build off of the source.
It's pretty much bug free (that I can tell) and freely available for anyone who wants to play around with Docker and QR codes. :)
Get the image here (Docker Hub) and see how I made it here (Git Hub).