Outils pour utilisateurs

Outils du site


matrix:installation_des_images_docker

Installation des images docker

Récupération depuis git

root@tempstest:/home/karth# mkdir docker-git
root@tempstest:/home/karth# cd docker-git

root@tempstest:/home/karth# git clone https://github.com/karthanistyr/matrix-synapse-docker
Cloning into 'matrix-synapse-docker'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 27 (delta 6), reused 21 (delta 5), pack-reused 0
Unpacking objects: 100% (27/27), done.

root@tempstest:/home/karth# git clone https://github.com/karthanistyr/riot-web-docker
Cloning into 'riot-web-docker'...
remote: Counting objects: 22, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 22 (delta 4), reused 16 (delta 4), pack-reused 0
Unpacking objects: 100% (22/22), done.

root@tempstest:/home/karth# git clone https://github.com/karthanistyr/matrix-postgres-docker
Cloning into 'matrix-postgres-docker'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 12 (delta 1), reused 8 (delta 0), pack-reused 0
Unpacking objects: 100% (12/12), done.

root@tempstest:/home/karth# git clone https://github.com/karthanistyr/coturn-docker
Cloning into 'coturn-docker'...
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 17 (delta 3), reused 10 (delta 2), pack-reused 0
Unpacking objects: 100% (17/17), done.

root@tempstest:/home/karth# git clone https://github.com/karthanistyr/matrix-riot-coturn-postgres-docker-compose
Cloning into 'matrix-riot-coturn-postgres-docker-compose'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 12 (delta 2), reused 8 (delta 2), pack-reused 0
Unpacking objects: 100% (12/12), done.

Builder les images

D'après master/README.md:

karthanistyr/matrix-synapse

root@tempstest:/home/karth/docker-git# cd matrix-synapse-docker/
root@tempstest:/home/karth/docker-git/matrix-synapse-docker# ls
Dockerfile  LICENSE  README.md  scripts

root@tempstest:/home/karth/docker-git/matrix-synapse-docker# docker build --build-arg SERVER_NAME=temptest.draak.fr -t karthanistyr/matrix-synapse .
Sending build context to Docker daemon  103.4kB

Step 1/34 : FROM alpine:3.7
3.7: Pulling from library/alpine
ff3a5c916c92: Pulling fs layer
ff3a5c916c92: Verifying Checksum
ff3a5c916c92: Download complete
ff3a5c916c92: Pull complete
Digest: sha256:7df6db5aa61ae9480f52f0b3a06a140ab98d427f86d8d5de0bedab9b8df6b1c0
Status: Downloaded newer image for alpine:3.7
 ---> 3fd9065eaf02
Step 2/34 : LABEL maintainer="http://github.com/karthanistyr"
 ---> Running in f0a471342b6c
Removing intermediate container f0a471342b6c
 ---> 4b58b6554c23
Step 3/34 : ENV RT_DEPS="python2 libjpeg zlib sqlite libpq"
 ---> Running in ad8ee5ae4736
Removing intermediate container ad8ee5ae4736
 ---> 9e5c6a8e781d
Step 4/34 : ENV BUILD_DEPS="git gcc make shadow py2-pip python2-dev musl-dev libffi-dev libressl-dev linux-headers jpeg-dev zlib-dev postgresql-dev"
 ---> Running in 68e836870cca
Removing intermediate container 68e836870cca
 ---> 1c554a857619
