/qemu_x86_yocto_workflow

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

All the resources in this repository are ONLY for learning purposes!

qemu_x86_yocto_workflow

- This is a simple demonstration to showcase the CI/CD workflow of yocto project with Github, Docker and QEMU
- Finally, to launch QEMU x86_64 image login shell within a docker container after docker pull and run on a host machine

Environment setup

1. Setup Docker Container (apt version)

The installation of docker is described in detail on the official Docker website: Docker installation on Ubuntu

check if group exists

sudo getent group docker 
add username to docker group
sudo usermod -aG docker username

brief commands

docker build --rm --tag <container:tag> -f Dockerfile .
docker run <container:tag>
docker push <container:tag>
docker pull <container:tag>
docker run --rm -it <container:tag>

2. QEMU installation on PC (optional)

The official documentaion: QEMU

brief commands

sudo apt-install qemu-system-x86 \
  qemu-user \
  qemu-user-static \
  qemu-utils 

3. Documentation

Tutorial on docker file: Dockerfile

Tutorial on Github yaml file: Github

YoctoProject kirkstone-4.0.12: YoctoProject

Tutorial on YoctoProject build: YoctoProject