mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add debug output 2
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
This commit is contained in:
parent
33d78feee8
commit
9757b3c8b9
1 changed files with 10 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue