File tree 1 file changed +14
-2
lines changed 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,13 @@ RUN set -x \
21
21
# See:
22
22
# - http://www.erlang.org/download.html
23
23
# - https://www.erlang-solutions.com/resources/download.html
24
- RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 434975BD900CCBE4F7EE1B1ED208507CA14F4FCA
24
+ RUN set -ex; \
25
+ key='434975BD900CCBE4F7EE1B1ED208507CA14F4FCA' ; \
26
+ export GNUPGHOME="$(mktemp -d)" ; \
27
+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
28
+ gpg --export "$key" > /etc/apt/trusted.gpg.d/erlang-solutions.gpg; \
29
+ rm -r "$GNUPGHOME" ; \
30
+ apt-key list
25
31
RUN echo 'deb http://packages.erlang-solutions.com/debian jessie contrib' > /etc/apt/sources.list.d/erlang.list
26
32
27
33
# install Erlang
@@ -46,7 +52,13 @@ ENV RABBITMQ_LOGS=- RABBITMQ_SASL_LOGS=-
46
52
47
53
# http://www.rabbitmq.com/install-debian.html
48
54
# "Please note that the word testing in this line refers to the state of our release of RabbitMQ, not any particular Debian distribution."
49
- RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 0A9AF2115F4687BD29803A206B73A36E6026DFCA
55
+ RUN set -ex; \
56
+ key='0A9AF2115F4687BD29803A206B73A36E6026DFCA' ; \
57
+ export GNUPGHOME="$(mktemp -d)" ; \
58
+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
59
+ gpg --export "$key" > /etc/apt/trusted.gpg.d/rabbitmq.gpg; \
60
+ rm -r "$GNUPGHOME" ; \
61
+ apt-key list
50
62
RUN echo 'deb http://www.rabbitmq.com/debian testing main' > /etc/apt/sources.list.d/rabbitmq.list
51
63
52
64
ENV RABBITMQ_VERSION 3.6.6
You can’t perform that action at this time.
0 commit comments