Sign inSign up

hvbon2010/docker_yocto_linux_6

By hvbon2010

Updated about 1 year ago

the release docker image to build Yocto Linux 6

Image
Operating systems
0

10K+

hvbon2010/docker_yocto_linux_6 repository overview

Pull the docker image

docker pull hvbon2010/docker_yocto_linux_6:latest

Create a script to build the docker container

vim build_yocto_container.sh

Add this content to the file:
#!/bin/bash

# Script name: build_yocto_container.sh

# Name of container
DOCKER_NAME=yocto_container_linux6_$USER

# Username of host PC
HOST_USER=$USER

# Username of docker image
DOCKER_USER=user

# gitconfig on Host machine,
GIT_CONF=/home/$HOST_USER/.gitconfig
GIT_CRED=/home/$HOST_USER/.git-credentials

# SSH dir on Host machine
SSH_PATH=/home/$HOST_USER/.ssh

# Build container
docker run --name $DOCKER_NAME -dit --privileged \
    -u $DOCKER_USER \
    -h $DOCKER_NAME \
    -v /dev/bus/usb/:/dev/bus/usb \
    -v /etc/localtime:/etc/localtime:ro  \
    -v $GIT_CONF:/home/$DOCKER_USER/.gitconfig \
    -v $GIT_CRED:/home/$DOCKER_USER/.git-credentials \
    -v $SSH_PATH:/home/$DOCKER_USER/.ssh:ro \
    hvbon2010/docker_yocto_linux_6:latest bash

Build this docker container

chmod +x build_yocto_container.sh
./build_yocto_container.sh

Execute to the docker container

docker exec -it yocto_container_linux6_$USER bash

Tag summary

Content type

Image

Digest

sha256:3c8033f81

Size

574.1 MB

Last updated

about 1 year ago

docker pull hvbon2010/docker_yocto_linux_6