Я использую Docker, чтобы создать среду сборки с Yocto. Чтобы загрузить источники, мне нужно использовать Repo, но у меня есть некоторые трудности. Я не понимаю, почему. < /P>
выше, мой Dockerfile: < /p>
FROM ubuntu:22.04
# Set non-interactive mode for apt and locales
ENV DEBIAN_FRONTEND=noninteractive
# Create yocto user and set up home directory
RUN useradd -m -s /bin/bash yocto && echo "yocto:yocto" | chpasswd
# Install required packages
RUN apt-get update && apt-get install -y \
build-essential cpio debianutils diffstat file gawk gcc git git-lfs iputils-ping \
locales python3 python3-git python3-pip socat texinfo \
unzip wget xz-utils zstd repo nano \
make bsdmainutils gcc-multilib chrpath libegl1-mesa libgmp-dev libmpc-dev libsdl1.2-dev libssl-dev \
libusb-1.0-0 lz4 pylint python3-jinja2 python3-pexpect xterm
# Set up locale
RUN locale-gen en_US.UTF-8 && locale --all-locales | grep en_US.utf8
# Switch to yocto user and set working directory
RUN mkdir /home/yocto/workspace
WORKDIR /home/yocto/workspace
# configure git to accept large repo
ENV HOME=/home/yocto
RUN git config --global http.postBuffer 524288000
RUN git config --global core.compression 0
RUN git config --global http.maxRequests 5
RUN git config --global color.ui true
# set git config otherwise repo will failed
RUN git config --global user.email "yocto@dockerbot.local"
RUN git config --global user.name "docker BOT"
# Download OpenSTLinux repositories
RUN repo init --depth=1 -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06
RUN repo sync
# Set default command to start in /home/yocto/workspace with environment setup
ENV DISTRO=openstlinux-weston
ENV MACHINE=stm32mp25-disco
# Ne marche pas, il faut donc configurer la variable manuellement sans - ni .
#ENV EULA_$(echo "$MACHINE" | sed 's/-//g;s/\.//g')=1
ENV EULA_stm32mp25disco=1
# Config du cache
ENV SSTATE_DIR="/mnt/sstate"
ENV DL_DIR="/mnt/downloads"
RUN chown -R yocto:yocto /home/yocto/
USER yocto
< /code>
Если я использую репо вручную внутри контейнера, все работает правильно. Есть идея?
Подробнее здесь: https://stackoverflow.com/questions/797 ... -container
Repo init и синхронизация не работает в контейнере Docker ⇐ Linux
-
Anonymous
1757318167
Anonymous
Я использую Docker, чтобы создать среду сборки с Yocto. Чтобы загрузить источники, мне нужно использовать Repo, но у меня есть некоторые трудности. Я не понимаю, почему. < /P>
выше, мой Dockerfile: < /p>
FROM ubuntu:22.04
# Set non-interactive mode for apt and locales
ENV DEBIAN_FRONTEND=noninteractive
# Create yocto user and set up home directory
RUN useradd -m -s /bin/bash yocto && echo "yocto:yocto" | chpasswd
# Install required packages
RUN apt-get update && apt-get install -y \
build-essential cpio debianutils diffstat file gawk gcc git git-lfs iputils-ping \
locales python3 python3-git python3-pip socat texinfo \
unzip wget xz-utils zstd repo nano \
make bsdmainutils gcc-multilib chrpath libegl1-mesa libgmp-dev libmpc-dev libsdl1.2-dev libssl-dev \
libusb-1.0-0 lz4 pylint python3-jinja2 python3-pexpect xterm
# Set up locale
RUN locale-gen en_US.UTF-8 && locale --all-locales | grep en_US.utf8
# Switch to yocto user and set working directory
RUN mkdir /home/yocto/workspace
WORKDIR /home/yocto/workspace
# configure git to accept large repo
ENV HOME=/home/yocto
RUN git config --global http.postBuffer 524288000
RUN git config --global core.compression 0
RUN git config --global http.maxRequests 5
RUN git config --global color.ui true
# set git config otherwise repo will failed
RUN git config --global user.email "yocto@dockerbot.local"
RUN git config --global user.name "docker BOT"
# Download OpenSTLinux repositories
RUN repo init --depth=1 -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06
RUN repo sync
# Set default command to start in /home/yocto/workspace with environment setup
ENV DISTRO=openstlinux-weston
ENV MACHINE=stm32mp25-disco
# Ne marche pas, il faut donc configurer la variable manuellement sans - ni .
#ENV EULA_$(echo "$MACHINE" | sed 's/-//g;s/\.//g')=1
ENV EULA_stm32mp25disco=1
# Config du cache
ENV SSTATE_DIR="/mnt/sstate"
ENV DL_DIR="/mnt/downloads"
RUN chown -R yocto:yocto /home/yocto/
USER yocto
< /code>
Если я использую репо вручную внутри контейнера, все работает правильно. Есть идея?
Подробнее здесь: [url]https://stackoverflow.com/questions/79758630/repo-init-and-sync-not-work-in-a-docker-container[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия