diff options
| -rw-r--r-- | Dockerfile | 21 | ||||
| -rw-r--r-- | docker-compose.yml | 12 | ||||
| -rwxr-xr-x | init-yocto-directories.sh | 2 | ||||
| -rw-r--r-- | meta-yerba/recipes-kernel/linux/linux-yerba_7.0.bb | 2 |
4 files changed, 35 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..89b480e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:22.04 + +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y locales wget unzip git curl python3 python3-pip sudo chrpath diffstat lz4 zstd libtirpc-dev rpcsvc-proto file xz-utils bzip2 cpio gawk g++ make gcc build-essential patch texinfo clang tcc && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 && rm -rf /var/lib/apt/lists/* + +ENV LANG=en_US.UTF-8 \ + LANGUAGE=en_US:en \ + LC_ALL=en_US.UTF-8 + +RUN pip3 install kas + +RUN groupadd -g 1000 builder && useradd -u 1000 -g 1000 -m -s /bin/bash builder && echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + +USER 1000:1000 +WORKDIR /home/builder/yerbalinux + +ENV LANG=en_US.UTF-8 \ + LANGUAGE=en_US:en \ + LC_ALL=en_US.UTF-8 + +CMD ["kas", "build", "kas.yml"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f337a9b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +services: + builder: + build: . + network_mode: "host" + user: "1000:1000" + volumes: + - ./:/home/builder/yerbalinux + - /opt/yocto:/opt/yocto + environment: + - HOME=/home/builder + - USER=builder + command: ["kas", "build", "kas.yml"] diff --git a/init-yocto-directories.sh b/init-yocto-directories.sh index 92dd6b2..014816a 100755 --- a/init-yocto-directories.sh +++ b/init-yocto-directories.sh @@ -7,7 +7,7 @@ YOCTO_DIR=/opt/yocto for dir in sstate-cache downloads builds tmp; do mkdir -p "$YOCTO_DIR/$dir" - chown -R "$USER:$USER" "$YOCTO_DIR/$dir" + chown -R "1000:1000" "$YOCTO_DIR/$dir" chmod -R u+rwx "$YOCTO_DIR/$dir" done echo "Yocto directories created in $YOCTO_DIR" diff --git a/meta-yerba/recipes-kernel/linux/linux-yerba_7.0.bb b/meta-yerba/recipes-kernel/linux/linux-yerba_7.0.bb index ec1e757..2adc722 100644 --- a/meta-yerba/recipes-kernel/linux/linux-yerba_7.0.bb +++ b/meta-yerba/recipes-kernel/linux/linux-yerba_7.0.bb @@ -11,7 +11,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:" LINUX_VERSION = "7.0.11" PV = "${LINUX_VERSION}+tarball${SRCPV}" LINUX_RELEASE = "v7.x" -LINUX_TARBALL = "https://cdn.kernel.org/pub/linux/kernel/${LINUX_RELEASE}/linux-${LINUX_VERSION}.tar.xz" +LINUX_TARBALL = "https://www.kernel.org/pub/linux/kernel/${LINUX_RELEASE}/linux-${LINUX_VERSION}.tar.xz" SRC_URI = "${LINUX_TARBALL} \ file://defconfig" |