Step 5/34 : RUN apk update && apk add $RT_DEPS $BUILD_DEPS
 ---> Running in 73dda9571ced
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-145-g948cf8145a [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-146-gc8d008ade6 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 9050 distinct packages available
(1/52) Upgrading musl (1.1.18-r2 -> 1.1.18-r3)
(2/52) Installing binutils-libs (2.28-r3)
(3/52) Installing binutils (2.28-r3)
(4/52) Installing gmp (6.1.2-r1)
(5/52) Installing isl (0.18-r0)
(6/52) Installing libgomp (6.4.0-r5)
(7/52) Installing libatomic (6.4.0-r5)
(8/52) Installing pkgconf (1.3.10-r0)
(9/52) Installing libgcc (6.4.0-r5)
(10/52) Installing mpfr3 (3.1.5-r1)
(11/52) Installing mpc1 (1.0.3-r1)
(12/52) Installing libstdc++ (6.4.0-r5)
(13/52) Installing gcc (6.4.0-r5)
(14/52) Installing ca-certificates (20171114-r0)
(15/52) Installing libssh2 (1.8.0-r2)
(16/52) Installing libcurl (7.59.0-r0)
(17/52) Installing expat (2.2.5-r0)
(18/52) Installing pcre2 (10.30-r0)
(19/52) Installing git (2.15.0-r1)
(20/52) Installing libjpeg-turbo (1.5.2-r0)
(21/52) Installing libjpeg-turbo-dev (1.5.2-r0)
(22/52) Installing jpeg-dev (8-r6)
(23/52) Upgrading musl-utils (1.1.18-r2 -> 1.1.18-r3)
(24/52) Installing libffi (3.2.1-r4)
(25/52) Installing libffi-dev (3.2.1-r4)
(26/52) Installing libjpeg (8-r6)
(27/52) Installing db (5.3.28-r0)
(28/52) Installing libsasl (2.1.26-r11)
(29/52) Installing libldap (2.4.45-r3)
(30/52) Installing libpq (10.3-r0)
(31/52) Installing libressl2.6-libtls (2.6.3-r0)
(32/52) Installing libressl-dev (2.6.3-r0)
(33/52) Installing linux-headers (4.4.6-r2)
(34/52) Installing make (4.2.1-r0)
(35/52) Installing musl-dev (1.1.18-r3)
(36/52) Installing postgresql-libs (10.3-r0)
(37/52) Installing postgresql-dev (10.3-r0)
(38/52) Installing libbz2 (1.0.6-r6)
(39/52) Installing gdbm (1.13-r1)
(40/52) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(41/52) Installing ncurses-terminfo (6.0_p20171125-r0)
(42/52) Installing ncurses-libs (6.0_p20171125-r0)
(43/52) Installing readline (7.0.003-r0)
(44/52) Installing sqlite-libs (3.21.0-r0)
(45/52) Installing python2 (2.7.14-r2)
(46/52) Installing py-setuptools (33.1.1-r1)
(47/52) Installing py2-pip (9.0.1-r1)
(48/52) Installing python2-dev (2.7.14-r2)
(49/52) Installing linux-pam (1.3.0-r0)
(50/52) Installing shadow (4.5-r0)
(51/52) Installing sqlite (3.21.0-r0)
(52/52) Installing zlib-dev (1.2.11-r1)
Executing busybox-1.27.2-r7.trigger
Executing ca-certificates-20171114-r0.trigger
OK: 215 MiB in 61 packages
Removing intermediate container 73dda9571ced
 ---> 8e0b6294ca62
Step 6/34 : ENV SYNAPSE_VERSION=v0.27.2
 ---> Running in 68e80c82a9df
Removing intermediate container 68e80c82a9df
 ---> 051eb95c9c90
Step 7/34 : ENV CHECKOUT_DIR=synapse
 ---> Running in be81692fec8d
Removing intermediate container be81692fec8d
 ---> 69e790ad5c7e
Step 8/34 : RUN git clone --branch $SYNAPSE_VERSION https://github.com/matrix-org/synapse $CHECKOUT_DIR
 ---> Running in ad2edc1d2ffa
Cloning into 'synapse'...
Note: checking out '691f8492fb882d4e270993743ff928328a8e97e9'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Removing intermediate container ad2edc1d2ffa
 ---> bc328d7ec026
Step 9/34 : RUN pip install --upgrade pip
 ---> Running in 4b3855b73d64
Collecting pip
  Downloading pip-9.0.3-py2.py3-none-any.whl (1.4MB)
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-9.0.3
Removing intermediate container 4b3855b73d64
 ---> 50cacab94c14
Step 10/34 : RUN python $CHECKOUT_DIR/synapse/python_dependencies.py | xargs pip install --upgrade
 ---> Running in 59704a6235b3
Collecting pysaml2>=3.0.0
  Downloading pysaml2-4.5.0.tar.gz (20.0MB)
Collecting msgpack-python>=0.3.0
  Downloading msgpack-python-0.5.6.tar.gz (138kB)
Collecting daemonize
  Downloading daemonize-2.4.7-py2.py3-none-any.whl
Collecting frozendict>=0.4
  Downloading frozendict-1.2.tar.gz
Collecting psutil>=2.0.0
  Downloading psutil-5.4.3.tar.gz (412kB)
Collecting pyopenssl>=0.14
  Downloading pyOpenSSL-17.5.0-py2.py3-none-any.whl (53kB)
Collecting pydenticon
  Downloading pydenticon-0.3.1.tar.gz
Collecting pymacaroons-pynacl
  Downloading pymacaroons_pynacl-0.9.3-py2.py3-none-any.whl
Collecting service_identity>=1.0.0
  Downloading service_identity-17.0.0-py2.py3-none-any.whl
Collecting signedjson>=1.0.0
  Downloading signedjson-1.0.0-py2.py3-none-any.whl
Collecting pyyaml
  Downloading PyYAML-3.12.tar.gz (253kB)
Collecting matrix-synapse-ldap3>=0.1
  Downloading matrix-synapse-ldap3-0.1.3.tar.gz
Collecting bleach>=1.4.2
  Downloading bleach-2.1.3-py2.py3-none-any.whl
Collecting unpaddedbase64>=1.1.0
  Downloading unpaddedbase64-1.1.0-py2-none-any.whl
Collecting pillow
  Downloading Pillow-5.1.0.tar.gz (14.3MB)
Collecting pyasn1
  Downloading pyasn1-0.4.2-py2.py3-none-any.whl (71kB)
Collecting ujson
  Downloading ujson-1.35.tar.gz (192kB)
Collecting pynacl>=1.2.1
  Downloading PyNaCl-1.2.1.tar.gz (3.3MB)
Collecting netaddr>=0.7.18
  Downloading netaddr-0.7.19-py2.py3-none-any.whl (1.6MB)
Collecting jsonschema>=2.5.1
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl
Collecting blist
  Downloading blist-1.3.6.tar.gz (122kB)
Collecting canonicaljson>=1.0.0
  Downloading canonicaljson-1.1.0-py2.py3-none-any.whl
Collecting matrix_angular_sdk>=0.6.8
  Downloading matrix-angular-sdk-0.6.8.tar.gz (775kB)
Collecting Jinja2>=2.8
  Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
Collecting affinity
  Downloading affinity-0.1.0.tar.gz
Collecting Twisted>=16.0.0
  Downloading Twisted-17.9.0.tar.bz2 (3.0MB)
Collecting bcrypt
  Downloading bcrypt-3.1.4.tar.gz (42kB)
Collecting phonenumbers>=8.2.0
  Downloading phonenumbers-8.9.3-py2.py3-none-any.whl (3.0MB)
Collecting requests>=1.0.0 (from pysaml2>=3.0.0)
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
Collecting future (from pysaml2>=3.0.0)
  Downloading future-0.16.0.tar.gz (824kB)
Collecting cryptography (from pysaml2>=3.0.0)
  Downloading cryptography-2.2.2.tar.gz (443kB)
Collecting pytz (from pysaml2>=3.0.0)
  Downloading pytz-2018.3-py2.py3-none-any.whl (509kB)
Collecting python-dateutil (from pysaml2>=3.0.0)
  Downloading python_dateutil-2.7.2-py2.py3-none-any.whl (212kB)
Collecting defusedxml (from pysaml2>=3.0.0)
  Downloading defusedxml-0.5.0-py2.py3-none-any.whl
Collecting six (from pysaml2>=3.0.0)
  Downloading six-1.11.0-py2.py3-none-any.whl
Collecting attrs (from service_identity>=1.0.0)
  Downloading attrs-17.4.0-py2.py3-none-any.whl
Collecting pyasn1-modules (from service_identity>=1.0.0)
  Downloading pyasn1_modules-0.2.1-py2.py3-none-any.whl (60kB)
Collecting ldap3>=0.9.5 (from matrix-synapse-ldap3>=0.1)
  Downloading ldap3-2.4.1-py2.py3-none-any.whl (374kB)
Collecting html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre (from bleach>=1.4.2)
  Downloading html5lib-1.0.1-py2.py3-none-any.whl (117kB)
Collecting cffi>=1.4.1 (from pynacl>=1.2.1)
  Downloading cffi-1.11.5.tar.gz (438kB)
Collecting functools32; python_version == "2.7" (from jsonschema>=2.5.1)
  Downloading functools32-3.2.3-2.tar.gz
Collecting simplejson>=3.6.5 (from canonicaljson>=1.0.0)
  Downloading simplejson-3.13.2.tar.gz (79kB)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.8)
  Downloading MarkupSafe-1.0.tar.gz
Collecting zope.interface>=3.6.0 (from Twisted>=16.0.0)
  Downloading zope.interface-4.4.3.tar.gz (147kB)
Collecting constantly>=15.1 (from Twisted>=16.0.0)
  Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from Twisted>=16.0.0)
  Downloading incremental-17.5.0-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from Twisted>=16.0.0)
  Downloading Automat-0.6.0-py2.py3-none-any.whl
Collecting hyperlink>=17.1.1 (from Twisted>=16.0.0)
  Downloading hyperlink-18.0.0-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=1.0.0->pysaml2>=3.0.0)
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting certifi>=2017.4.17 (from requests>=1.0.0->pysaml2>=3.0.0)
  Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB)
Collecting urllib3<1.23,>=1.21.1 (from requests>=1.0.0->pysaml2>=3.0.0)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
Collecting idna<2.7,>=2.5 (from requests>=1.0.0->pysaml2>=3.0.0)
  Downloading idna-2.6-py2.py3-none-any.whl (56kB)
Collecting asn1crypto>=0.21.0 (from cryptography->pysaml2>=3.0.0)
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
Collecting enum34 (from cryptography->pysaml2>=3.0.0)
  Downloading enum34-1.1.6-py2-none-any.whl
Collecting ipaddress (from cryptography->pysaml2>=3.0.0)
  Downloading ipaddress-1.0.19.tar.gz
Collecting webencodings (from html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre->bleach>=1.4.2)
  Downloading webencodings-0.5.1-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.4.1->pynacl>=1.2.1)
  Downloading pycparser-2.18.tar.gz (245kB)
Collecting setuptools (from zope.interface>=3.6.0->Twisted>=16.0.0)
  Downloading setuptools-39.0.1-py2.py3-none-any.whl (569kB)
