Skip to content

Commit 192f4c2

Browse files
committed
Update to Debian Stretch and Alpine 3.6, removing erlang-solutions
The erlang-solutions repository was used back in 2015 to get us a newer version of Erlang on our then Wheezy-based image -- now that Stretch is stable and ready, we can get 19.x directly from Debian, and thus get multiarchitecture builds as well without additional effort (since the `rabbitmq-server` package is `arch:all`).
1 parent 529237b commit 192f4c2

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

3.6/alpine/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.5
1+
FROM alpine:3.6
22

33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN addgroup -S rabbitmq && adduser -S -h /var/lib/rabbitmq -G rabbitmq rabbitmq
@@ -54,7 +54,7 @@ RUN set -ex; \
5454
export GNUPGHOME="$(mktemp -d)"; \
5555
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY"; \
5656
gpg --batch --verify rabbitmq-server.tar.xz.asc rabbitmq-server.tar.xz; \
57-
rm -r "$GNUPGHOME" rabbitmq-server.tar.xz.asc; \
57+
rm -rf "$GNUPGHOME" rabbitmq-server.tar.xz.asc; \
5858
\
5959
mkdir -p "$RABBITMQ_HOME"; \
6060
tar \

3.6/debian/Dockerfile

+12-17
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
1-
FROM debian:jessie
1+
FROM debian:stretch-slim
2+
3+
RUN set -ex; \
4+
apt-get update; \
5+
apt-get install -y --no-install-recommends \
6+
gnupg2 \
7+
dirmngr \
8+
; \
9+
rm -rf /var/lib/apt/lists/*
210

311
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
412
RUN groupadd -r rabbitmq && useradd -r -d /var/lib/rabbitmq -m -g rabbitmq rabbitmq
513

614
# grab gosu for easy step-down from root
7-
ENV GOSU_VERSION 1.7
15+
ENV GOSU_VERSION 1.10
816
RUN set -x \
917
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
1018
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
1119
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1220
&& export GNUPGHOME="$(mktemp -d)" \
1321
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1422
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
15-
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
23+
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
1624
&& chmod +x /usr/local/bin/gosu \
1725
&& gosu nobody true \
1826
&& apt-get purge -y --auto-remove ca-certificates wget
1927

20-
# Add the officially endorsed Erlang debian repository:
21-
# See:
22-
# - http://www.erlang.org/download.html
23-
# - https://www.erlang-solutions.com/resources/download.html
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
31-
RUN echo 'deb http://packages.erlang-solutions.com/debian jessie contrib' > /etc/apt/sources.list.d/erlang.list
32-
3328
# install Erlang
3429
RUN apt-get update \
3530
&& apt-get install -y --no-install-recommends \
@@ -57,7 +52,7 @@ RUN set -ex; \
5752
export GNUPGHOME="$(mktemp -d)"; \
5853
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
5954
gpg --export "$key" > /etc/apt/trusted.gpg.d/rabbitmq.gpg; \
60-
rm -r "$GNUPGHOME"; \
55+
rm -rf "$GNUPGHOME"; \
6156
apt-key list
6257
RUN echo 'deb http://www.rabbitmq.com/debian testing main' > /etc/apt/sources.list.d/rabbitmq.list
6358

0 commit comments

Comments
 (0)