Code Monkey home page Code Monkey logo

var-host-docker-containers's Introduction

Summary

This repository provides a Docker container for building Variscite software releases. These configurations have been tested:

Container Version Variscite Release
Ubuntu 20.04 - Yocto Dunfell, Hardknott
- Android 10, 11
- Debian Bullseye
- Boot2Qt Dunfell
Ubuntu 18.04 - Yocto Zeus
Ubuntu 16.04 - Yocto Pyro, Rocko, Sumo, Thud, Warrior
Ubuntu 14.04 - Android 6

Host Setup

From a brand new Ubuntu installation:

  1. Install Docker $ sudo apt update && sudo apt install docker.io
  2. Install Host Linux Headers (required for some Yocto versions) $ sudo apt install linux-headers-$(uname -r)
  3. Give permissions to run docker without sudo $ sudo usermod -aG docker ${USER}
  4. Logout and Login again for permissions to take effect
  5. Clone this repository

Usage

On Host Computer:

$ mkdir ~/var-fslc-yocto
$ ./run.sh -w ~/var-fslc-yocto

You're now running in a container with all build dependencies, and can build as normal.

Yocto Example:

vari@460e5ba862b1:/workdir$ repo init -u https://github.com/varigit/variscite-bsp-platform.git -b refs/tags/dunfell-fslc-5.4-2.1.x-mx8mn-v1.2 -m default.xml
vari@460e5ba862b1:/workdir$ repo sync -j4
vari@460e5ba862b1:/workdir$ MACHINE=imx8mn-var-som DISTRO=fslc-xwayland . setup-environment build_xwayland
vari@460e5ba862b1:/workdir$ bitbake fsl-image-gui

Docker Privileged Mode (Debian)

When Building Debian, Docker requires access to the Host devices. To provide access, pass the -p argument to start Docker in privileged mode.

Example:

$ mkdir ~/var-debian
$ ./run.sh -p -w ~/var-debian

Container Authentication

You may use the sudo command inside the container with these credentials:

Username Password
vari ubuntu

Rebuilding Docker Image

The Docker Image will be built automatically by ./run.sh the first time. Any commits to the GIT repository will cause the image to be rebuilt with the new changes using cache (not necessarily the latest from Ubuntu)

To force the container to be rebuilt with the latest from Ubuntu, pass the -f argument:

$ ./run.sh -f ...

var-host-docker-containers's People

Contributors

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