2017-12-06 16:06:59 +00:00
|
|
|
# Yocto build container
|
|
|
|
|
|
|
|
A docker container used to build yocto images. It's based on Debian jessie.
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
Docker needs to be installed and the docker daemon needs to run. Also the user
|
2019-02-24 08:06:20 +00:00
|
|
|
needs to be member of the docker group.
|
2017-12-06 16:06:59 +00:00
|
|
|
|
2019-02-24 08:06:20 +00:00
|
|
|
```shell
|
2017-12-06 16:06:59 +00:00
|
|
|
adduser <username> docker
|
|
|
|
```
|
|
|
|
|
|
|
|
## Build the container
|
|
|
|
|
2019-02-24 08:06:20 +00:00
|
|
|
```shell
|
2017-12-06 16:06:59 +00:00
|
|
|
docker build -t "<name>:<tag>" .
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run the container
|
|
|
|
|
|
|
|
Run from HOME directory:
|
|
|
|
|
2019-02-24 08:06:20 +00:00
|
|
|
```shell
|
2021-06-09 05:54:33 +00:00
|
|
|
docker run -it --rm --network host -v=/var/lib/sss/pipes/:/var/lib/sss/pipes/:rw -v $(pwd):$(pwd) -w $(pwd) -u $(id -u $USER):$(id -g $USER) <name>:<tag> /bin/bash
|
2017-12-06 16:06:59 +00:00
|
|
|
```
|