Skip to content

Commit

Permalink
Base Docker container on Debian
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Sep 19, 2024
1 parent c0a99d1 commit 384c6af
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,36 @@
# SPDX-License-Identifier: BSD-2-Clause
#

FROM trustworthysystems/sel4

WORKDIR /tmp

RUN rm -r *
FROM debian:bookworm

RUN apt-get update -q && apt-get install -y --no-install-recommends \
bash-completion man sudo \
build-essential \
curl \
git \
# for seL4
gcc-aarch64-linux-gnu \
python3-dev \
python3-venv \
cmake \
ninja-build \
device-tree-compiler \
libxml2-utils \
qemu-utils \
qemu-system-arm \
qemu-efi-aarch64 \
ipxe-qemu \
# for bindgen
libclang-dev \
# for test script
python3-pexpect \
# for hacking
bash-completion \
man \
sudo \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /tmp

RUN curl -sSf https://sh.rustup.rs | \
bash -s -- -y --no-modify-path \
--default-toolchain nightly-2024-09-01 \
Expand All @@ -32,6 +52,9 @@ RUN set -eux; \

RUN set -eux; \
cd seL4; \
python3 -m venv pyenv; \
export PATH=$(realpath ./pyenv/bin):$PATH; \
pip install tools/python-deps; \
cmake \
-DCROSS_COMPILER_PREFIX=aarch64-linux-gnu- \
-DCMAKE_INSTALL_PREFIX=$SEL4_INSTALL_DIR \
Expand Down

0 comments on commit 384c6af

Please sign in to comment.