GithubHelp home page GithubHelp logo

hypriot / os-rootfs Goto Github PK

View Code? Open in Web Editor NEW
68.0 11.0 40.0 122 KB

The root filesystem of HypriotOS

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

License: MIT License

Shell 66.49% Makefile 13.32% Ruby 18.33% Dockerfile 1.87%
raspberry-pi hypriot-os

os-rootfs's Introduction

os-rootfs

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

The os-rootfs builds the base of all the HypriotOS images. This repo creates a general root filesystem for different CPU architectures without the board specific parts.

This root filesystem

  • uses a minimal Debian system
  • adds an user pirate
  • sets a default locale (UTF-8)
  • sets a default timezone (UTC)
  • ...

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 root filesystem locally with Docker.

Create builder Docker image

make build

Create all rootfs's for all supported ARCH's

make all

Create single rootfs's for all supported ARCH's

make i386
make amd64
make armhf-debian
make armhf-raspbian
make arm64-debian
make mips

Run container in interactive mode (for testing purposes)

make shell

Build artifacts

The output of the build will be in the current directory as a rootfs-${ARCH}-${HYPRIOT_OS_VERSION}.tar.gz file.

How to run tests

Option 1: Run tests with a single command

With the following command, all tests for a specific architecture will be executed:

BUILD_ARCH=arm64 make test

Option 2: Run tests interactively

If you prefer to have a shorter feedback loop of less than a second, enter the container with

make testshell

Now, to run the test, execute

BUILD_ARCH=arm64 /builder/test.sh

Run shellcheck tests

To run the shellcheck tests, execute

make shellcheck

License

MIT - see the LICENSE file for details.

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.