Research Article

Software-Defined Virtual Testbed for IoT Systems

Listing 3

Virtual device container configuration.
FROM tszydlo/docker–fogdevices
RUN apk add py-setuptools
RUN easy_install-2.7 requests
RUN apk update && apk add ca-certificates wget && update-ca-certificates
RUN export MRAA_FOGDEVICES_PLATFORM_ID=''DEVICE_ID''
RUN export MRAA_FOGDEVICES_PLATFORM_BROKER=''xxx.xxx''
RUN cd /root
RUN wget https://foo.net/application.py
CMD python application.py SERIAL_NUMBER