forked from celery/py-amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
84 lines (79 loc) · 4.84 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#This is a sample Image
FROM rabbitmq:latest
RUN mkdir /etc/rabbitmq/ca
RUN echo '-----BEGIN CERTIFICATE-----\n\
MIIDRzCCAi+gAwIBAgIJAMa1mrcNQtapMA0GCSqGSIb3DQEBCwUAMDExIDAeBgNV\n\
BAMMF1RMU0dlblNlbGZTaWduZWR0Um9vdENBMQ0wCwYDVQQHDAQkJCQkMCAXDTIw\n\
MDEwMzEyMDE0MFoYDzIxMTkxMjEwMTIwMTQwWjAxMSAwHgYDVQQDDBdUTFNHZW5T\n\
ZWxmU2lnbmVkdFJvb3RDQTENMAsGA1UEBwwEJCQkJDCCASIwDQYJKoZIhvcNAQEB\n\
BQADggEPADCCAQoCggEBAKdmOg5vtuZ5vNZmceToiVBlcFg9Y/xKNyCPBij6Wm5p\n\
mXbnsjO1PhjGr97r2cMLq5QMvGt+FBEIjeeULtWVCBY7vMc4ATEZ1S2PmmKnOSXJ\n\
MLMDIutznopZkyqt3gqWgXZDxxHIlIzJl0HirQmfeLm6eTOYyFoyFZV3CE2IeW4Y\n\
n1zYhgZgIrU7Yo3I7wY9Js5yLk4p3etByN5tlLL2sdCOjRRXWGbOh/kb8uiyotEd\n\
cxNThk0RQDugoEzaGYBU3bzDhKkm4v/v/xp/JxGLDl/e3heRMUbcw9d/0ujflouy\n\
OQ66SNYGLWFQpmhtyHjalKzL5UbTcof4BQltoo/W7xECAwEAAaNgMF4wCwYDVR0P\n\
BAQDAgEGMB0GA1UdDgQWBBTKOnbaptqaUCAiwtnwLcRTcbuRejAfBgNV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geBFnVAoGBAJzJocqZo+GQdVO8KHh3oPk63cjfA4hKTvgy\n\
7u2N4ePruyUvH4UcMpEeqi1HI21LrR1a5f51XYaV4ltjRBVrXx4JX0tNHjaL3537\n\
It3s5a34jE1oyfHatVKQ1WipJZQcjHJBT5u9Zp2xDElmFsMoE8WLE8VnpA4EQkz2\n\
NglJdGdtAoGAPbBvhaW18wdy1jgzcQB84ODdXAZ6dPMXAhWcTQ8t2r4hKpfutMA9\n\
SGRMy+oEhSToMDPALn7EnQGJdGeZJjlXn8mLiqo1hHhfyFPK87EyAONHamZJQ3k7\n\
LdsBZMl5sYt+9dt5/CE38cU/VkS5pqueLT8c1RGBHnObLw7sU5XK2o8=\n\
-----END RSA PRIVATE KEY-----' > /etc/rabbitmq/ca/server_key.pem
RUN echo 'loopback_users = none\n\
listeners.ssl.default = 5671\n\
ssl_options.cacertfile = /etc/rabbitmq/ca/ca_certificate.pem\n\
ssl_options.certfile = /etc/rabbitmq/ca/server_certificate.pem\n\
ssl_options.keyfile = /etc/rabbitmq/ca/server_key.pem\n\
ssl_options.verify = verify_peer\n\
ssl_options.fail_if_no_peer_cert = true' > /etc/rabbitmq/rabbitmq.conf