Skip to content

Instantly share code, notes, and snippets.

@fjanicki
Created March 7, 2019 17:02
Show Gist options
  • Save fjanicki/195ef53c6e4bbb43da2330f5dd04ddf2 to your computer and use it in GitHub Desktop.
Save fjanicki/195ef53c6e4bbb43da2330f5dd04ddf2 to your computer and use it in GitHub Desktop.
Docker Paho C + PahoCpp build through CMake
# 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