4 Steps to build arm-based docker image on Mac OS

4 Steps to build arm-based docker image on Mac OS

To build an arm image, we need the qemu emulator to emulate those arm executions in the image. First, extract the static linked qemu emulator from linux.

To not mess with Mac, we do it in an Ubuntu Docker:

//On Ubuntu Docker

sudo apt install -y qemu qemu-user-static qemu-user binfmt-support

SCP the qemu-arm-static out from docker Ubuntu Docker machine to host Mac

//On Ubuntu Docker

scp qemu-arm-static [email protected]:~

read more

Install helm on raspberry pi (ARM device)

Install helm on raspberry pi (ARM device)

Install helm and tiller on kubernetes on raspberry pi

Installation of helm and tiller is not straight forward on arm device. Since, by default, the helm will pick a non-arm image of tiller to deploy on kubernetes and make the pod crash. Easiest way is to pick some existing arm version of tiller image to deploy on server. E.g. one from jessestuart:

helm init --tiller-image=jessestuart/tiller:v2.9.1

For non-production use, the role binding of cluster-admin and default/kube-system can be found below:

kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default

read more

Install kubernetes v1.9.2 on Rasberry Pi

Install kubernetes v1.9.2 on Rasberry Pi

Below are the steps to install 5 nodes + 1 master of k8s on Raspberry Pi

SD card preparation

Prepare 6 SD cards and flash with the Hypriot OS, this would be the most stable OS as of today. Install the tool flash

curl -O https://raw.githubusercontent.com/hypriot/flash/master/$(uname -s)/flash
chmod +x flash
sudo mv flash /usr/local/bin/flash

read more

How geek use raspberry pi (1) - Download BT

As that’s quite time consuming to go to the torrent site and search bt files from it, the geeks wrote a ’oneliner’ (actually 2 lines) to perform the search:

[email protected]:~# cat /usr/bin/search
#!/bin/sh
lynx -dump "http://thepiratebay.se/search/[email protected]/0/7/0"|grep magnet | sed 'y/+/ /; s/%/\\x/g' | xargs -L 1 echo -e

#transmission-remote -n "transmission:the password lor" -a "magnet:?xt=urn:btih..."

And here is the script to download the torrent with transmission x:

[email protected]:~# cat /usr/bin/download
#!/bin/sh
transmission-remote -n "transmission:okay, you win" -a "[email protected]"

That’s how it looks like for a search:

read more