Installing collected packages: chardet, certifi, urllib3, idna, requests, future, asn1crypto, six, pycparser, cffi, enum34, ipaddress, cryptography, pytz, pyopenssl, python-dateutil, defusedxml, pysaml2, msgpack-python, daemonize, frozendict, psutil, pillow, pydenticon, pynacl, pymacaroons-pynacl, attrs, pyasn1, pyasn1-modules, service-identity, unpaddedbase64, simplejson, canonicaljson, signedjson, pyyaml, setuptools, zope.interface, constantly, incremental, Automat, hyperlink, Twisted, ldap3, matrix-synapse-ldap3, webencodings, html5lib, bleach, ujson, netaddr, functools32, jsonschema, blist, matrix-angular-sdk, MarkupSafe, Jinja2, affinity, bcrypt, phonenumbers
  Running setup.py install for future: started
    Running setup.py install for future: finished with status 'done'
  Running setup.py install for pycparser: started
    Running setup.py install for pycparser: finished with status 'done'
  Running setup.py install for cffi: started
    Running setup.py install for cffi: finished with status 'done'
  Running setup.py install for ipaddress: started
    Running setup.py install for ipaddress: finished with status 'done'
  Running setup.py install for cryptography: started
    Running setup.py install for cryptography: still running...
    Running setup.py install for cryptography: finished with status 'done'
  Running setup.py install for pysaml2: started
    Running setup.py install for pysaml2: finished with status 'done'
  Running setup.py install for msgpack-python: started
    Running setup.py install for msgpack-python: finished with status 'done'
  Running setup.py install for frozendict: started
    Running setup.py install for frozendict: finished with status 'done'
  Running setup.py install for psutil: started
    Running setup.py install for psutil: finished with status 'done'
  Running setup.py install for pillow: started
    Running setup.py install for pillow: finished with status 'done'
  Running setup.py install for pydenticon: started
    Running setup.py install for pydenticon: finished with status 'done'
  Running setup.py install for pynacl: started
    Running setup.py install for pynacl: still running...
    Running setup.py install for pynacl: still running...
    Running setup.py install for pynacl: still running...
    Running setup.py install for pynacl: still running...
    Running setup.py install for pynacl: finished with status 'done'
  Running setup.py install for simplejson: started
    Running setup.py install for simplejson: finished with status 'done'
  Running setup.py install for pyyaml: started
    Running setup.py install for pyyaml: finished with status 'done'
  Found existing installation: setuptools 33.1.1.post20171031
    Uninstalling setuptools-33.1.1.post20171031:
      Successfully uninstalled setuptools-33.1.1.post20171031
  Running setup.py install for zope.interface: started
    Running setup.py install for zope.interface: finished with status 'done'
  Running setup.py install for Twisted: started
    Running setup.py install for Twisted: finished with status 'done'
  Running setup.py install for matrix-synapse-ldap3: started
    Running setup.py install for matrix-synapse-ldap3: finished with status 'done'
  Running setup.py install for ujson: started
    Running setup.py install for ujson: finished with status 'done'
  Running setup.py install for functools32: started
    Running setup.py install for functools32: finished with status 'done'
  Running setup.py install for blist: started
    Running setup.py install for blist: finished with status 'done'
  Running setup.py install for matrix-angular-sdk: started
    Running setup.py install for matrix-angular-sdk: finished with status 'done'
  Running setup.py install for MarkupSafe: started
    Running setup.py install for MarkupSafe: finished with status 'done'
  Running setup.py install for affinity: started
    Running setup.py install for affinity: finished with status 'done'
  Running setup.py install for bcrypt: started
    Running setup.py install for bcrypt: finished with status 'done'
Successfully installed Automat-0.6.0 Jinja2-2.10 MarkupSafe-1.0 Twisted-17.9.0 affinity-0.1.0 asn1crypto-0.24.0 attrs-17.4.0 bcrypt-3.1.4 bleach-2.1.3 blist-1.3.6 canonicaljson-1.1.0 certifi-2018.1.18 cffi-1.11.5 chardet-3.0.4 constantly-15.1.0 cryptography-2.2.2 daemonize-2.4.7 defusedxml-0.5.0 enum34-1.1.6 frozendict-1.2 functools32-3.2.3.post2 future-0.16.0 html5lib-1.0.1 hyperlink-18.0.0 idna-2.6 incremental-17.5.0 ipaddress-1.0.19 jsonschema-2.6.0 ldap3-2.4.1 matrix-angular-sdk-0.6.8 matrix-synapse-ldap3-0.1.3 msgpack-python-0.5.6 netaddr-0.7.19 phonenumbers-8.9.3 pillow-5.1.0 psutil-5.4.3 pyasn1-0.4.2 pyasn1-modules-0.2.1 pycparser-2.18 pydenticon-0.3.1 pymacaroons-pynacl-0.9.3 pynacl-1.2.1 pyopenssl-17.5.0 pysaml2-4.5.0 python-dateutil-2.7.2 pytz-2018.3 pyyaml-3.12 requests-2.18.4 service-identity-17.0.0 setuptools-39.0.1 signedjson-1.0.0 simplejson-3.13.2 six-1.11.0 ujson-1.35 unpaddedbase64-1.1.0 urllib3-1.22 webencodings-0.5.1 zope.interface-4.4.3
Removing intermediate container 59704a6235b3
 ---> 85c545e1461d
Step 11/34 : RUN pip install --upgrade psycopg2
 ---> Running in d30bfc12239b
Collecting psycopg2
  Downloading psycopg2-2.7.4.tar.gz (425kB)
Installing collected packages: psycopg2
  Running setup.py install for psycopg2: started
    Running setup.py install for psycopg2: finished with status 'done'
Successfully installed psycopg2-2.7.4
Removing intermediate container d30bfc12239b
 ---> bfcf37e6b31c
Step 12/34 : RUN pip install ./$CHECKOUT_DIR/
 ---> Running in 6380fa98bfbb
