fix: proj names in build

This commit is contained in:
Hammerfall 2025-08-31 00:35:51 +02:00
parent ac436fae7e
commit 259077790b
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(ipv6)
project(ipv6client)
# Fügen Sie die folgenden Zeilen hinzu, um cURL zu Ihrem Projekt hinzuzufügen
find_package(CURL REQUIRED)
@ -9,7 +9,7 @@ include_directories(${CURL_INCLUDE_DIRS})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Fügen Sie Ihre C++-Quelldateien hinzu
add_executable(ipv6 src/main.cpp)
add_executable(ipv6client src/main.cpp)
# Linken Sie Ihr ausführbares Programm mit der cURL-Bibliothek
target_link_libraries(ipv6 ${CURL_LIBRARIES})
target_link_libraries(ipv6client ${CURL_LIBRARIES})

View file

@ -25,7 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN useradd -r -u 10001 appuser
WORKDIR /app
COPY --from=build /app/build/ipv6_logger /app/ipv6_logger
COPY --from=build /app/build/ipv6client /app/ipv6client
# Standard-Env (kannst du per Compose/CLI überschreiben)
ENV URL="http://j-massing.de:19121/logs" \
@ -38,4 +38,4 @@ HEALTHCHECK --interval=60s --timeout=5s --start-period=10s --retries=3 \
USER appuser
# Loggt Hostname beim Start und läuft als Daemon-Loop
ENTRYPOINT ["/app/ipv6_logger"]
ENTRYPOINT ["/app/ipv6client"]