From 6925583caafe1674d9165718e0cdb7a82008c6c8 Mon Sep 17 00:00:00 2001 From: wHyEt Date: Fri, 5 Jan 2024 11:35:31 +0100 Subject: [PATCH] bugfix --- Dockerfile | 3 +++ assets/entrypoint.sh | 3 +++ assets/go2rtc.yaml | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 assets/go2rtc.yaml diff --git a/Dockerfile b/Dockerfile index fafe011..a655e75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ # Arch will be changed while building from GitHub Actions CI Workflow # debian:12 +#ENV 3DPrinter_IP +#ENV 3DPrinter_CODE ARG CI_FROM=null FROM ${CI_FROM} @@ -18,6 +20,7 @@ EXPOSE 1984 1984 # Set entrypoint COPY ./assets/entrypoint.sh /entrypoint.sh +COPY ./assets/go2rtc.yaml /app/go2rtc.yaml RUN chmod +x /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ] #ENTRYPOINT ["tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/assets/entrypoint.sh b/assets/entrypoint.sh index bb5741d..422d2e7 100644 --- a/assets/entrypoint.sh +++ b/assets/entrypoint.sh @@ -24,4 +24,7 @@ wget https://raw.githubusercontent.com/DaveGamble/cJSON/master/cJSON.h gcc /bambu_src/bambusource2raw.cpp cJSON.c -lcurl -o /data/work/BambuP1SCam +mkdir /app +cp /data/work/BambuP1SCam /data/work/go2rtc_linux_amd64 /data/work/libBambuSource.so /app + tail -f /dev/null \ No newline at end of file diff --git a/assets/go2rtc.yaml b/assets/go2rtc.yaml new file mode 100644 index 0000000..9c791c4 --- /dev/null +++ b/assets/go2rtc.yaml @@ -0,0 +1,6 @@ +streams: + p1s: "exec:./BambuP1Streamer ./libBambuSource.so ${3DPrinter_IP} ${3DPrinter_CODE}" +log: + level: debug +api: + origin: "*" \ No newline at end of file