From 9757b3c8b9218e17192f0ed230d3b896884e7713 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 2 May 2024 11:33:24 +0000 Subject: [PATCH] add debug output 2 Signed-off-by: Alexandra --- packaging/docker/Dockerfile.debian-multiarch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packaging/docker/Dockerfile.debian-multiarch b/packaging/docker/Dockerfile.debian-multiarch index 1c07499db..20eed7ee2 100644 --- a/packaging/docker/Dockerfile.debian-multiarch +++ b/packaging/docker/Dockerfile.debian-multiarch @@ -34,6 +34,8 @@ RUN apt-get update && \ protobuf-compiler protobuf-c-compiler \ clang-format clangd +RUN echo "Debug: ${ARCH} ${TRIPLET} ${PREFIX}" + # Build-time dependencies RUN apt-get update && \ apt-get install -y \ @@ -60,6 +62,8 @@ RUN apt-get update && \ libhiredis-dev:${ARCH} \ libmodbus-dev:${ARCH} +RUN echo "Debug: build-time dependencies installed" + # Add local and 64-bit locations to linker paths ENV echo /usr/local/lib >> /etc/ld.so.conf && \ echo /usr/local/lib64 >> /etc/ld.so.conf @@ -93,6 +97,8 @@ RUN mkdir ${PREFIX} ADD packaging/deps.sh / RUN bash deps.sh +RUN echo "Debug: unpackaged dependencies installed" + # Expose ports for HTTP and WebSocket frontend EXPOSE 80 EXPOSE 443 @@ -114,6 +120,8 @@ WORKDIR /villas/build RUN cmake ${CMAKE_OPTS} ${CMAKE_EXTRA_OPTS} .. && \ make -j$(nproc) install +RUN echo "Debug: build finished" + FROM --platform=${TARGETPLATFORM} ${DISTRO}:${DEBIAN_VERSION} AS app ARG DISTRO @@ -165,6 +173,8 @@ ENV PATH=${PREFIX}/bin:${PATH} # Test if it runs RUN villas node -h 2>&1 > /dev/null +RUN echo "Debug: run-time dependencies installed" + ENTRYPOINT ["villas"] LABEL \