MeetBot

Tested on Ubuntu Xenial

Using this docker container: https://hub.docker.com/r/edacoreinfra/meetbot/ https://github.com/edacore-infra/docker-meetbot

Take a very small VM dedicated for this:

sudo su
mkdir -p /root/docker-meetbot/conf
mkdir -p /root/docker-meetbot/logs
mkdir -p /root/docker-meetbot/data
echo "deb http://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D
sudo apt-get update
sudo apt-get install docker-engine
docker run --name="meetbot-running" -d --network=host \
          --env NICK="meetbot-ninux" \
          --env IRC_SERVERS="irc.freenode.net:6667" \
          --env IRC_CHANNELS="#ninux.org" \
          --env URL_INFO="http://meetbot.ninux.org" \
          --env LOG_URL_PREFIX="http://meetbot.ninux.org" \
          --env LOG_DIR="/data/public_html/" \
          --env LOG_PATTERN="%(meetingname)s/%%Y/%(meetingname)s.%%F-%%H.%%M" \
          -v /root/docker-meetbot/conf:/conf \
          -v /root/docker-meetbot/data:/data \
          -v /root/docker-meetbot/logs:/logs edacoreinfra/meetbot

Use a small web server to serve /root/docker-meetbot/data

docker run --network=host --name some-nginx \
       -v /root/docker-meetbot/data/public_html/:/usr/share/nginx/html:ro \
       -v /root/default.conf:/etc/nginx/conf.d/default.conf \
       -d nginx

root@meetbot:~# cat default.conf
server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;
    #access_log  /var/log/nginx/log/host.access.log  main;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}
l'ultima modifica รจ del 2017-02-22 15:22:25, fatta da macsp