hypriot / rpi-image-builder

**DEPRECATED** Build Raspberry Pi Raspbian images based on custom kernels
0 stars 0 forks source link

Add swarm #50

Closed StefanScherer closed 9 years ago

StefanScherer commented 9 years ago

Add Docker image hypriot/rpi-swarm into SD image and load it in firstboot

Connects to hypriot/build-pipeline#141

StefanScherer commented 9 years ago

Tested on RPi2, also tested with docker-machine-hypriot binary to create a swarm master

flash --hostname new s3://buildserver-production/images/hypriot-rpi-20150928-151121.img.zip
ssh-copy-id root@192.168.1.68
export TOKEN=babb1eb00bdecadedec0debabb1eb00b
docker-machine-hypriot create -d hypriot --swarm --swarm-master --swarm-discovery token://$TOKEN --hypriot-ip-address 192.168.1.68 new
eval $(docker-machine-hypriot env --swarm new)
docker info
docker images

LGTM!