Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
wHyEt committed Jan 5, 2024
1 parent 7bfb904 commit 41234d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ EXPOSE 1984 1984
# Set entrypoint
COPY ./assets/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
#ENTRYPOINT [ "/entrypoint.sh" ]
ENTRYPOINT ["tail", "-f", "/dev/null"]
ENTRYPOINT [ "/entrypoint.sh" ]
#ENTRYPOINT ["tail", "-f", "/dev/null"]
19 changes: 15 additions & 4 deletions assets/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh
#!/bin/bash

set -e
apt-get update
apt-get -y install wget, unzip, nano, gcc
#set -e

3DPrinter_IP=${3DPrinter_IP:0.0.0.0}
3DPrinter_CODE=${3DPrinter_CODE:xxxxxx}
#3DPrinter_IP=${3DPrinter_IP:"0.0.0.0"}
#3DPrinter_CODE=${3DPrinter_CODE:"xxxxxx"}

mkdir work
cd work
Expand All @@ -14,3 +16,12 @@ unzip linux_01.04.00.15.zip
wget https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_amd64
chmod a+x go2rtc_linux_amd64

mkdir /bambu_src
cd /bambu_src

wget https://github.com/hisptoot/BambuSource2Raw/blob/main/BambuSource2Raw/bambusource2raw.cpp
wget https://github.com/hisptoot/BambuSource2Raw/blob/main/BambuSource2Raw/BambuTunnel.h

gcc /bambu_src/bambusource2raw.cpp -o /work/build/BambuP1SCam

tail -f /dev/null

0 comments on commit 41234d5

Please sign in to comment.