MQTT
This commit is contained in:
@@ -15,13 +15,25 @@ RUN set -eux; \
|
||||
libmicrohttpd-dev \
|
||||
libcurl4-openssl-dev \
|
||||
zlib1g-dev \
|
||||
prometheus-cpp-dev
|
||||
prometheus-cpp-dev \
|
||||
nlohmann-json3-dev
|
||||
|
||||
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y \
|
||||
libpaho-mqtt-dev
|
||||
|
||||
RUN set -eux; \
|
||||
git clone https://github.com/eclipse/paho.mqtt.cpp.git; \
|
||||
cd paho.mqtt.cpp; \
|
||||
git submodule init; \
|
||||
git submodule update; \
|
||||
mkdir build && cd build; \
|
||||
cmake -DPAHO_WITH_MQTT_C=ON ..; \
|
||||
cmake --build . --target install; \
|
||||
ldconfig;
|
||||
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y \
|
||||
|
||||
Reference in New Issue
Block a user