mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 05:08:24 +00:00
Dockerfile: Update for having more requirements.txt files
Now that we have more requirements.txt files we need to grab all of them for creating our cache. Also, we do longer should install python3-pyelftools on the host as it's not used. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
859621b47f
commit
fc9f3dd2e9
1 changed files with 7 additions and 2 deletions
|
@ -122,7 +122,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-pyelftools \
|
|
||||||
python3-sphinx \
|
python3-sphinx \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
rpm2cpio \
|
rpm2cpio \
|
||||||
|
@ -308,12 +307,18 @@ USER uboot:uboot
|
||||||
# COPY / ADD directives don't work as we need them to.
|
# COPY / ADD directives don't work as we need them to.
|
||||||
RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
|
RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
|
||||||
RUN wget -O /tmp/sphinx-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/doc/sphinx/requirements.txt
|
RUN wget -O /tmp/sphinx-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/doc/sphinx/requirements.txt
|
||||||
|
RUN wget -O /tmp/binman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/binman/requirements.txt
|
||||||
RUN wget -O /tmp/buildman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/buildman/requirements.txt
|
RUN wget -O /tmp/buildman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/buildman/requirements.txt
|
||||||
|
RUN wget -O /tmp/patman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/patman/requirements.txt
|
||||||
|
RUN wget -O /tmp/u_boot_pylib-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/u_boot_pylib/requirements.txt
|
||||||
RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
|
RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
|
||||||
. /tmp/venv/bin/activate && \
|
. /tmp/venv/bin/activate && \
|
||||||
pip install -r /tmp/pytest-requirements.txt \
|
pip install -r /tmp/pytest-requirements.txt \
|
||||||
-r /tmp/sphinx-requirements.txt \
|
-r /tmp/sphinx-requirements.txt \
|
||||||
-r /tmp/buildman-requirements.txt && \
|
-r /tmp/binman-requirements.txt \
|
||||||
|
-r /tmp/buildman-requirements.txt \
|
||||||
|
-r /tmp/patman-requirements.txt \
|
||||||
|
-r /tmp/u_boot_pylib-requirements.txt && \
|
||||||
deactivate && \
|
deactivate && \
|
||||||
rm -rf /tmp/venv /tmp/*-requirements.txt
|
rm -rf /tmp/venv /tmp/*-requirements.txt
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue