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
|
||||
* Disable AppArmor profile.
|
||||
|
||||
|
||||
@ -34,6 +34,7 @@ RUN apt update \
|
||||
# dfu-util \
|
||||
# dfu-programmer \
|
||||
# stm32flash \
|
||||
socat \
|
||||
# Development/testing
|
||||
vim \
|
||||
&& \
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: "3DPrinter-OctoPrint"
|
||||
version: "2023.01.2"
|
||||
version: "2023.01.3-RC0"
|
||||
slug: "3dprinter-octoprint"
|
||||
description: "OctoPrint as an addon, no additional bells and whistles."
|
||||
arch:
|
||||
@ -26,10 +26,12 @@ options:
|
||||
trusted_proxies: ""
|
||||
# camera_url: "http://b7aa59c4-camera-mjpg-streamer"
|
||||
# mode: normal
|
||||
socat_target: ""
|
||||
schema:
|
||||
trusted_proxies: "str?"
|
||||
# camera_url: "url?"
|
||||
# mode: "list(normal|recovery|reverse_proxy_test|camera)?"
|
||||
socat_target: "url?"
|
||||
image: ghcr.io/fredrikbaberg/ha-addon-3dprinter-octoprint-{arch}
|
||||
# codenotary:
|
||||
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