diff --git a/generator/Dockerfile b/generator/Dockerfile index 898972d..0741777 100644 --- a/generator/Dockerfile +++ b/generator/Dockerfile @@ -2,17 +2,16 @@ FROM debian:10 RUN apt-get update RUN apt-get upgrade -y RUN apt-get install -y \ - php7.3-cli php-json \ - php-pear php-dev \ - libmosquitto-dev libmosquitto1 mosquitto-clients \ - php-yaml \ - locales-all + php7.3-cli php-json \ + php-pear php-dev \ + libmosquitto-dev libmosquitto1 mosquitto-clients \ + php-yaml \ + locales-all RUN pecl install Mosquitto-alpha -RUN echo "extension=mosquitto.so" >/etc/php/7.3/mods-available/mosquitto.ini +RUN echo "extension=mosquitto.so" > /etc/php/7.3/mods-available/mosquitto.ini RUN ln -s /etc/php/7.3/mods-available/mosquitto.ini /etc/php/7.3/cli/conf.d/20-mosquitto.ini ADD . /app VOLUME /app/public - ENTRYPOINT /app/generator.php diff --git a/generator/config.yaml b/generator/config.yaml index 43960a6..3833540 100644 --- a/generator/config.yaml +++ b/generator/config.yaml @@ -1,7 +1,7 @@ mqtt: - host: $MQTT_HOST - user: $MQTT_USER - password: $MQTT_PASSWORD + host: $MQTT_HOST + user: $MQTT_USER + password: $MQTT_PASSWORD variables: doorstatus: @@ -16,4 +16,3 @@ variables: werkstatt_temp: topic: c3re/werkstatttemp cast: float -