https://github.com/antznin/bitbake-setup-container
Container files to use bitbake-setup
https://github.com/antznin/bitbake-setup-container
Last synced: 4 months ago
JSON representation
Container files to use bitbake-setup
- Host: GitHub
- URL: https://github.com/antznin/bitbake-setup-container
- Owner: antznin
- License: mit
- Created: 2025-09-23T11:24:57.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-23T12:24:18.000Z (9 months ago)
- Last Synced: 2025-09-23T13:31:39.654Z (9 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitbake-setup-container
This repository contains files to generate a Podman or Docker image capable of
initializing builds with [`bitbake-setup`](https://git.openembedded.org/bitbake).
## Features
- [zsh](https://www.zsh.org) shell
- [oh-my-zsh](https://ohmyz.sh) integrations
- [zsh-bitbake](https://github.com/antznin/zsh-bitbake) plugin for bitbake completions
- [QEMU](https://www.qemu.org)-ready
## How to use
Start the container:
```shell
$ ./run
```
The `run` script can take extra arguments, which are passed to the container
command. For example, to pass the current working directory as a volume:
```shell
$ ./run --volume "$PWD":"$PWD" --workdir "$PWD"
```
> [!TIP]
> The default container engine can be changes by exporting the `CONTAINERCMD`
> variable:
>
> ```shell
> export CONTAINERCMD=docker
> ```
>
> The default is to use Podman.
`bitbake-setup` will be part of the `$PATH`, meaning you can run `bitbake-setup`
directly from the container:
```shell
$ bitbake-setup init
```
## Configuration
The `./run` script can be tweaked with environment variables:
| Variable | Description | Default | Supported values |
|----------------|----------------------------|----------------------------------------|---------------------------------------------------------------------------|
| `CONTAINERCMD` | Command use for containers | `podman` | `podman` or `docker` |
| `CONTAINERURI` | URI of the container image | `ghcr.io/antznin/bitbake-setup:latest` | Any valid URI.
For a local container: `localhost/bitbake-setup:latest` |
## Building
- Podman:
```shell
podman build -t bitbake-setup:latest .
```
- Docker:
```shell
docker build -t bitbake-setup:latest .
```