Sign inSign up

gabilm/sdn-iot-oscore-debian

By gabilm

•Updated over 3 years ago

Image
1

437

gabilm/sdn-iot-oscore-debian repository overview

FROM --platform=linux/amd64 debian:11.5-slim

MAINTAINER [email protected]

RUN \
    adduser --system sdniot && \
    echo "sdniot:sdniot" | chpasswd

ENV SRC_PATH /var/opt/
WORKDIR $SRC_PATH

RUN apt-get update
RUN apt-get check
RUN apt-get dist-upgrade -y
RUN apt-get install -y iproute2 iputils-ping tcpdump net-tools python3 autoconf pip procps vim git libtool libconfig-dev


RUN \
	git clone https://github.com/eriptic/uoscore-uedhoc && \
	cd uoscore-uedhoc && \
	git checkout 57452e3df994136ca63fb0d26df9d44ada35c8ae && \
	git submodule update --init --recursive && \
	cd externals/mbedtls/ && \
	make install && \
	cd ../.. && \
	make

RUN \
	git clone https://github.com/obgm/libcoap && \
	cd libcoap && \
	./autogen.sh && \
	./configure --disable-doxygen --disable-manpages && \
	make && \
	make install

#this git is currently protected
#RUN \
#       git clone https://github.com/gabilm/sdn-iot
# tag 1.2 includes oscore client and server
# tag 1.3 includes oscore client and server, and edhoc initiator and responder 

COPY ./routes.sh .
RUN chmod +x routes.sh
RUN pip3 install --upgrade "aiocoap[all]"
RUN pip3 install transitions
RUN pip3 install cbor2 libconf yangson
RUN git clone https://github.com/ltn22/pyang.git 
RUN cd pyang/ && python3 setup.py install --prefix=/usr/local

ENTRYPOINT []
CMD ["/var/opt/routes.sh"]

ENV SRC_PATH /home/sdniot
WORKDIR $SRC_PATH

Tag summary

Content type

Image

Digest

sha256:f6b0dddf4…

Size

747.9 MB

Last updated

over 3 years ago

docker pull gabilm/sdn-iot-oscore-debian:1.12