Mercurial > libervia-backend
changeset 3423:0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
The `libervia_e2e` image is based on main `libervia` one, and add, register and set the
same test certificates as the ones used in `backend_e2e`.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 16 Nov 2020 14:51:15 +0100 |
parents | c97476c41f0f |
children | 2da32cdf4e53 |
files | docker/docker-compose_e2e.yml docker/libervia_e2e/Dockerfile docker/libervia_e2e/certificates/README docker/libervia_e2e/certificates/minica-key.pem docker/libervia_e2e/certificates/minica.pem docker/libervia_e2e/certificates/server1.test/cert.pem docker/libervia_e2e/certificates/server1.test/key.pem docker/libervia_e2e/sat.conf |
diffstat | 8 files changed, 130 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/docker/docker-compose_e2e.yml Mon Nov 16 14:51:13 2020 +0100 +++ b/docker/docker-compose_e2e.yml Mon Nov 16 14:51:15 2020 +0100 @@ -46,3 +46,14 @@ default: aliases: - sat.test + + libervia: + image: salutatoi/libervia_e2e + build: libervia_e2e + depends_on: + - sat + environment: + LIBERVIA_PASSPHRASE: test_e2e + ports: + - "8080" + - "8443"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/libervia_e2e/Dockerfile Mon Nov 16 14:51:15 2020 +0100 @@ -0,0 +1,19 @@ +FROM salutatoi/libervia + +LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" + +ARG DEBIAN_FRONTEND=noninteractive + +USER root + +# we install pre-generated certificates so we can do tests with valid TLS +# those certificates are the same as in salutatoi/backend_e2e +COPY --chown=root:root certificates/minica.pem /usr/local/share/ca-certificates/minica.crt +COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/sat/certificates/server1.test.pem +COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/sat/certificates/server1.test-key.pem +RUN update-ca-certificates + +COPY --chown=root:root sat.conf /etc/sat.conf + +WORKDIR /home/sat +USER sat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/libervia_e2e/certificates/README Mon Nov 16 14:51:15 2020 +0100 @@ -0,0 +1,2 @@ +this certificates are used to enable TLS during tests. Those must be the same as in +backend_e2e (they are generated there)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/libervia_e2e/certificates/minica-key.pem Mon Nov 16 14:51:15 2020 +0100 @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEA1tNEhyBVuicN4NpD7ZTUj5aTz2OUfPaQn41XC7QVKjlvlzFv +d4cJMJLf7jWaAuRK5/Rs8Mzpc/AMTrn1N68gTfhqv5eykqkyNsGBnoZL93gr5UXR +V5YPDlfpUdExVfMNS6uTERaz5SKH1/yKvQQ6kTxVTNoxeA58iQuwpV/O3hsj8a7U +2oTf36Wz55aqbpda+S/3D6qZnjPbNQY0h5SY98QlaB3jPVG11/sRX2BIeRgdczTW +5fzdlMdvAEG8o/JXLcjoQZyK6EnOBfd/8uYINV1JI7mXVk77PmpJRLVFy4LU78Qd +RkRfjBafr6KqrgrY8yZB7z1Rzdkc2r8StwCtKQIDAQABAoIBAQDBpLDZ6SC9ayTM +cZLXnte4EvBr+gRIXG1jFSHIr+yAIkPfkrU6liOHgG2QKQsJ3kVTLvXgXaV2V4SQ +lnlfV2IURn/a8mAKaa+UwfsYLVBe4xkWU0fv3pj1wfLUSHBjXHK4qhEoT0GbovO2 +krNwzFYKwsrVOr1qzgwd8MarW2B6vW9gMmy8XKX27A4h3/Kmmm1xqzIFDWxox5Ey +oo6Vi5RTC+NBcOoZyRsEXMsch9CWM/Jb4mXtOhjhVDvHdixLRVNpYWp/pYEdT9DC +k3Z9QITnmluW4z8epDtQVAOYl7kAckYI3Jloh6UcuT+6lNF2JRBEoKIi7txf2tyR +EDfYUe1NAoGBAO7KXA8PaGMnaolNk3ewgbIdVqNFk0UesLKEf4rdqbnODRIxQPiK +y8Kvut4g03AGKxFEZoV/eKCzU85vBfvWWfgrhYfc6wK1dgt04/xwqbt0k+WUqBau +IiXiCfSJ6C0cVzeQo4ULRwrXGSGBgm84fS/OkDt6SmPu6qe+040xlyMjAoGBAOZO +wSWB/auhocho40wXSNVZo2TsQ1Np8dpyouueaDR9nVdxhSclc07ebTFNMXyXmiim +cPMi0aRRoKN3vWLAdS9H/m51oynLavRjD/tM2ffgio6ZDav3VmeXbVhAC6Jx1mdO +e+msVfBhkbr8/Hw5Huvbq+Jg0ek+cLK9dJ2idMlDAoGACK+zyZh146V7aqM3yhLR +pPkMPcQ6JzmGk/fd699EXU3xi8fe5SunXd2mno3zIxAWYPpsAE8yxCXB1rCTNyYE +/9IVeWu/4MlZEfGemYA/rGIBP0i5FJohA9/FHPAnUfzF72+Dg0N1wh8w+tcLN6CG +bUbGWGOKcTgvsQpwB6LWLKECgYEA42tDKNGK94883VRNltarUhoY0dDHzregXjCz +Fm2uwp6D31Q2wuglS+0x7+wlAL4HOTrZ8A0i7Nq6AJF9zuTzEoRKBzNcsimvbLHh +lypVVoNA7vzN1lD/3n1WOT3M/1Tf/dUvYRiPKDaAnB+zBsu07/xUZ89pmKPSz31r +iTlhj1cCgYBK/Qp6YIljE76v1zbmg0wxlJOUdJsgz+9NT6CxgixZc6W4ZhJa6UxG +uJlsHlY5VENHn6o4OQypNUkbne82o7ahA+J2lgHPSTS7+pp++iKn8gBbDpHsWFI8 +X+WOhrEIfy5E/NVIMc04UJTPsI8ulO/vfyzO0xodeqEr/uizg6eqew== +-----END RSA PRIVATE KEY-----
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/libervia_e2e/certificates/minica.pem Mon Nov 16 14:51:15 2020 +0100 @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDSzCCAjOgAwIBAgIIAo5tHhN+8L4wDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE +AxMVbWluaWNhIHJvb3QgY2EgMDI4ZTZkMCAXDTIwMTAxNTE1NTgzNloYDzIxMjAx +MDE1MTU1ODM2WjAgMR4wH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xMiKHtJAoZwK+eqtyaJpT/m6IAO6qkOSrGakuNoGdbAa0YaiwuFVWBsL7Y7cl7TJ +iwWIAtHxjpxu8wFCKMfHgx81cVpC18CFxCJNE/QaQCATRC5BlPH+U7b5o2iEUAsB +GRfYChjAgthyvjHvHu+NkmsrMrNJz+1C9kvLcBvrYNoz1IZOkK/LO2SJA5EzMchV ++/bh3qFF/VGNI0RNbVs= +-----END CERTIFICATE-----
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/libervia_e2e/certificates/server1.test/key.pem Mon Nov 16 14:51:15 2020 +0100 @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEA4DGw8na006QD8nUviZ+zqbvx932RzvdPMLU56GA84vDrRhJy +/0R1KrZ/4IxgPxmAJ1zXsgHMwSVy4sQiplhzrh3WKt1e8/Q4B4RJOexaB++dKIu7 +RLOoByVocikJle0wXqhJy4dwWz5mg2SGXyiya//QEgK29TJYAK7n8oxBvN/mFGxd +0rOLMONVa8hQTfv6cVktP5PoXN0VVm8iC6nJjlLK1XzO1+VQeB/9j9cUUfO9EJxJ +UoBuGIRIzu0HrIUZVAxbtST5U5Pp0JgiUisl0AD95vG/d0qK5JUTrSIol8/5QtpM +LWlXmwzqF+N3CxaQQYYBLKLrBzgmr2Zq3IHyzwIDAQABAoIBAQCZwvrtEGUs0kyy +uZSE+zcprnFhoImkPRHfAixZJ8gajcmPIZAlazpAtTI3O4+3NzIhzRdSStG3louY +45QwKnIMdQIyG+nHvzO+VAg05dlJoBlVeaBSmjUf0ZQ019hvL2IBScJzCM0Sh1Wf +wA44rZzRXX3DHIGG4aRhs5P5UiCz/EMbZYZcHVoly7FKv+wfwXII5CeKbnXyFnFo +SbnhNd/knvKukyQSGd1MDyd6eiGudCIogH9c7VGjSEwvCdqh19VEEfH2UMdt0uHJ +Sh/0RFDpktVNF7xgdVg8e2+NLGuPo3+XtyQsMB3KffYgsuYOdAwNxifxsjPtUigf +Q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