Skip to content

Commit

Permalink
build: merge docker run instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Jan 18, 2025
1 parent 1f07329 commit cb2fa43
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,18 @@ RUN \
bison \
flex

# install UV and create .venv
RUN curl -LsSf https://astral.sh/uv/$(cat ./requirement-uv.txt | awk -F'==' '{print $2}' | tr -d ' \n')/install.sh | sh && \
. $HOME/.local/bin/env && \
uv sync --frozen --no-install-project

# install shared tools from tools.json;
# install UV, .venv and shared tools;
#
# The idea here is that we pre-pack all the tools into the Docker/Podman image that can be used for any device:
# The main idea here is that we pre-pack all the tools into the Docker/Podman image that can be used for any device:
# (toolchains, binutils -- everything except device-specific kernel source);
#
# This significantly reduces the total build time, as each time we make a build call for a device,
# only device-specific kernel source is being downloaded into the container.
#
RUN uv run ${WDIR}/builder/utils/bridge.py --shared
RUN curl -LsSf https://astral.sh/uv/$(cat ./requirement-uv.txt | awk -F'==' '{print $2}' | tr -d ' \n')/install.sh | sh && \
. $HOME/.local/bin/env && \
uv sync --frozen --no-install-project && \
uv run ${WDIR}/builder/utils/bridge.py --shared

# activate .venv
CMD [ "source", ".venv/bin/activate" ]

0 comments on commit cb2fa43

Please sign in to comment.