Add socat to 3dprinter-octoprint
This commit is contained in:
parent
385428adb4
commit
5c040a0e44
@ -1,3 +1,6 @@
|
|||||||
|
## 2023.01.3
|
||||||
|
* Add `socat`
|
||||||
|
|
||||||
## 2023.01.2
|
## 2023.01.2
|
||||||
* Disable AppArmor profile.
|
* Disable AppArmor profile.
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,7 @@ RUN apt update \
|
|||||||
# dfu-util \
|
# dfu-util \
|
||||||
# dfu-programmer \
|
# dfu-programmer \
|
||||||
# stm32flash \
|
# stm32flash \
|
||||||
|
socat \
|
||||||
# Development/testing
|
# Development/testing
|
||||||
vim \
|
vim \
|
||||||
&& \
|
&& \
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2023.01.2"
|
version: "2023.01.3-RC0"
|
||||||
slug: "3dprinter-octoprint"
|
slug: "3dprinter-octoprint"
|
||||||
description: "OctoPrint as an addon, no additional bells and whistles."
|
description: "OctoPrint as an addon, no additional bells and whistles."
|
||||||
arch:
|
arch:
|
||||||
@ -26,10 +26,12 @@ options:
|
|||||||
trusted_proxies: ""
|
trusted_proxies: ""
|
||||||
# camera_url: "http://b7aa59c4-camera-mjpg-streamer"
|
# camera_url: "http://b7aa59c4-camera-mjpg-streamer"
|
||||||
# mode: normal
|
# mode: normal
|
||||||
|
socat_target: ""
|
||||||
schema:
|
schema:
|
||||||
trusted_proxies: "str?"
|
trusted_proxies: "str?"
|
||||||
# camera_url: "url?"
|
# camera_url: "url?"
|
||||||
# mode: "list(normal|recovery|reverse_proxy_test|camera)?"
|
# mode: "list(normal|recovery|reverse_proxy_test|camera)?"
|
||||||
|
socat_target: "url?"
|
||||||
image: ghcr.io/fredrikbaberg/ha-addon-3dprinter-octoprint-{arch}
|
image: ghcr.io/fredrikbaberg/ha-addon-3dprinter-octoprint-{arch}
|
||||||
# codenotary:
|
# codenotary:
|
||||||
tmpfs: true
|
tmpfs: true
|
||||||
|
|||||||
9
3dprinter-octoprint/rootfs/etc/services.d/socat/run
Normal file
9
3dprinter-octoprint/rootfs/etc/services.d/socat/run
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
# ==============================================================================
|
||||||
|
# Add-on: 3dprinter-octoprint
|
||||||
|
# Runs socat
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
bashio::log.info "Starting socat..."
|
||||||
|
|
||||||
|
exec socat pty,wait-slave,link=/dev/ttyACM0 tcp:%(ENV_SOCAT_TARGET)s
|
||||||
Loading…
Reference in New Issue
Block a user