Mercurial > sat_docs
comparison docker/libervia/Dockerfile @ 85:bcba1966e6db
docker: certificate generation + various improvments:
- certificate is now auto-generated on first prosody launch is there is not already one
- certificate generated on build is removed to avoid image-wide certificate
- generated certificates are stored in sat_data
- data image is now based on prosody which is itslef based on sat_pubsub
- prosody configuration is moved to /etc/prosody/prosody_sat_cfg, and stored in sat_data
- building order changed to adapt to new images hierarchy
- libervia default configuration set to both without redirection (and with a security warning)
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 18 Feb 2016 17:31:09 +0100 |
parents | 686a8c982c3f |
children | b69056368901 |
comparison
equal
deleted
inserted
replaced
84:8dc445c967e2 | 85:bcba1966e6db |
---|---|
46 RUN python setup.py install | 46 RUN python setup.py install |
47 | 47 |
48 WORKDIR /tmp | 48 WORKDIR /tmp |
49 | 49 |
50 RUN rm -rf libervia | 50 RUN rm -rf libervia |
51 | |
52 ################# | |
53 # CONFIGURATION # | |
54 ################# | |
55 | |
56 # we want to use certificates in /usr/share/sat/certificates | |
57 RUN echo "\n[libervia]\n\ | |
58 tls_private_key = /usr/share/sat/certificates/libervia.key\n\ | |
59 tls_certificate = /usr/share/sat/certificates/libervia.crt\n\ | |
60 connection_type = both\n\ | |
61 redirect_to_https = 0" >> /etc/sat.conf | |
51 | 62 |
52 ##################### | 63 ##################### |
53 # FIRST LAUNCH TEST # | 64 # FIRST LAUNCH TEST # |
54 ##################### | 65 ##################### |
55 | 66 |
104 ########## | 115 ########## |
105 | 116 |
106 USER sat | 117 USER sat |
107 | 118 |
108 ENTRYPOINT ["libervia_cont_launch", "fg"] | 119 ENTRYPOINT ["libervia_cont_launch", "fg"] |
109 CMD ["-t", "http"] |