-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03ff01a
commit 43a8dec
Showing
1 changed file
with
1 addition
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ RUN set -eux; \ | |
; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
RABBITMQ_SOURCE_URL="https://github.com/rabbitmq/rabbitmq-server/releases/download/v$RABBITMQ_VERSION/rabbitmq-server-generic-unix-latest-toolchain-$RABBITMQ_VERSION.tar.xz"; \ | ||
RABBITMQ_PATH="/usr/local/src/rabbitmq-$RABBITMQ_VERSION"; \ | ||
\ | ||
mkdir -p "$RABBITMQ_HOME"; \ | ||
|
@@ -71,15 +70,7 @@ RUN set -eux; \ | |
gosu rabbitmq rabbitmqctl list_ciphers; \ | ||
gosu rabbitmq rabbitmq-plugins list; \ | ||
# no stale cookies | ||
rm "$RABBITMQ_DATA_DIR/.erlang.cookie"; \ | ||
\ | ||
echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"rabbitmq-sbom","packages":[{"name":"rabbitmq","versionInfo":"4.0.0","SPDXID":"SPDXRef-Package--rabbitmq","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=ubuntu&os_version=22.04"}],"licenseDeclared":"MPL-2.0 AND Apache-2.0"}]}' > $RABBITMQ_HOME/rabbitmq.spdx.json | ||
|
||
# Enable Prometheus-style metrics by default (https://github.com/docker-library/rabbitmq/issues/419) | ||
RUN gosu rabbitmq rabbitmq-plugins enable --offline rabbitmq_prometheus | ||
|
||
# Added for backwards compatibility - users can simply COPY custom plugins to /plugins | ||
RUN ln -sf /opt/rabbitmq/plugins /plugins | ||
rm "$RABBITMQ_DATA_DIR/.erlang.cookie"; | ||
|
||
# set home so that any `--user` knows where to put the erlang cookie | ||
ENV HOME $RABBITMQ_DATA_DIR | ||
|