Build SD card image for ODROID C1 and C1+
Ruby Shell Makefile
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
builder Fixed integration tests Mar 30, 2017
.dockerignore
.gitignore Update the build steps and installed versions Mar 8, 2017
.travis.yml
Dockerfile
LICENSE
MAINTENANCE.md
Makefile
README.md
Vagrantfile auto_correct port Feb 12, 2016
versions.config

README.md

image-builder-odroid-c1

Join the chat at https://gitter.im/hypriot/talk Build Status

This repo builds the SD card image with HypriotOS for the ODROID C1 board. To build this SD card image we have to

  • take the files for the root filesystem from os-rootfs
  • add Hypriot's Debian repos
  • install the ODROID kernel
  • install Docker tools Docker Engine, Docker Compose and Docker Machine

Here is an example how all the GitHub repos play together:

Architecture

Contributing

You can contribute to this repo by forking it and sending us pull requests. Feedback is always welcome!

You can build the SD card image locally with Vagrant.

Setting up build environment

Make sure you have vagrant and docker-machine installed. Then run the following command to create the Vagrant box and the Docker Machine connection. The Vagrant box is needed as a vanilla boot2docker VM is not able to run guestfish inside.

make docker-machine

Now set the Docker environments to this new docker machine:

eval $(docker-machine env image-builder-odroid-c1)

Build the SD card image

From here you can just make the SD card image. The output will be written and compressed to hypriotos-odroid-c1-dirty.img.zip.

make sd-image

Run Serverspec tests

To test the compressed SD card image with Serverspec just run the following command. It will expand the SD card image in a Docker container and run the Serverspec tests in builder/test/ folder against it.

make test

Run integration tests

Now flash the SD card image and boot up a ODROID C1. Run the Serverspec integration tests in builder/test-integration/ folder against your ODROID C1. Set the environment variable BOARD to the IP address or host name of your running ODROID C1.

flash hypriotos-odroid-c1-dirty.img.zip
BOARD=black-pearl.local make test-integration

This test works with any Docker Machine, so you do not need to create the Vagrant box.

Deployment

For maintainers of this project you can release a new version and deploy the SD card image to GitHub releases with

TAG=v0.0.1 make tag

After that open the GitHub release of this version and fill it with relevant changes and links to resolved issues.

Buy us a beer!

This FLOSS software is funded by donations only. Please support us to maintain and further improve it!

Donate using Liberapay

License

MIT - see the LICENSE file for details.