Processing /synapse
Requirement already satisfied: pysaml2>=3.0.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: msgpack-python>=0.3.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: daemonize in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: frozendict>=0.4 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: psutil>=2.0.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pyopenssl>=0.14 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pydenticon in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pymacaroons-pynacl in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: service_identity>=1.0.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: signedjson>=1.0.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pyyaml in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: matrix-synapse-ldap3>=0.1 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: bleach>=1.4.2 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: unpaddedbase64>=1.1.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pillow in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pyasn1 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: ujson in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: pynacl>=1.2.1 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: netaddr>=0.7.18 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: jsonschema>=2.5.1 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: blist in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: canonicaljson>=1.0.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: matrix_angular_sdk>=0.6.8 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: Jinja2>=2.8 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: affinity in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: Twisted>=16.0.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: bcrypt in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: phonenumbers>=8.2.0 in /usr/lib/python2.7/site-packages (from matrix-synapse==0.27.2)
Requirement already satisfied: requests>=1.0.0 in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: future in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: cryptography in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: pytz in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: python-dateutil in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: defusedxml in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: attrs in /usr/lib/python2.7/site-packages (from service_identity>=1.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: pyasn1-modules in /usr/lib/python2.7/site-packages (from service_identity>=1.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: ldap3>=0.9.5 in /usr/lib/python2.7/site-packages (from matrix-synapse-ldap3>=0.1->matrix-synapse==0.27.2)
Requirement already satisfied: html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre in /usr/lib/python2.7/site-packages (from bleach>=1.4.2->matrix-synapse==0.27.2)
Requirement already satisfied: cffi>=1.4.1 in /usr/lib/python2.7/site-packages (from pynacl>=1.2.1->matrix-synapse==0.27.2)
Requirement already satisfied: functools32; python_version == "2.7" in /usr/lib/python2.7/site-packages (from jsonschema>=2.5.1->matrix-synapse==0.27.2)
Requirement already satisfied: simplejson>=3.6.5 in /usr/lib/python2.7/site-packages (from canonicaljson>=1.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib/python2.7/site-packages (from Jinja2>=2.8->matrix-synapse==0.27.2)
Requirement already satisfied: zope.interface>=3.6.0 in /usr/lib/python2.7/site-packages (from Twisted>=16.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: constantly>=15.1 in /usr/lib/python2.7/site-packages (from Twisted>=16.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: incremental>=16.10.1 in /usr/lib/python2.7/site-packages (from Twisted>=16.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: Automat>=0.3.0 in /usr/lib/python2.7/site-packages (from Twisted>=16.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: hyperlink>=17.1.1 in /usr/lib/python2.7/site-packages (from Twisted>=16.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests>=1.0.0->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests>=1.0.0->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests>=1.0.0->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python2.7/site-packages (from requests>=1.0.0->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python2.7/site-packages (from cryptography->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: enum34 in /usr/lib/python2.7/site-packages (from cryptography->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: ipaddress in /usr/lib/python2.7/site-packages (from cryptography->pysaml2>=3.0.0->matrix-synapse==0.27.2)
Requirement already satisfied: webencodings in /usr/lib/python2.7/site-packages (from html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre->bleach>=1.4.2->matrix-synapse==0.27.2)
Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->pynacl>=1.2.1->matrix-synapse==0.27.2)
Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from zope.interface>=3.6.0->Twisted>=16.0.0->matrix-synapse==0.27.2)
Installing collected packages: matrix-synapse
  Running setup.py install for matrix-synapse: started
    Running setup.py install for matrix-synapse: finished with status 'done'
Successfully installed matrix-synapse-0.27.2
Removing intermediate container 6380fa98bfbb
 ---> 1cbbe1bfa7f5
Step 13/34 : COPY scripts/ensure_user_and_group.sh /build/ensure_user_and_group.sh
 ---> 37cb8aa93e4a
Step 14/34 : COPY scripts/alter_config.sh /build/alter_config.sh
 ---> 4d9a4fefb805
Step 15/34 : COPY scripts/generate_config.sh /build/generate_config.sh
 ---> 618e70544173
Step 16/34 : ARG SYNAPSE_USERNAME=matrix-synapse
 ---> Running in a27258b26bf0
Removing intermediate container a27258b26bf0
 ---> 5aa08970595c
Step 17/34 : ARG SYNAPSE_GROUPNAME=matrix-synapse
 ---> Running in 6909762ce77f
Removing intermediate container 6909762ce77f
 ---> bd94809aa57c
Step 18/34 : RUN /build/ensure_user_and_group.sh $SYNAPSE_USERNAME $SYNAPSE_GROUPNAME
 ---> Running in cff4af0644e9
+ Verifying group matrix-synapse and user matrix-synapse exist...
  Group matrix-synapse does not exist -- creating.
  User matrix-synapse does not exist -- creating.
Removing intermediate container cff4af0644e9
 ---> aef10693521c
Step 19/34 : ENV DATA_DIR="/data"
 ---> Running in 1c4e16e8649e
Removing intermediate container 1c4e16e8649e
 ---> 564c20d8b286
Step 20/34 : RUN mkdir $DATA_DIR
 ---> Running in 07c393f39338
Removing intermediate container 07c393f39338
 ---> a52d5988d763
Step 21/34 : RUN mkdir /uploads
 ---> Running in 17ff5b5ecce4
Removing intermediate container 17ff5b5ecce4
 ---> 548377e68763
Step 22/34 : RUN mkdir /media_store
 ---> Running in 65810592fcd5
Removing intermediate container 65810592fcd5
 ---> 83e95470caf0
Step 23/34 : ARG SERVER_NAME
 ---> Running in 7f388f4d822c
Removing intermediate container 7f388f4d822c
 ---> 12cd85bd5c88
Step 24/34 : ARG CONFIG_FILE="synapse.config.yaml"
 ---> Running in 647192c3bb30
Removing intermediate container 647192c3bb30
 ---> 80ca648dbce3
Step 25/34 : ARG REPORT_STATS="no"
 ---> Running in 72013e42630c
Removing intermediate container 72013e42630c
 ---> 12f25c1613fc
Step 26/34 : RUN /build/generate_config.sh $SERVER_NAME $DATA_DIR/$CONFIG_FILE $REPORT_STATS
 ---> Running in 2645eee71a8f
Generating Synapse config file with values:
	  SERVER_NAME: temptest.draak.fr
	  REPORT_STATS: no
A config file has been generated in '/data/synapse.config.yaml' for server name 'temptest.draak.fr' with corresponding SSL keys and self-signed certificates. Please review this file and customise it to your needs.
If this server name is incorrect, you will need to regenerate the SSL certificates
Done.
Removing intermediate container 2645eee71a8f
 ---> 1f0e171368c3
Step 27/34 : RUN /build/alter_config.sh $DATA_DIR $CONFIG_FILE $SERVER_NAME
 ---> Running in 2d07fe6426be
Removing intermediate container 2d07fe6426be
 ---> 8b1d58416ab6
Step 28/34 : RUN chmod -R o+rw /data
 ---> Running in 9b7ddeede6fb
Removing intermediate container 9b7ddeede6fb
 ---> d6640c41ded3
Step 29/34 : RUN chmod -R o+rw /media_store
 ---> Running in 6d56bbb5af8f
Removing intermediate container 6d56bbb5af8f
 ---> e43367d86cf4
Step 30/34 : RUN chmod -R o+rw /uploads
 ---> Running in 3136e11f35b4
Removing intermediate container 3136e11f35b4
 ---> 68e707bc7be7
Step 31/34 : USER $SYNAPSE_USERNAME:$SYNAPSE_GROUPNAME
 ---> Running in baee1cb4fef6
Removing intermediate container baee1cb4fef6
 ---> 014fc4afc41a
Step 32/34 : ENTRYPOINT exec python -m synapse.app.homeserver -c $DATA_DIR/$CONFIG_FILE
 ---> Running in c014f0f28277
Removing intermediate container c014f0f28277
 ---> 4e51a018e27a
Step 33/34 : EXPOSE 8448
 ---> Running in e3184695a502
Removing intermediate container e3184695a502
 ---> 48122249ad0e
Step 34/34 : VOLUME ["$DATA_DIR", "/media_store", "/uploads"]
 ---> Running in 79e9a20db76a
Removing intermediate container 79e9a20db76a
 ---> 3c3638e3c2e4
Successfully built 3c3638e3c2e4
Successfully tagged karthanistyr/matrix-synapse:latest

karthanistyr/riot.im

Notez que SERVER_NAME et DEFAULT_HS_HOSTNAME sont à la même valeur: c'est normal car le serveur synapse et le client web riot.im sont hébergés sur la même machine temptest.draak.fr (ce qui n'est pas forcément toujours le cas).

root@tempstest:/home/karth/docker-git/matrix-synapse-docker# cd ../riot-web-docker/
root@tempstest:/home/karth/docker-git/riot-web-docker# ls
Dockerfile  LICENSE  README.md  scripts

root@tempstest:/home/karth/docker-git/riot-web-docker# docker build --build-arg SERVER_NAME=temptest.draak.fr DEFAULT_HS_HOSTNAME=temptest.draak.fr -t karthanistyr/riot.im .
Sending build context to Docker daemon  105.5kB

Step 1/35 : FROM alpine:3.7
 ---> 3fd9065eaf02
Step 2/35 : RUN apk update && apk add shadow openssl nodejs gnupg yarn
 ---> Running in 8668c04310d3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-145-g948cf8145a [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-146-gc8d008ade6 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 9050 distinct packages available
(1/36) Installing libgpg-error (1.27-r1)
(2/36) Installing libassuan (2.4.4-r0)
(3/36) Installing libcap (2.25-r1)
(4/36) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(5/36) Installing ncurses-terminfo (6.0_p20171125-r0)
(6/36) Installing ncurses-libs (6.0_p20171125-r0)
(7/36) Installing pinentry (1.0.0-r0)
Executing pinentry-1.0.0-r0.post-install
(8/36) Installing libbz2 (1.0.6-r6)
(9/36) Installing libgcrypt (1.8.1-r0)
(10/36) Installing gmp (6.1.2-r1)
(11/36) Installing nettle (3.3-r0)
(12/36) Installing libffi (3.2.1-r4)
(13/36) Installing libtasn1 (4.12-r3)
(14/36) Installing p11-kit (0.23.2-r2)
(15/36) Installing libunistring (0.9.7-r0)
(16/36) Installing gnutls (3.6.1-r0)
(17/36) Installing libksba (1.3.5-r0)
(18/36) Installing db (5.3.28-r0)
(19/36) Installing libsasl (2.1.26-r11)
(20/36) Installing libldap (2.4.45-r3)
(21/36) Installing npth (1.5-r1)
(22/36) Installing gnupg (2.2.3-r0)
(23/36) Installing ca-certificates (20171114-r0)
(24/36) Installing nodejs-npm (8.9.3-r1)
(25/36) Installing c-ares (1.13.0-r0)
(26/36) Installing libcrypto1.0 (1.0.2o-r0)
(27/36) Installing libgcc (6.4.0-r5)
(28/36) Installing http-parser (2.7.1-r1)
(29/36) Installing libssl1.0 (1.0.2o-r0)
(30/36) Installing libstdc++ (6.4.0-r5)
(31/36) Installing libuv (1.17.0-r0)
(32/36) Installing nodejs (8.9.3-r1)
(33/36) Installing openssl (1.0.2o-r0)
(34/36) Installing linux-pam (1.3.0-r0)
(35/36) Installing shadow (4.5-r0)
(36/36) Installing yarn (1.3.2-r0)
Executing busybox-1.27.2-r7.trigger
Executing ca-certificates-20171114-r0.trigger
OK: 88 MiB in 47 packages
Removing intermediate container 8668c04310d3
 ---> 55efa3a2ebb1
Step 3/35 : RUN yarn global add npm
 ---> Running in ee2f17c00bf5
yarn global v1.3.2
[1/4] Resolving packages...
warning npm > npm-profile > make-fetch-happen > socks-proxy-agent > socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "npm@5.8.0" with binaries:
      - npm
      - npx
Done in 51.05s.
Removing intermediate container ee2f17c00bf5
 ---> 2bde80b1960d
Step 4/35 : RUN npm install -g http-server
 ---> Running in 9a3e7cd914aa
/usr/bin/http-server -> /usr/lib/node_modules/http-server/bin/http-server
/usr/bin/hs -> /usr/lib/node_modules/http-server/bin/http-server
+ http-server@0.11.1
added 23 packages from 25 contributors in 5.957s
Removing intermediate container 9a3e7cd914aa
 ---> d94f8ca62ead
Step 5/35 : ENV DOWNLOAD_DIR="/download"
 ---> Running in 48861899b79e
Removing intermediate container 48861899b79e
 ---> ae9bd7a73236
Step 6/35 : RUN mkdir $DOWNLOAD_DIR
 ---> Running in 7e2f9b1ca116
Removing intermediate container 7e2f9b1ca116
 ---> ce0ff4188ddd
Step 7/35 : RUN wget -O $DOWNLOAD_DIR/riot.asc https://riot.im/packages/keys/riot.asc
 ---> Running in 770dae347b37
Connecting to riot.im (104.27.179.139:443)
riot.asc             100% |*******************************|  8239   0:00:00 ETA

Removing intermediate container 770dae347b37
 ---> 215d2de9acd0
Step 8/35 : RUN gpg --import $DOWNLOAD_DIR/riot.asc
 ---> Running in 8d354c6271da
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key E019645248E8F4A1: public key "riot.im (Package Signing key) <packages@riot.im>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Removing intermediate container 8d354c6271da
 ---> 00e512d8d787
Step 9/35 : ENV RIOT_VERSION=v0.13.5-cryptowarning.2
 ---> Running in 189dea54c766
Removing intermediate container 189dea54c766
 ---> 125aec453290
Step 10/35 : RUN wget -O $DOWNLOAD_DIR/riot-$RIOT_VERSION.tar.gz  https://github.com/vector-im/riot-web/releases/download/$RIOT_VERSION/riot-$RIOT_VERSION.tar.gz
 ---> Running in 50e111f3eb6a
Connecting to github.com (192.30.253.112:443)
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.160.99:443)
riot-v0.13.5-cryptow   0% |                               |   101k  0:01:48 ETA
riot-v0.13.5-cryptow  65% |********************           |  7263k  0:00:01 ETA
riot-v0.13.5-cryptow 100% |*******************************| 11064k  0:00:00 ETA

Removing intermediate container 50e111f3eb6a
 ---> cda1bf213512
Step 11/35 : RUN wget -O $DOWNLOAD_DIR/riot-$RIOT_VERSION.tar.gz.asc https://github.com/vector-im/riot-web/releases/download/$RIOT_VERSION/riot-$RIOT_VERSION.tar.gz.asc
 ---> Running in f9759d49d20f
Connecting to github.com (192.30.253.112:443)
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.65.216:443)
riot-v0.13.5-cryptow 100% |*******************************|   819   0:00:00 ETA

Removing intermediate container f9759d49d20f
 ---> 552f3ec0e209
Step 12/35 : RUN gpg --verify $DOWNLOAD_DIR/riot-$RIOT_VERSION.tar.gz.asc
 ---> Running in 92ba54a42595
gpg: assuming signed data in '/download/riot-v0.13.5-cryptowarning.2.tar.gz'
gpg: Signature made Mon Mar 26 14:51:03 2018 UTC
gpg:                using RSA key C0FC33162DD2A11D
gpg: Good signature from "riot.im (Package Signing key) <packages@riot.im>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 6FEB 6F83 D48B 9354 7E7D  FEDE E019 6452 48E8 F4A1
     Subkey fingerprint: FA9E E1AE 9F4F 22CD 7B4F  4499 C0FC 3316 2DD2 A11D
Removing intermediate container 92ba54a42595
 ---> f9cc0562f6f6
Step 13/35 : ENV WEBAPP_DIR="riot-web"
 ---> Running in f112410eafd1
Removing intermediate container f112410eafd1
 --->  
Step 14/35 : RUN tar -xvf $DOWNLOAD_DIR/riot-$RIOT_VERSION.tar.gz
 ---> Running in ec2a087f24e6
[ tar output ]
Removing intermediate container ec2a087f24e6
 ---> efb5e91db870
Step 15/35 : RUN mv riot-$RIOT_VERSION $WEBAPP_DIR
 ---> Running in 6ba4294e5433
Removing intermediate container 6ba4294e5433
 ---> 648ce948c24c
Step 16/35 : ENV CERT_NAME=riot-web-app-cert.pem
 ---> Running in b97378fddfa8
Removing intermediate container b97378fddfa8
 ---> d13e9768946a
Step 17/35 : ENV KEY_NAME=riot-web-app-key.pem
 ---> Running in 2f2492a8d268
Removing intermediate container 2f2492a8d268
 ---> 5b7ec983eb1d
Step 18/35 : ENV CERT_DIR="/certs"
 ---> Running in f6710543cb14
Removing intermediate container f6710543cb14
 ---> ed6a2c31d199
Step 19/35 : ARG SERVER_NAME
 ---> Running in 49219a44f0d1
Removing intermediate container 49219a44f0d1
 ---> 7e0121620a68
Step 20/35 : RUN mkdir $CERT_DIR
 ---> Running in a9bb7358273d
Removing intermediate container a9bb7358273d
 ---> 2faa6ae05fb9
Step 21/35 : RUN openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout $CERT_DIR/$KEY_NAME -out $CERT_DIR/$CERT_NAME -subj "/C=FR/ST=BarbedLand/O=BarbedGroup/CN=$SERVER_NAME"
 ---> Running in f81ab32da5cc
Generating a 4096 bit RSA private key
.......................................................................++
..++
writing new private key to '/certs/riot-web-app-key.pem'
-----
Removing intermediate container f81ab32da5cc
 ---> 0663ce70844c
Step 22/35 : RUN mkdir /build
 ---> Running in b9bb63cbb076
Removing intermediate container b9bb63cbb076
 ---> 176b20f991c9
Step 23/35 : COPY scripts/ensure_user_and_group.sh /build/ensure_user_and_group.sh
 ---> 392d0b6f52fb
Step 24/35 : COPY scripts/alter_config.sh /build/alter_config.sh
 ---> f01835b4ce56
Step 25/35 : ARG RIOT_USERNAME=matrix-riot-web
 ---> Running in 57bfdce28d3f
Removing intermediate container 57bfdce28d3f
 ---> 82e81577f1a7
Step 26/35 : ARG RIOT_GROUPNAME=matrix-riot-web
 ---> Running in 8b963c05d58f
Removing intermediate container 8b963c05d58f
 ---> 1fde6908b00a
Step 27/35 : ARG DEFAULT_HS_HOSTNAME=matrix.org
 ---> Running in cd70a2593c18
Removing intermediate container cd70a2593c18
 ---> 793eeeba3392
Step 28/35 : ARG DEFAULT_HS_PORT=8448
 ---> Running in bddea2766d11
Removing intermediate container bddea2766d11
 ---> 2190cfe5ea87
Step 29/35 : RUN /build/ensure_user_and_group.sh $RIOT_USERNAME $RIOT_GROUPNAME
 ---> Running in 9152bfba02c6
+ Verifying group matrix-riot-web and user matrix-riot-web exist...
  Group matrix-riot-web does not exist -- creating.
  User matrix-riot-web does not exist -- creating.
Removing intermediate container 9152bfba02c6
 ---> 47a7efb5984d
Step 30/35 : RUN chmod o+r $WEBAPP_DIR
 ---> Running in fb6b8248b370
Removing intermediate container fb6b8248b370
 ---> 2516ff0f5143
Step 31/35 : RUN /build/alter_config.sh $WEBAPP_DIR $DEFAULT_HS_HOSTNAME $DEFAULT_HS_PORT
 ---> Running in 19d55dca5248
Removing intermediate container 19d55dca5248
 ---> 241c591ef10c
Step 32/35 : USER $RIOT_USERNAME:$RIOT_GROUPNAME
 ---> Running in a9959076738c
Removing intermediate container a9959076738c
 ---> 839f3de3c46e
Step 33/35 : ENTRYPOINT exec http-server -S -C $CERT_DIR/$CERT_NAME -K $CERT_DIR/$KEY_NAME $WEBAPP_DIR
 ---> Running in ec40c87f7967
Removing intermediate container ec40c87f7967
 ---> df0af02e9fd2
Step 34/35 : EXPOSE 8080
 ---> Running in e0327a65f030
Removing intermediate container e0327a65f030
 ---> d7f1215a1225
Step 35/35 : VOLUME ["$CERT_DIR"]
 ---> Running in 74b134a37d8a
Removing intermediate container 74b134a37d8a
 ---> ad1be1be690c
Successfully built ad1be1be690c
Successfully tagged karthanistyr/riot.im:latest

karthanistyr/matrix-postgres

root@tempstest:/home/karth/docker-git/riot-web-docker# cd ../matrix-postgres-docker/
root@tempstest:/home/karth/docker-git/matrix-postgres-docker# ls
Dockerfile  LICENSE  README.md  scripts

Sending build context to Docker daemon  73.22kB

Step 1/7 : FROM postgres:10.3-alpine
10.3-alpine: Pulling from library/postgres
ff3a5c916c92: Already exists
a503b44e1ce0: Pulling fs layer
211706713093: Pulling fs layer
ea28caf317dd: Pulling fs layer
a9b37749335b: Pulling fs layer
f7e94ebc5400: Pulling fs layer
77dd3a51253d: Pulling fs layer
633a37734b12: Pulling fs layer
872e6b940bbb: Pulling fs layer
a9b37749335b: Waiting
f7e94ebc5400: Waiting
77dd3a51253d: Waiting
633a37734b12: Waiting
872e6b940bbb: Waiting
a503b44e1ce0: Verifying Checksum
a503b44e1ce0: Download complete
211706713093: Verifying Checksum
211706713093: Download complete
a503b44e1ce0: Pull complete
a9b37749335b: Verifying Checksum
a9b37749335b: Download complete
f7e94ebc5400: Download complete
211706713093: Pull complete
77dd3a51253d: Download complete
633a37734b12: Verifying Checksum
633a37734b12: Download complete
872e6b940bbb: Download complete
ea28caf317dd: Verifying Checksum
ea28caf317dd: Download complete
ea28caf317dd: Pull complete
a9b37749335b: Pull complete
f7e94ebc5400: Pull complete
77dd3a51253d: Pull complete
633a37734b12: Pull complete
872e6b940bbb: Pull complete
Digest: sha256:89c84fcccc147d403916f4d9964bc4d83297ea7c782d79b05dad5b6c172a7dce
Status: Downloaded newer image for postgres:10.3-alpine
 ---> f4f4231d6f0b
Step 2/7 : RUN apk update && apk add pwgen
 ---> Running in 1fc903dadb0d
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-145-g948cf8145a [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-146-gc8d008ade6 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 9051 distinct packages available
(1/1) Installing pwgen (2.08-r0)
Executing busybox-1.27.2-r7.trigger
OK: 22 MiB in 29 packages
Removing intermediate container 1fc903dadb0d
 ---> a8c2dfba0fce
Step 3/7 : RUN mkdir /build
 ---> Running in fedece607d84
Removing intermediate container fedece607d84
 ---> 40498a967d5d
Step 4/7 : COPY scripts/alter_db_config.sh /build/alter_db_config.sh
 ---> b86d1ce0b2c0
Step 5/7 : COPY scripts/create_and_output_pw.sh /build/create_and_output_pw.sh
 ---> c2fc2bd960dc
Step 6/7 : COPY scripts/create_db.sql /docker-entrypoint-initdb.d/create_db.sql
 ---> d6999c2169d7
Step 7/7 : RUN /build/alter_db_config.sh /docker-entrypoint-initdb.d/create_db.sql $(/build/create_and_output_pw.sh)
 ---> Running in 852e8cc37008
The generated user password is: [redacted]
Paste it in your matrix-synapse configuration file.
Removing intermediate container 852e8cc37008
 ---> c2a58c7d843f
Successfully built c2a58c7d843f
Successfully tagged karthanistyr/matrix-postgres:latest

karthanistyr/coturn

root@tempstest:/home/karth/docker-git/matrix-postgres-docker# cd ../coturn-docker/
root@tempstest:/home/karth/docker-git/coturn-docker# ls
Dockerfile  LICENSE  README.md  scripts

Sending build context to Docker daemon  84.99kB

Step 1/26 : FROM alpine:3.7
 ---> 3fd9065eaf02
Step 2/26 : ENV REAL_DEPS="sqlite libevent openssl"
 ---> Running in 84dcfc9e0316
Removing intermediate container 84dcfc9e0316
 ---> 7598cfe4752d
Step 3/26 : ENV BUILD_DEPS="git shadow pwgen g++ make sqlite-dev libevent-dev openssl-dev linux-headers"
 ---> Running in 390577395fda
Removing intermediate container 390577395fda
 ---> d7dc1b1b30ec
Step 4/26 : RUN apk update && apk add $REAL_DEPS $BUILD_DEPS
 ---> Running in 5c3b3508ced9
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-145-g948cf8145a [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-146-gc8d008ade6 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 9050 distinct packages available
(1/46) Upgrading musl (1.1.18-r2 -> 1.1.18-r3)
(2/46) Installing libgcc (6.4.0-r5)
(3/46) Installing libstdc++ (6.4.0-r5)
(4/46) Installing binutils-libs (2.28-r3)
(5/46) Installing binutils (2.28-r3)
(6/46) Installing gmp (6.1.2-r1)
(7/46) Installing isl (0.18-r0)
(8/46) Installing libgomp (6.4.0-r5)
(9/46) Installing libatomic (6.4.0-r5)
(10/46) Installing pkgconf (1.3.10-r0)
(11/46) Installing mpfr3 (3.1.5-r1)
(12/46) Installing mpc1 (1.0.3-r1)
(13/46) Installing gcc (6.4.0-r5)
(14/46) Installing musl-dev (1.1.18-r3)
(15/46) Installing libc-dev (0.7.1-r0)
(16/46) Installing g++ (6.4.0-r5)
(17/46) Installing ca-certificates (20171114-r0)
(18/46) Installing libssh2 (1.8.0-r2)
(19/46) Installing libcurl (7.59.0-r0)
(20/46) Installing expat (2.2.5-r0)
(21/46) Installing pcre2 (10.30-r0)
(22/46) Installing git (2.15.0-r1)
(23/46) Upgrading musl-utils (1.1.18-r2 -> 1.1.18-r3)
(24/46) Installing libevent (2.1.8-r2)
(25/46) Installing libbz2 (1.0.6-r6)
(26/46) Installing libffi (3.2.1-r4)
(27/46) Installing gdbm (1.13-r1)
(28/46) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(29/46) Installing ncurses-terminfo (6.0_p20171125-r0)
(30/46) Installing ncurses-libs (6.0_p20171125-r0)
(31/46) Installing readline (7.0.003-r0)
(32/46) Installing sqlite-libs (3.21.0-r0)
(33/46) Installing python2 (2.7.14-r2)
(34/46) Installing libevent-dev (2.1.8-r2)
(35/46) Installing linux-headers (4.4.6-r2)
(36/46) Installing make (4.2.1-r0)
(37/46) Installing libcrypto1.0 (1.0.2o-r0)
(38/46) Installing libssl1.0 (1.0.2o-r0)
(39/46) Installing openssl (1.0.2o-r0)
(40/46) Installing zlib-dev (1.2.11-r1)
(41/46) Installing openssl-dev (1.0.2o-r0)
(42/46) Installing pwgen (2.08-r0)
(43/46) Installing linux-pam (1.3.0-r0)
(44/46) Installing shadow (4.5-r0)
(45/46) Installing sqlite (3.21.0-r0)
(46/46) Installing sqlite-dev (3.21.0-r0)
Executing busybox-1.27.2-r7.trigger
Executing ca-certificates-20171114-r0.trigger
OK: 251 MiB in 55 packages
Removing intermediate container 5c3b3508ced9
 ---> 7af0c2070040
Step 5/26 : ARG COTURN_VERSION=4.5.0.7
 ---> Running in d96e41da0caf
Removing intermediate container d96e41da0caf
 ---> 8e2ce4798ccb
Step 6/26 : RUN git clone --branch $COTURN_VERSION https://github.com/coturn/coturn.git coturn
 ---> Running in 3428581875d6
Cloning into 'coturn'...
Note: checking out '6eb452d560678760e9fc998c292b58e450128362'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Removing intermediate container 3428581875d6
 ---> a4833f889147
Step 7/26 : WORKDIR /coturn
Removing intermediate container deac4e42742a
 ---> f886944a3ef6
Step 8/26 : RUN ./configure && make && make install
 ---> Running in 5f7a3a4af036
ginstall: not found
install is /usr/bin/install
pkill is /usr/bin/pkill
sqlite3 is /usr/bin/sqlite3
Use TMP dir /var/tmp
Compiler: cc
Library option -lsocket cannot be used
Library option -lwldap32 cannot be used
Library option -lwldap64 cannot be used
Library option -lintl cannot be used
Library option -lnsl cannot be used
Sockets code is fine: no sin_len field present
Ignore IP_RECVERR
Crypto SSL lib found.
SSL lib found.
Libevent2 development found.
Libevent2 runtime found.
Libevent2 runtime 'extra' found.
Libevent2 openssl found.
Libevent2 pthreads found.
SQLite library found.
SQLite development found.

POSTGRESQL DEVELOPMENT LIBRARY (libpq.a) AND/OR HEADER (libpq-fe.h)
	ARE NOT INSTALLED PROPERLY ON THIS SYSTEM.
	THAT'S OK BUT THE TURN SERVER IS BUILDING WITHOUT POSTGRESQL DATABASE SUPPORT.


MYSQL DEVELOPMENT LIBRARY (libmysqlclient) AND/OR HEADER (mysql.h)
	ARE NOT INSTALLED PROPERLY ON THIS SYSTEM.
	THAT'S OK BUT THE TURN SERVER IS BUILDING WITHOUT MYSQL DATABASE SUPPORT.


MONGODB DEVELOPMENT LIBRARIES (libmongoc-1.0 and libbson-1.0) AND/OR HEADER (mongoc.h)
	ARE NOT INSTALLED PROPERLY ON THIS SYSTEM.
	THAT'S OK BUT THE TURN SERVER IS BUILDING WITHOUT MONGODB SUPPORT.


HIREDIS DEVELOPMENT LIBRARY (libhiredis.*) AND/OR HEADERS (hiredis/*.h)
	ARE NOT INSTALLED PROPERLY ON THIS SYSTEM.
	THAT'S OK BUT THE TURN SERVER IS BUILDING WITHOUT REDIS SUPPORT.

PREFIX=/usr/local LOCALSTATEDIR=/usr/local/var OSLIBS= -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib DBLIBS= -lsqlite3 OSCFLAGS=-g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb DBCFLAGS=
Makefile created: success.
mkdir -p build/obj
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  -c src/client/ns_turn_ioaddr.c -o build/obj/ns_turn_ioaddr.o
mkdir -p build/obj
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  -c src/client/ns_turn_msg_addr.c -o build/obj/ns_turn_msg_addr.o
mkdir -p build/obj
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  -c src/client/ns_turn_msg.c -o build/obj/ns_turn_msg.o
mkdir -p lib
ar -r lib/libturnclient.a build/obj/ns_turn_ioaddr.o build/obj/ns_turn_msg_addr.o build/obj/ns_turn_msg.o 
ar: creating lib/libturnclient.a
pwd
/coturn
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  src/apps/oauth/oauth.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_oauth -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib
pwd
/coturn
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  src/apps/natdiscovery/natdiscovery.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_natdiscovery -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib
pwd
/coturn
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  src/apps/stunclient/stunclient.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_stunclient -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib   
pwd
/coturn
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  src/apps/rfc5769/rfc5769check.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_rfc5769check -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib 
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  src/apps/uclient/uclient.c src/apps/uclient/startuclient.c src/apps/uclient/mainuclient.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_uclient -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib  
mkdir -p bin
rm -rf bin/turnadmin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  -DTURN_NO_PQ -DTURN_NO_MYSQL  -DTURN_NO_MONGO -DTURN_NO_HIREDIS src/apps/relay/ns_ioalib_engine_impl.c src/apps/relay/turn_ports.c src/apps/relay/http_server.c -Ilib src/apps/relay/mainrelay.c src/apps/relay/netengine.c src/apps/relay/libtelnet.c src/apps/relay/turn_admin_server.c src/apps/relay/userdb.c src/apps/relay/tls_listener.c src/apps/relay/dtls_listener.c src/apps/common/hiredis_libevent2.c src/apps/relay/dbdrivers/dbdriver.c src/apps/relay/dbdrivers/dbd_sqlite.c src/apps/relay/dbdrivers/dbd_pgsql.c src/apps/relay/dbdrivers/dbd_mysql.c src/apps/relay/dbdrivers/dbd_mongo.c src/apps/relay/dbdrivers/dbd_redis.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c src/client/ns_turn_ioaddr.c src/client/ns_turn_msg_addr.c src/client/ns_turn_msg.c  src/server/ns_turn_allocation.c src/server/ns_turn_maps_rtcp.c src/server/ns_turn_maps.c src/server/ns_turn_server.c -o bin/turnserver -lsqlite3 -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib 
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libssl.so.44, needed by /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/libevent_openssl.so, may conflict with libssl.so.1.0.0
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libcrypto.so.42, needed by /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/libevent_openssl.so, may conflict with libcrypto.so.1.0.0
cd bin; ln -s turnserver turnadmin  
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  -DTURN_HAS_DAEMON       -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  src/apps/peer/mainudpserver.c src/apps/peer/udpserver.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_peer -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lrt -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib  
rm -rf include
mkdir -p include/turn/client
cp -pf src/client/*.h include/turn/client/
cp -pf src/client++/*.h include/turn/client/
cp -pf src/ns_turn_defs.h include/turn/
install -d sqlite
rm -rf sqlite/turndb
sqlite3 sqlite/turndb < turndb/schema.sql
install -d /usr/local
install -d /usr/local/bin
install -d /usr/local/var/db
install -d /usr/local/man/man1
install -d /usr/local/etc
install -d /usr/local/lib
install -d /usr/local/share/examples/turnserver
install -d /usr/local/share/doc/turnserver
install -d /usr/local/share/turnserver
install -d /usr/local/include/turn
install bin/turnserver /usr/local/bin
install bin/turnadmin /usr/local/bin
install bin/turnutils_uclient /usr/local/bin
install bin/turnutils_peer /usr/local/bin
install bin/turnutils_stunclient /usr/local/bin
install bin/turnutils_oauth /usr/local/bin
install bin/turnutils_natdiscovery /usr/local/bin
install man/man1/turnserver.1 /usr/local/man/man1/
install man/man1/turnadmin.1 /usr/local/man/man1/
install man/man1/turnutils.1 /usr/local/man/man1/
install man/man1/turnutils_uclient.1 /usr/local/man/man1/
install man/man1/turnutils_stunclient.1 /usr/local/man/man1/
install man/man1/turnutils_oauth.1 /usr/local/man/man1/
install man/man1/turnutils_natdiscovery.1 /usr/local/man/man1/
install man/man1/turnutils_peer.1 /usr/local/man/man1/
install man/man1/coturn.1 /usr/local/man/man1/
install lib/libturnclient.a /usr/local/lib
install LICENSE /usr/local/share/doc/turnserver
install README.turnserver /usr/local/share/doc/turnserver
install README.turnadmin /usr/local/share/doc/turnserver
install README.turnutils /usr/local/share/doc/turnserver
install INSTALL /usr/local/share/doc/turnserver
install postinstall.txt /usr/local/share/doc/turnserver
install turndb/schema.sql /usr/local/share/doc/turnserver
install turndb/schema.sql /usr/local/share/turnserver
install turndb/schema.mongo.sh /usr/local/share/doc/turnserver
install turndb/schema.mongo.sh /usr/local/share/turnserver
install turndb/testredisdbsetup.sh /usr/local/share/turnserver
install turndb/testmongosetup.sh /usr/local/share/turnserver
install turndb/testsqldbsetup.sql /usr/local/share/turnserver
install turndb/schema.userdb.redis /usr/local/share/doc/turnserver
install turndb/schema.userdb.redis /usr/local/share/turnserver
install turndb/schema.stats.redis /usr/local/share/doc/turnserver
install turndb/schema.stats.redis /usr/local/share/turnserver
if [ -f sqlite/turndb ] ; then install sqlite/turndb /usr/local/var/db/turndb; fi
install examples/etc/turnserver.conf /usr/local/etc/turnserver.conf.default
cp -rpf examples/etc /usr/local/share/examples/turnserver
cp -rpf examples/scripts /usr/local/share/examples/turnserver
rm -rf /usr/local/share/examples/turnserver/scripts/rfc5769.sh
cp -rpf include/turn/client /usr/local/include/turn
install include/turn/ns_turn_defs.h /usr/local/include/turn
cat /usr/local/share/doc/turnserver/postinstall.txt
==================================================================

1) If you system supports automatic start-up system daemon services, 
the, to enable the turnserver as an automatically started system 
service, you have to:

	a) Create and edit /etc/turnserver.conf or 
	/usr/local/etc/turnserver.conf . 
	Use /usr/local/etc/turnserver.conf.default as an example.

	b) For user accounts settings: set up SQLite or PostgreSQL or 
	MySQL or MongoDB or Redis database for user accounts.
	Use /usr/local/share/turnserver/schema.sql as SQL database schema,
	or use /usr/local/share/turnserver/schema.userdb.redis as Redis
	database schema description and/or 
	/usr/local/share/turnserver/schema.stats.redis
	as Redis status & statistics database schema description.
	
	If you are using SQLite, the default database location is in 
	/var/db/turndb or in /usr/local/var/db/turndb or in /var/lib/turn/turndb.
	 
	c) add whatever is necessary to enable start-up daemon for the 
	/usr/local/bin/turnserver.
     
2) If you do not want the turnserver to be a system service, 
   then you can start/stop it "manually", using the "turnserver" 
   executable with appropriate options (see the documentation).
   
3) To create database schema, use schema in file 
/usr/local/share/turnserver/schema.sql.
   
4) For additional information, run:
 
   $ man turnserver
   $ man turnadmin
   $ man turnutils
	
==================================================================
 
Removing intermediate container 5f7a3a4af036
 ---> e0ef48293857
Step 9/26 : WORKDIR /
Removing intermediate container ab19972db199
 ---> 3a22eea4b267
Step 10/26 : RUN mkdir /build
 ---> Running in f36996d94a6f
Removing intermediate container f36996d94a6f
 ---> 04da9f11dcdd
Step 11/26 : COPY scripts/ensure_user_and_group.sh /build/ensure_user_and_group.sh
 ---> fa19dc66f2bb
Step 12/26 : ARG COTURN_USER=matrix-coturn
 ---> Running in e26ae264fd6e
Removing intermediate container e26ae264fd6e
 ---> 8d3b28fbfb41
Step 13/26 : ARG COTURN_GROUP=matrix-coturn
 ---> Running in 336cf4da48a6
Removing intermediate container 336cf4da48a6
 ---> 601011096467
Step 14/26 : RUN /build/ensure_user_and_group.sh $COTURN_USER $COTURN_GROUP
 ---> Running in d814ce892621
+ Verifying group matrix-coturn and user matrix-coturn exist...
  Group matrix-coturn does not exist -- creating.
  User matrix-coturn does not exist -- creating.
Removing intermediate container d814ce892621
 ---> 38d80bc62e69
Step 15/26 : ENV DATA_DIR="/data"
 ---> Running in 475e7222e0ac
Removing intermediate container 475e7222e0ac
 ---> b2ecde610408
Step 16/26 : RUN mkdir $DATA_DIR && chmod o+r $DATA_DIR
 ---> Running in cf5bd9ac946c
Removing intermediate container cf5bd9ac946c
 ---> 61d6455b6221
Step 17/26 : COPY scripts/generate_config.sh /build/generate_config.sh
 ---> 2e66e5a313bc
Step 18/26 : ARG SERVER_NAME
 ---> Running in 5753c15c6b3f
Removing intermediate container 5753c15c6b3f
 ---> 6fefa984e4be
Step 19/26 : ARG KEY_NAME=matrix-coturn-key.pem
 ---> Running in d5d69cd59af8
Removing intermediate container d5d69cd59af8
 ---> b02f0b1b5c52
Step 20/26 : ARG CERT_NAME=matrix-coturn-cert.pem
 ---> Running in d88a745810ea
Removing intermediate container d88a745810ea
 ---> 23913549884c
Step 21/26 : ENV CONFIG_FILE=coturn.conf
 ---> Running in 53171cb66bab
Removing intermediate container 53171cb66bab
 ---> fad54a3925d9
Step 22/26 : RUN /build/generate_config.sh $SERVER_NAME $DATA_DIR $KEY_NAME $CERT_NAME $CONFIG_FILE
 ---> Running in 6549dcd38571
The automatically generated secret is: [redacted]
Please paste it into the synapse server's configuration file.
Generating a 4096 bit RSA private key
........++
............................................................++
writing new private key to '/data/matrix-coturn-key.pem'
-----
Removing intermediate container 6549dcd38571
 ---> 0254569b2ebc
Step 23/26 : USER $COTURN_USER:$COTURN_GROUP
 ---> Running in dfd8ab44c390
Removing intermediate container dfd8ab44c390
 ---> 5248d11b80e1
Step 24/26 : ENTRYPOINT turnserver -a -L 127.0.0.1 -E 127.0.0.1 -c $DATA_DIR/$CONFIG_FILE
 ---> Running in 1ed2466e9d34
Removing intermediate container 1ed2466e9d34
 ---> ae772ccd4f60
Step 25/26 : EXPOSE 3478
 ---> Running in afd878195f69
Removing intermediate container afd878195f69
 ---> 2eb8f471bd73
Step 26/26 : VOLUME ["$DATA_DIR"]
 ---> Running in 4c0de169b7fb
Removing intermediate container 4c0de169b7fb
 ---> c78c9725fa91
Successfully built c78c9725fa91
Successfully tagged karthanistyr/coturn:latest

État final

root@tempstest:/home/karth# docker image ls
REPOSITORY                     TAG                 IMAGE ID            CREATED             SIZE
karthanistyr/coturn            latest              c78c9725fa91        2 minutes ago       248MB
karthanistyr/matrix-postgres   latest              c2a58c7d843f        8 minutes ago       41MB
karthanistyr/riot.im           latest              ad1be1be690c        23 minutes ago      245MB
karthanistyr/matrix-synapse    latest              3c3638e3c2e4        2 hours ago         416MB
postgres                       10.3-alpine         f4f4231d6f0b        4 weeks ago         39.5MB
alpine                         3.7                 3fd9065eaf02        2 months ago        4.15MB

root@tempstest:/home/karth# df -H
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        21G  2.3G   18G  12% /
devtmpfs        2.1G     0  2.1G   0% /dev
tmpfs           2.1G     0  2.1G   0% /dev/shm
tmpfs           2.1G   19M  2.1G   1% /run
tmpfs           5.3M     0  5.3M   0% /run/lock
tmpfs           2.1G     0  2.1G   0% /sys/fs/cgroup
/dev/sda1       511M   24M  456M   5% /boot
/dev/sda3       2.0T   73M  1.9T   1% /home
matrix/installation_des_images_docker.txt · Dernière modification: 2018/04/06 17:20 de karth