Commit 16c60719 authored by Federico Sismondi's avatar Federico Sismondi

Adding files for WoT testing tool

parent 0f05a79e
FROM ubuntu:16.04
MAINTAINER federico.sismondi@inria.fr
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get -y -qq install apt-utils
RUN apt-get -y -qq install python3-dev
RUN apt-get -y -qq install build-essential
RUN apt-get -y -qq install python3-setuptools
RUN apt-get -y -qq install python3-pip
RUN apt-get -y -qq install python-pip
RUN apt-get -y -qq install supervisor
RUN apt-get -y -qq install net-tools
RUN apt-get -y -qq install make
RUN apt-get -y -qq install locales && locale-gen en_US.UTF-8
# Set the locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
#RUN apt-get -y -qq install tcpdump
## HACK to avoid "cannot open shared object file: Permission denied" , see https://github.com/dotcloud/docker/issues/5490
#RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump
# upgrade pip
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
ADD . /ioppytest
ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
# Makefile entrypoint
RUN make install-python-dependencies
#RUN groupadd -g 500 coap && useradd -u 500 -g 500 coap
#USER coap
# launch processes
CMD ["/usr/bin/supervisord", "--nodaemon", "--configuration", "envs/wot_testing_tool/supervisor.docker.conf.ini"]
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
; no need of finterop UI when running tool as standalone
[program:ui-adaptor]
command = /usr/bin/python3 -m ioppytest.ui_adaptor wot
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
redirect_stderr=true
stdout_logfile = /var/log/ui_adaptor-stdout.log
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
;[program:test-coordinator]
;command = /usr/bin/python3 -m ioppytest.test_coordinator wot
;autorestart=false
;stopsignal=INT
;stopasgroup=true
;loglevel=debug
;redirect_stderr=true
;stdout_logfile = /var/log/test_coordinator-stdout.log
;stdout_logfile_maxbytes = 10MB
;stdout_logfile_backups = 5
[program:tat]
directory= ./ioppytest/test_analysis_tool
command = sh -c "sleep 3;/usr/bin/python3 -m ttproto service_amqp --dissector --protocol coap "
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
redirect_stderr=true
stdout_logfile = /var/log/tat-stdout.log
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-router]
command = sh -c "sleep 7;/usr/bin/python3 -m ioppytest.packet_router WOT_CFG_01"
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
redirect_stderr=true
stdout_logfile = /var/log/packet_router-stdout.log
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
[program:packet-sniffer]
command = sh -c "sleep 10;/usr/bin/python3 -m ioppytest.packet_sniffer ipv6_tun"
user=root
stopsignal=INT
stopasgroup=true
autorestart=false
loglevel=info
stdout_logfile = /var/log/packet_sniffer-stdout.log
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
redirect_stderr=true
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:welcome_message]
command = /usr/bin/python3 -m ioppytest_cli gui_display_message "Starting ioppytest testing tool.."
startretries=0
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker stdout
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:ui-adaptor]
command = /usr/bin/python3 -m ioppytest.ui_adaptor wot
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker stdout
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:tat] ; no timeout, given that TAT takes a lot of time to load
directory= ./ioppytest/test_analysis_tool
command = /usr/bin/python3 -m ttproto service_amqp --dissector --protocol coap
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker stdout
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:packet-router]
command = sh -c "sleep 7;/usr/bin/python3 -m ioppytest.packet_router WOT_CFG_01"
autorestart=false
stopsignal=INT
stopasgroup=true
loglevel=debug
; for sending logs to docker stdout
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:packet-sniffer]
command = sh -c "sleep 10;/usr/bin/python3 -m ioppytest.packet_sniffer ipv6_tun"
user=root
stopsignal=INT
stopasgroup=true
autorestart=false
loglevel=info
; for sending logs to docker stdout
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment