Re: Feedback 2.0 Alpha 1
Verfasst: Mo Dez 27, 2021 11:37 am
Hallo Lutz,
könntest Du bitte noch beide "Alpha 1"- Threads miteinender verlinken?
viewtopic.php?f=3&t=4513 & viewtopic.php?p=53275#p53275
VG
Hallo Lutz,
VS Code und die SSH Remote Erweiterung hab ich schon mal installiert, aber heute hab ich mich erst mal so im System umgeschaut. Wenn ihr schon ne kurze Anleitung habt, dann gerne her damit.
Code: Alles auswählen
service apache2 start
mosquitto -c /var/www/html/openWB/data/config/mosquitto_local.conf -v &
sleep 1
mosquitto -c /var/www/html/openWB/data/config/openwb_local.conf -v &
sleep 1
mosquitto_pub -p 1886 -t openWB/system/update_in_progress -r -m 'false'
mosquitto_pub -p 1883 -t openWB/system/update_in_progress -r -m 'false'
mosquitto_pub -p 1886 -t openWB/system/boot_done -r -m 'true'
mosquitto_pub -p 1883 -t openWB/system/boot_done -r -m 'true'
mosquitto_pub -t openWB/system/reloadDisplay -m "1"
touch /var/www/html/openWB/ramdisk/bootdone
sudo -u pi /var/www/html/openWB/packages/main.py
Code: Alles auswählen
FROM debian:bullseye
RUN apt update && \
apt install -y sudo curl iproute2 vim bc apache2 php php-gd php-curl php-xml php-json libapache2-mod-php jq git mosquitto mosquitto-clients socat python3-pip sshpass
RUN useradd -m pi && \
mkdir /var/www/html/openWB /run/mosquitto && \
chown pi:pi /var/www/html/openWB && \
chown mosquitto:mosquitto /run/mosquitto && \
sudo -u pi git clone https://github.com/openWB/core.git --branch master /var/www/html/openWB && \
sudo -u pi pip install -r /var/www/html/openWB/requirements.txt && \
chmod +x /var/www/html/openWB/runs/* /var/www/html/openWB/*.sh && \
touch /var/log/openWB.log && \
chmod 777 /var/log/openWB.log && \
cp /var/www/html/openWB/data/config/000-default.conf /etc/apache2/sites-available/ && \
sed -i '/^include_dir/d' /var/www/html/openWB/data/config/mosquitto_local.conf && \
sed -i 's/^listener .*/listener 1886 127.0.0.1/' /var/www/html/openWB/data/config/openwb_local.conf && \
cat /var/www/html/openWB/data/config/openwb.conf >> /var/www/html/openWB/data/config/mosquitto_local.conf && \
sudo -u pi mkdir /var/www/html/openWB/ramdisk && \
sed -i '12d;96,106d;107i\ return []' /var/www/html/openWB/packages/modules/loadvars.py && \
cp /var/www/html/openWB/index.html /var/www/html/index.html
COPY run-within-docker.sh /var/www/html/openWB/
CMD ["/bin/bash", "/var/www/html/openWB/run-within-docker.sh"]
# Http
EXPOSE 80
# MQTT
EXPOSE 1883
# MQTT Websocket
EXPOSE 9001
Code: Alles auswählen
sudo docker build -t openwb2 .
Code: Alles auswählen
sudo docker run -p 7080:80 -p 1883:1883 -p 9001:9001 -it openwb2