ubergarm

sui generis, linux, python, devops, robotics, polyamory, data custodian

Run a hugo powered static site blog

2018-06-12 webdev ubergarm
Run a hugo powered static site blog. Install Check the hugo releases for the latest hugo_0.XX_Linux-64bit.tar.gz and uncompress it in the current working directory. Check its working: $ ./hugo version Hugo Static Site Generator v0.42 linux/amd64 BuildDate: 2018-06-12T06:37:22Z Development Start the hugo server in hot-reload development mode: $ ./hugo server -D Content Create a file in mysite.com/content/article/ e.g.: cat <<EOF > "$(date --iso-8601=seconds)"-my-post-title.md --- title: "My Post Title" date: "$(date --iso-8601=seconds)" featuredImage: "/images/my-post-image. Continue reading

Cross Platform ODROID ARM Docker quemu CI/CD Pipeline

2016-01-17 devops ubergarm
Want to develop, build, test, and deploy consistent code across multiple platforms and even architectures? Maybe work on your Raspberry Pi or ODROID code from your laptop, push a Docker image, then pull the exact same code onto your target hardware device? Maybe even automate all these steps using Continious Integration?! Yeah why not! :) Background I first tried this on Circle CI but ran into some hiccups with with binfmt_misc not being quite full acessible on their build machines. Continue reading

The Zen of Python

2015-12-13 code ubergarm

Just noticed The Zen of Python today and found it amusing. A quick “one liner” for the easter egg.

import this
''.join([this.d[ch] if ch in this.d.keys() else ch for ch in this.s])

But who knows, I’m not a BDFL nor even Dutch. ;)

Cross Platform ARM w/ Docker and quemu

2015-12-12 devops ubergarm
The goal is to automate building armhf (armv7) compatible Docker images. These images can be used for dev, build, test, and deploy to ensure a consistent user experience. The most common development, cloud, and build machines currently run x86-64 architecture hardware. This complicates working on software targeted at embedded arm platforms. With modern kernels that support binfmt misc and the right combination of qemu-XXX-static binary one can run arbitrary format Docker images on arbitrary host hardware. Continue reading

Cross Platform ODROID ARM Docker quemu

2015-12-12 devops ubergarm
Overview In this post I document how to boot an ODROID ARM image from a x86 machine running qemu-system-arm from inside a Docker container. After this experience, I’m leaning towards a solution that uses binfmt_misc on the host and qemu-arm-static to run ARM docker images as opposed to emulating a whole specific system. Check out docker-arm-circleci UPDATE: I just put together an updated system based on the binfmt_misc solution. Check it out here: ubergarm/qemu Continue reading
Older posts