# Bootstrapping a Cloud with Cloud-Init and HypriotOS

DevFeed: [Bootstrapping a Cloud with Cloud-Init and HypriotOS](<https://devfeed.tech/articles/bootstrapping-a-cloud-with-cloud-init-and-hypriotos-29464.md>)

Original publisher: [Read original article](<https://blog.hypriot.com/post/cloud-init-cloud-on-hypriot-x64/>)

Published: 2017-10-29T07:14:00Z

Content type: tutorial

Language: en

Sources: [Hypriot](<https://devfeed.tech/sources/hypriot.md>)

Topics: [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Ansible](<https://devfeed.tech/topics/ansible.md>), [Portainer](<https://devfeed.tech/topics/portainer.md>), [Arm](<https://devfeed.tech/topics/arm.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [arm](<https://devfeed.tech/tags/arm.md>), [automation](<https://devfeed.tech/tags/automation.md>), [docker](<https://devfeed.tech/tags/docker.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [portainer](<https://devfeed.tech/tags/portainer.md>), [raspberry-pi](<https://devfeed.tech/tags/raspberry-pi.md>), [ssh](<https://devfeed.tech/tags/ssh.md>)

## AI overview

A tutorial describing how cloud-init and HypriotOS 64-bit images can automate Raspberry Pi setup, including configuring Docker and related services on ARM64 hardware.

## Source excerpt

Things may come to those who wait, but only the things left by those who hustle. Over the last year, a lot has happened in the Raspberry Pi and Docker communities, there are Docker Captains helping lead the charge, one of those, Dieter Reuter really has been pushing the cause for ARM64 support with both Raspberry Pi 3 and LinuxKit. He isn't a single man army, the rest of the Docker Pirates over at Hypriot have been doing some awesome things as well! Image courtesy of Horia Varlan Building on the backs of these outstanding community members, I was finally able to spin up a Raspberry Pi, exactly like I do in the "real world", just turn it on, let it self-configure, then software just runs. A lot of this is really about having cloud-init available in the HypriotOS 64bit images thanks to another Pirate Stefan Scherer. In the "cloud world", you spin up instances, give it some user-data, then when it boots, the machines self-configures based on the instance meta-data and the user-data provided. Before Before we talk about the "new" pirate way, let't talk about the "old" non-pirate way. Download Raspbian Lite (the easiest for nubbies like me) Flash said image to an SD Card Optionally re-mount SD Card and monkey some stuff around Put the card in your RPi Power up the RPi If you don't have avahi/bonjour, go find the IP in your router SSH into the server Update Packages Run raspi-config and modify some junk Reboot Install Docker Initialize Docker Swarm Configure Portainer service (if not, are you broken?) "try" and find some images you can run on arm Cheer at your glory based nginx hello world page! Figure out how to use automation tools like Ansible to make your life easier when you need a cluster Bang head on desk learning so much... Do victory dances when you created a bunch of automation around setting up servers Go find out what the community is doing It is at that point, when the community really is an awesome place. Given the latest HypriotOS-rpi64, the flash utility (al