Created
March 7, 2019 17:02
-
-
Save fjanicki/195ef53c6e4bbb43da2330f5dd04ddf2 to your computer and use it in GitHub Desktop.
Docker Paho C + PahoCpp build through CMake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Paho | |
WORKDIR /pahoc | |
RUN git clone --branch v1.2.1 https://github.com/eclipse/paho.mqtt.c.git | |
WORKDIR /pahoc/paho.mqtt.c | |
RUN make | |
RUN make install | |
# Install Paho C++ | |
WORKDIR /pahocpp | |
RUN git clone --branch v1.0.0 https://github.com/eclipse/paho.mqtt.cpp | |
WORKDIR /pahocpp/paho.mqtt.cpp | |
RUN mkdir build | |
WORKDIR /pahocpp/paho.mqtt.cpp/build | |
RUN cmake -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=FALSE -DPAHO_MQTT_C_PATH=/pahoc/paho.mqtt.c .. | |
RUN make | |
RUN make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment