Add support for aiocoap (#39)
* Update Dockerfile * Update Dockerfile * Add musl-dev * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile
This commit is contained in:
parent
ae4c523796
commit
ee18ef2988
1 changed files with 19 additions and 16 deletions
|
@ -1,4 +1,5 @@
|
||||||
FROM %%BASE_IMAGE%%
|
ARG BUILD_FROM
|
||||||
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
# Add env
|
# Add env
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
@ -85,22 +86,25 @@ RUN git clone --depth 1 -b v2.3.0 https://github.com/openalpr/openalpr \
|
||||||
git autoconf automake \
|
git autoconf automake \
|
||||||
&& rm -rf /usr/src/openalpr
|
&& rm -rf /usr/src/openalpr
|
||||||
|
|
||||||
# libcoap
|
# tinydtls / aiocoap
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
git make gcc g++ autoconf automake libtool \
|
git make gcc python3-dev autoconf automake musl-dev \
|
||||||
&& git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap \
|
&& pip3 install --no-cache-dir cython \
|
||||||
&& cd libcoap \
|
&& git clone --depth 1 https://git.fslab.de/jkonra2m/tinydtls \
|
||||||
&& grep -r -l u_int8_t * | xargs sed -i "s/u_int8_t/unsigned char/g" \
|
&& cd tinydtls \
|
||||||
&& grep -r -l u_int32_t * | xargs sed -i "s/u_int32_t/unsigned int/g" \
|
&& autoreconf \
|
||||||
&& grep -r -l u_int64_t * | xargs sed -i "s/u_int64_t/unsigned long long/g" \
|
&& ./configure --with-ecc --without-debug \
|
||||||
&& grep -r -l "time_t coap_time_t" * | xargs sed -i "s/time_t coap_time_t/unsigned long long coap_time_t/g" \
|
&& cd cython \
|
||||||
&& ./autogen.sh \
|
&& python3 setup.py install \
|
||||||
&& ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr" \
|
&& cd /usr/src \
|
||||||
&& make \
|
&& rm -rf /usr/src/tinydtls \
|
||||||
&& make install \
|
&& git clone https://github.com/chrysn/aiocoap \
|
||||||
|
&& cd aiocoap \
|
||||||
|
&& git reset --hard 0df6a1e44582de99ae944b6a7536d08e2a612e8f \
|
||||||
|
&& pip3 install --no-cache-dir . \
|
||||||
&& apk del \
|
&& apk del \
|
||||||
git make gcc g++ autoconf automake libtool \
|
git make gcc python3-dev autoconf automake musl-dev \
|
||||||
&& rm -rf /usr/src/libcoap
|
&& rm -rf /usr/src/aiocoap
|
||||||
|
|
||||||
##
|
##
|
||||||
# Install component packages
|
# Install component packages
|
||||||
|
@ -129,4 +133,3 @@ RUN apk add --no-cache \
|
||||||
&& apk del \
|
&& apk del \
|
||||||
mariadb-dev postgresql-dev freetds-dev \
|
mariadb-dev postgresql-dev freetds-dev \
|
||||||
gcc g++ musl-dev python3-dev make
|
gcc g++ musl-dev python3-dev make
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue