Skip to content

Commit 3e08ceb

Browse files
committed
review: Add qnap deps to linux image
1 parent 6486710 commit 3e08ceb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

builders/build-linux-rust/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen
1212
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-go /bin
1313
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-cpp /bin
1414

15+
ENV QDK_TAG=v2.3.14
16+
1517
# Multilib is not present in an arm64 debian but is used by libtelio
1618
RUN set -eux; \
1719
export DEBIAN_FRONTEND=noninteractive; \
@@ -56,3 +58,23 @@ RUN cargo search --limit 1
5658

5759
# Install `sccache`
5860
RUN cargo install sccache --version 0.4.2
61+
62+
# Install QDK framework for QNAP packages (QPKG)
63+
RUN set -eux; \
64+
export DEBIAN_FRONTEND=noninteractive; \
65+
git clone https://github.com/qnap-dev/QDK.git --branch "${QDK_TAG}"; \
66+
cd QDK; \
67+
./InstallToUbuntu.sh install
68+
69+
# Cleanup
70+
RUN set -eux; \
71+
export DEBIAN_FRONTEND=noninteractive; \
72+
apt-get remove --purge -yq; \
73+
apt-get autoclean -y; \
74+
apt-get autoremove -y; \
75+
rm -rf QDK; \
76+
rm -rf /var/lib/{cache,log}/; \
77+
rm -rf /var/lib/apt/lists/*; \
78+
rm -rf /tmp/* /var/tmp/*; \
79+
rm -rf /usr/share/doc/; \
80+
rm -rf /usr/share/man/

0 commit comments

Comments
 (0)