Giter Site home page Giter Site logo

antmicro / docker-image Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zephyrproject-rtos/docker-image

0.0 8.0 0.0 56 KB

Docker image suitable for development, similar to what we have in CI

License: Apache License 2.0

Dockerfile 92.09% Shell 7.91%

docker-image's Introduction

docker-image

Docker image suitable for development, similar to what we have in CI.

This docker image can be built with

docker build -t zephyr_doc:v<tag> .

and can be used for development and building zephyr samples and tests, for example:

docker run -ti -v <path to zephyr tree>:/workdir zephyr_doc:v<tag>

Then, follow the steps below to build a sample application:

cd samples/hello_world
mkdir build
cd build
cmake -DBOARD=qemu_x86 ..
make run

The image is also available on docker.io, so you can skip the build step and directly pull from docker.io and build:

docker run -ti -v $HOME/Work/github/zephyr:/workdir \
docker.io/zephyrprojectrtos/zephyr-build:latest

The environment is set and ready to go, no need to source zephyr-env.sh.

We have two toolchains installed:

  • Zephyr SDK
  • GNU Arm Embedded Toolchain

To switch, set ZEPHYR_TOOLCHAIN_VARIANT.

Further it is possible to run native POSIX samples that require a display and check the display output via a VNC client. To allow the VNC client to connect to the docker instance port 5900 needs to be forwarded to the host, for example:

docker run -ti -p 5900:5900 -v <path to zephyr tree>:/workdir zephyr_doc:v<tag>

Then, follow the steps below to build a display sample application for the native POSIX board:

cd samples/display/cfb
mkdir build
cd build
cmake -DBOARD=native_posix -GNinja ..
ninja run

The result can be observed by connecting a VNC client to localhost at port 5900, the default VNC password is zephyr.

For example on a Ubuntu host system:

vncviewer localhost:5900

docker-image's People

Contributors

doanac avatar nashif avatar vanwinkeljan avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.