how to build the smallest docker image as fast as you can
How to install Spinnaker on CentOS 7

How to install Spinnaker on CentOS 7

Spinnaker doesn’t support installation on CentOS machine, this article introduces how to use Docker to install Spinnaker components on CentOS directly.

As we know, according to the spinnaker’s official documentation, spinnaker provides a tool for installing the spinnaker cluster in Kubernetes cluster or debian/ubuntu bare metal machine, but there’s not an option to install it on CentOS or other common operating systems. Althogh the spinnaker provides a way to start Spinnaker with Docker Compose, but it’s out of date. So I created a new docker-compose project to quickstart a spinnaker cluster on any kind of os.

Read more

Raspberry 3安装docker

SD卡制作

准备一张4GB或者以上的micro sd卡,下载系统镜像,例如raspbian-jessie-lite.img,并使用刷机工具,如Pi filler将其写入sd卡,当然也可以使用命令行的dd,或者其它工具,要注意的是sd卡必须是fat32格式的文件系统,不然树莓派是无法识别的。

开机启动

先把所有的线材都连上之后,最后再通电,应该很顺利能看到启动的系统。

设置WIFI

1
2
3
4
echo 'network={
ssid="your-ssid"
psk="your-psk"
}' | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf

如果你的WIFI设置没有启动

1
sudo ifconfig wlan0 up

设置apt国内镜像

阿里云的镜像还是很快的。

1
echo 'deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib\ndeb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib' | sudo tee /etc/apt/sources.list.d/hypriot.list

docker安装

1
2
3
4
5
6
7
ssh pi@raspberrypi.local
sudo apt-get install -y apt-transport-https
wget -q https://packagecloud.io/gpg.key -O - | sudo apt-key add -
echo 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' | sudo tee /etc/apt/sources.list.d/hypriot.list
sudo apt-get update
sudo apt-get install -y docker-hypriot
sudo systemctl enable docker

以非root权限运行docker

1
sudo usermod -aG docker `whoami`

如果没有起作用,需要重新登录

参考

Run Docker on a Raspberry Pi 3 with onboard WiFi

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×