|
1 | 1 | # Create Docker image that can be used for testing Zephyr network |
2 | 2 | # sample applications. |
3 | 3 |
|
4 | | -FROM fedora |
5 | 4 | FROM gcc |
6 | 5 |
|
7 | | -# RUN http_proxy=... git clone... |
8 | | -RUN git clone http://github.com/zephyrproject-rtos/net-tools.git && \ |
| 6 | +# RUN https_proxy=... git clone... |
| 7 | +RUN git clone https://github.com/zephyrproject-rtos/net-tools.git && \ |
9 | 8 | cd /net-tools && \ |
10 | 9 | make tunslip6 && make echo-client && \ |
11 | 10 | make echo-server && make throughput-client && \ |
12 | 11 | make coap-client |
13 | 12 |
|
| 13 | +# RUN https_proxy=... git clone... |
| 14 | +RUN git clone https://github.com/eclipse/mosquitto.git && \ |
| 15 | + cd /mosquitto && \ |
| 16 | + git checkout v1.6.9 && \ |
| 17 | + make binary && \ |
| 18 | + install -d /usr/local/bin/ && \ |
| 19 | + install -d /usr/local/sbin/ && \ |
| 20 | + install -d /usr/local/lib/ && \ |
| 21 | + install -s -m755 /mosquitto/client/mosquitto_pub \ |
| 22 | + /usr/local/bin/mosquitto_pub && \ |
| 23 | + install -s -m755 /mosquitto/client/mosquitto_rr \ |
| 24 | + /usr/local/bin/mosquitto_rr && \ |
| 25 | + install -s -m755 /mosquitto/client/mosquitto_sub \ |
| 26 | + /usr/local/bin/mosquitto_sub && \ |
| 27 | + install -s -m644 /mosquitto/lib/libmosquitto.so.1 \ |
| 28 | + /usr/local/lib/libmosquitto.so.1 && \ |
| 29 | + install -s -m755 /mosquitto/src/mosquitto /usr/local/sbin/mosquitto && \ |
| 30 | + install -s -m755 /mosquitto/src/mosquitto_passwd \ |
| 31 | + /usr/local/bin/mosquitto_passwd && \ |
| 32 | + rm -rf /mosquitto |
| 33 | + |
| 34 | +RUN addgroup --system mosquitto && \ |
| 35 | + adduser --system \ |
| 36 | + --no-create-home \ |
| 37 | + --disabled-password \ |
| 38 | + --disabled-login \ |
| 39 | + --ingroup mosquitto \ |
| 40 | + mosquitto |
| 41 | + |
| 42 | +COPY mosquitto.conf /usr/local/etc/ |
| 43 | +COPY mosquitto-tls.conf /usr/local/etc/ |
| 44 | + |
14 | 45 | WORKDIR /net-tools |
15 | 46 |
|
16 | 47 | # We do not run any command automatically but let the test script run |
|
0 commit comments