Giter Site home page Giter Site logo

magnitus- / image-builder-odroid-c2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hypriot/image-builder-odroid-c2

0.0 2.0 0.0 65 KB

Build SD card image for ODROID C2

Home Page: http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/

License: MIT License

Makefile 7.30% Shell 40.19% Ruby 52.51%

image-builder-odroid-c2's Introduction

image-builder-odroid-c2

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

This repo builds the SD card image with HypriotOS for the ODROID C2 ARM 64bit 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-c2)

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-c2-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 C2. Run the Serverspec integration tests in builder/test-integration/ folder against your ODROID C2. Set the environment variable BOARD to the IP address or host name of your running ODROID C2.

flash hypriotos-odroid-c2-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.

License

MIT - see the LICENSE file for details.

image-builder-odroid-c2's People

Contributors

dieterreuter avatar docbobo avatar firecyberice avatar i3design-dev avatar mathiasrenner avatar stefanscherer avatar umiddelb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.