summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorRin Kuryloski <kuryloskip@vmware.com>2022-07-20 15:52:24 +0200
committerRin Kuryloski <kuryloskip@vmware.com>2022-07-20 15:53:41 +0200
commita5b9c7431fb5cec1678f7156493af6fb489bc586 (patch)
treef898610d84c17e6c56929e52fb42dc761a1dcd11 /packaging
parent997a2c56553a0cfd210e4cdaee7b3c3b34b0d508 (diff)
downloadrabbitmq-server-git-a5b9c7431fb5cec1678f7156493af6fb489bc586.tar.gz
Split the OCI image build into two phases
So that flakiness of debug symbol installation do not block it
Diffstat (limited to 'packaging')
-rw-r--r--packaging/base-image/Dockerfile18
-rw-r--r--packaging/docker-image/Dockerfile3
2 files changed, 20 insertions, 1 deletions
diff --git a/packaging/base-image/Dockerfile b/packaging/base-image/Dockerfile
new file mode 100644
index 0000000000..74257bad8d
--- /dev/null
+++ b/packaging/base-image/Dockerfile
@@ -0,0 +1,18 @@
+# The official Canonical Ubuntu Bionic image is ideal from a security perspective,
+# especially for the enterprises that we, the RabbitMQ team, have to deal with
+FROM ubuntu:20.04
+
+RUN set -eux; \
+ apt-get update; \
+ apt-get install -y lsb-release ubuntu-dbgsym-keyring; \
+ echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" > /etc/apt/sources.list.d/ddebs.list; \
+ echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ddebs.list; \
+ echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" >> /etc/apt/sources.list.d/ddebs.list; \
+ apt-get update; \
+ apt-get install -y --no-install-recommends \
+ # grab gosu for easy step-down from root
+ libc6-dbg \
+ libgcc-s1-dbgsym \
+ libstdc++6-dbgsym \
+ libtinfo6-dbgsym \
+ zlib1g-dbgsym
diff --git a/packaging/docker-image/Dockerfile b/packaging/docker-image/Dockerfile
index 19c96d344d..ced2a49e76 100644
--- a/packaging/docker-image/Dockerfile
+++ b/packaging/docker-image/Dockerfile
@@ -1,6 +1,7 @@
# The official Canonical Ubuntu Bionic image is ideal from a security perspective,
# especially for the enterprises that we, the RabbitMQ team, have to deal with
-FROM ubuntu:20.04
+ARG BASE=ubuntu
+FROM ${BASE}:20.04
RUN set -eux; \
apt-get update; \