Skip to content

Commit dc8a5bf

Browse files
chore: remove libfox and match builder with dev (#33)
Co-authored-by: Raphael <[email protected]> Co-authored-by: Peter Feerick <[email protected]>
1 parent b0917dc commit dc8a5bf

File tree

3 files changed

+54
-40
lines changed

3 files changed

+54
-40
lines changed

builder/Dockerfile

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,48 @@ ARG OS_CODENAME=jammy
33
FROM ubuntu:${OS_CODENAME}
44

55
ARG DEBIAN_FRONTEND=noninteractive
6+
ARG GCC_ARM_VERSION=14.2.rel1
67

78
RUN apt-get update && \
89
apt-get install --yes --no-install-recommends \
10+
ca-certificates \
911
build-essential \
1012
dumb-init \
11-
python3-clang \
13+
libclang-dev \
1214
cmake \
1315
git \
1416
zip \
1517
unzip \
1618
file \
1719
wget \
18-
python3-pip \
20+
python3-dev \
1921
gawk && \
20-
rm -rf /var/lib/apt/lists/*
21-
22-
RUN wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz -O - \
22+
apt-get clean && rm -rf /var/lib/apt/lists/*
23+
24+
# Python packages installation
25+
COPY --from=ghcr.io/astral-sh/uv:0.8.2 /uv /uvx /bin/
26+
ENV VIRTUAL_ENV=/opt/venv
27+
RUN uv venv \
28+
--python-preference system --no-python-downloads \
29+
${VIRTUAL_ENV} && \
30+
uv pip install --no-cache \
31+
asciitree \
32+
clang \
33+
jinja2 \
34+
pillow \
35+
lz4 \
36+
pyelftools \
37+
pydantic
38+
# Add venv to PATH
39+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
40+
41+
# Install ARM toolchain
42+
RUN wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu/${GCC_ARM_VERSION}/binrel/arm-gnu-toolchain-${GCC_ARM_VERSION}-x86_64-arm-none-eabi.tar.xz -O - \
2343
| tar -xJ -C /opt
2444

25-
RUN python3 -m pip install -U pip setuptools \
26-
&& python3 -m pip install \
27-
asciitree \
28-
jinja2 \
29-
pillow \
30-
lz4 \
31-
pyelftools \
32-
pydantic
33-
34-
# work-around for datacopy build script in 2.8.5
35-
RUN ln -s /usr/lib/x86_64-linux-gnu/libclang-14.so.14.0.0 /usr/lib/libclang-14.so && \
36-
ln -s /usr/lib/x86_64-linux-gnu/libclang-14.so.14.0.0 /usr/lib/libclang.so
37-
38-
ENV PATH=/opt/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin/:${PATH}
45+
ENV PATH=/opt/arm-gnu-toolchain-${GCC_ARM_VERSION}-x86_64-arm-none-eabi/bin/:${PATH}
3946

4047
VOLUME ["/src"]
41-
4248
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
4349

4450
RUN useradd --create-home --shell /bin/bash rootless

dev/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ RUN apt-get update && \
3535
build-essential \
3636
dumb-init \
3737
libclang-dev \
38-
libfox-1.6-dev \
3938
cmake \
4039
kitware-archive-keyring \
4140
git \
@@ -68,7 +67,7 @@ RUN apt-get update && \
6867
apt-get clean && rm -rf /var/lib/apt/lists/*
6968

7069
# Python packages installation
71-
COPY --from=ghcr.io/astral-sh/uv:0.7.20 /uv /uvx /bin/
70+
COPY --from=ghcr.io/astral-sh/uv:0.8.2 /uv /uvx /bin/
7271
ENV VIRTUAL_ENV=/opt/venv
7372
RUN uv venv \
7473
--python-preference system --no-python-downloads \
@@ -77,8 +76,7 @@ RUN uv venv \
7776
asciitree \
7877
clang \
7978
jinja2 \
80-
pillow==7.2.0 \
81-
aqtinstall \
79+
pillow \
8280
lz4 \
8381
pyelftools \
8482
pydantic
@@ -96,7 +94,7 @@ ENV QML2_IMPORT_PATH=${QT_BASE_DIR}/qml/
9694
ENV LD_LIBRARY_PATH=${QT_BASE_DIR}/lib:$LD_LIBRARY_PATH
9795
ENV PKG_CONFIG_PATH=${QT_BASE_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH
9896

99-
RUN aqt install-qt --outputdir ${QT_INSTALL_DIR} ${QT_HOST} ${QT_TARGET} ${QT_VERSION} ${QT_ARCH} ${QT_MODULES} && \
97+
RUN uvx --no-cache --from aqtinstall aqt install-qt --outputdir ${QT_INSTALL_DIR} ${QT_HOST} ${QT_TARGET} ${QT_VERSION} ${QT_ARCH} ${QT_MODULES} && \
10098
strip --remove-section=.note.ABI-tag ${QT_BASE_DIR}/lib/libQt5Core.so.${QT_VERSION}
10199

102100
# Install ARM toolchain

gitpod/Dockerfile

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,49 @@
11
FROM gitpod/workspace-base:latest
22

33
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG GCC_ARM_VERSION=14.2.rel1
45

56
USER root
67

78
RUN apt-get update && \
89
apt-get install --yes --no-install-recommends \
10+
ca-certificates \
911
build-essential \
1012
dumb-init \
11-
python3-clang \
13+
libclang-dev \
1214
cmake \
1315
git \
1416
zip \
1517
unzip \
1618
file \
17-
python3-pip \
19+
wget \
20+
python3-dev \
1821
gawk && \
19-
rm -rf /var/lib/apt/lists/*
22+
apt-get clean && rm -rf /var/lib/apt/lists/*
2023

21-
RUN wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz -O - \
24+
RUN wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu/${GCC_ARM_VERSION}/binrel/arm-gnu-toolchain-${GCC_ARM_VERSION}-x86_64-arm-none-eabi.tar.xz -O - \
2225
| tar -xJ -C /opt
26+
ENV PATH=/opt/arm-gnu-toolchain-${GCC_ARM_VERSION}-x86_64-arm-none-eabi/bin/:${PATH}
27+
28+
# Python packages installation
29+
COPY --from=ghcr.io/astral-sh/uv:0.8.2 /uv /uvx /bin/
30+
ENV VIRTUAL_ENV=/opt/venv
31+
RUN uv venv \
32+
--python-preference system --no-python-downloads \
33+
${VIRTUAL_ENV} && \
34+
uv pip install --no-cache \
35+
asciitree \
36+
clang \
37+
jinja2 \
38+
pillow \
39+
lz4 \
40+
pyelftools \
41+
pydantic
42+
# Add venv to PATH
43+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
2344

2445
USER gitpod
2546

26-
RUN python3 -m pip install -U pip setuptools \
27-
&& python3 -m pip install \
28-
asciitree \
29-
jinja2 \
30-
pillow \
31-
lz4 \
32-
pyelftools \
33-
pydantic
34-
35-
ENV PATH=/opt/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin/:${PATH}
36-
3747
VOLUME ["/src"]
3848

3949
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

0 commit comments

Comments
 (0)