镜像构建历史
# 2023-03-25 02:45:07 0.00B 声明容器运行时监听的端口
EXPOSE map[15671/tcp:{} 15672/tcp:{}]
# 2023-03-25 02:45:07 29.68MB 执行命令并创建新的镜像层
RUN /bin/sh -c set eux; rabbitmq-plugins enable --offline rabbitmq_management; rm -f /etc/rabbitmq/conf.d/20-management_agent.disable_metrics_collector.conf; cp /plugins/rabbitmq_management-*/priv/www/cli/rabbitmqadmin /usr/local/bin/rabbitmqadmin; [ -s /usr/local/bin/rabbitmqadmin ]; chmod +x /usr/local/bin/rabbitmqadmin; apt-get update; apt-get install -y --no-install-recommends python3; rm -rf /var/lib/apt/lists/*; rabbitmqadmin --version # buildkit
# 2023-03-25 02:45:07 0.00B 设置默认要执行的命令
CMD ["rabbitmq-server"]
# 2023-03-25 02:45:07 0.00B 声明容器运行时监听的端口
EXPOSE map[15691/tcp:{} 15692/tcp:{} 25672/tcp:{} 4369/tcp:{} 5671/tcp:{} 5672/tcp:{}]
# 2023-03-25 02:45:07 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2023-03-25 02:45:07 1.36KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2023-03-25 02:45:07 642.00B 复制新文件或目录到容器中
COPY 10-defaults.conf 20-management_agent.disable_metrics_collector.conf /etc/rabbitmq/conf.d/ # buildkit
# 2023-03-25 02:45:07 0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
# 2023-03-25 02:45:07 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/rabbitmq]
# 2023-03-25 02:45:07 0.00B 设置环境变量 HOME
ENV HOME=/var/lib/rabbitmq
# 2023-03-25 02:45:07 21.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -sf /opt/rabbitmq/plugins /plugins # buildkit
# 2023-03-25 02:45:07 23.00B 执行命令并创建新的镜像层
RUN /bin/sh -c gosu rabbitmq rabbitmq-plugins enable --offline rabbitmq_prometheus # buildkit
# 2023-03-25 02:45:07 30.83MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; export DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get install --yes --no-install-recommends ca-certificates gosu tzdata ; gosu nobody true; savedAptMark="$(apt-mark showmanual)"; apt-get install --yes --no-install-recommends gnupg wget xz-utils ; 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"; wget --progress dot:giga --output-document "$RABBITMQ_PATH.tar.xz.asc" "$RABBITMQ_SOURCE_URL.asc"; wget --progress dot:giga --output-document "$RABBITMQ_PATH.tar.xz" "$RABBITMQ_SOURCE_URL"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$RABBITMQ_PGP_KEY_ID"; gpg --batch --verify "$RABBITMQ_PATH.tar.xz.asc" "$RABBITMQ_PATH.tar.xz"; gpgconf --kill all; rm -rf "$GNUPGHOME"; mkdir -p "$RABBITMQ_HOME"; tar --extract --file "$RABBITMQ_PATH.tar.xz" --directory "$RABBITMQ_HOME" --strip-components 1; rm -rf "$RABBITMQ_PATH"*; grep -qE '^SYS_PREFIX=\$\{RABBITMQ_HOME\}$' "$RABBITMQ_HOME/sbin/rabbitmq-defaults"; sed -i 's/^SYS_PREFIX=.*$/SYS_PREFIX=/' "$RABBITMQ_HOME/sbin/rabbitmq-defaults"; grep -qE '^SYS_PREFIX=$' "$RABBITMQ_HOME/sbin/rabbitmq-defaults"; chown -R rabbitmq:rabbitmq "$RABBITMQ_HOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; [ ! -e "$RABBITMQ_DATA_DIR/.erlang.cookie" ]; gosu rabbitmq rabbitmqctl help; gosu rabbitmq rabbitmqctl list_ciphers; gosu rabbitmq rabbitmq-plugins list; rm "$RABBITMQ_DATA_DIR/.erlang.cookie"; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"rabbitmq-sbom","packages":[{"name":"rabbitmq","versionInfo":"3.9.29","SPDXID":"SPDXRef-Package--rabbitmq","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/rabbitmq@3.9.29?os_name=ubuntu&os_version=22.04"}],"licenseDeclared":"MPL-2.0 AND Apache-2.0"}]}' > $RABBITMQ_HOME/rabbitmq.spdx.json # buildkit
# 2023-03-25 02:45:07 0.00B 设置环境变量 PATH
ENV PATH=/opt/rabbitmq/sbin:/opt/erlang/bin:/opt/openssl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2023-03-25 02:45:07 0.00B 设置环境变量 RABBITMQ_HOME
ENV RABBITMQ_HOME=/opt/rabbitmq
# 2023-03-25 02:45:07 0.00B 设置环境变量 RABBITMQ_PGP_KEY_ID
ENV RABBITMQ_PGP_KEY_ID=0x0A9AF2115F4687BD29803A206B73A36E6026DFCA
# 2023-03-25 02:45:07 0.00B 设置环境变量 RABBITMQ_VERSION
ENV RABBITMQ_VERSION=3.9.29
# 2023-03-25 02:45:07 364.95KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; ln -vsf /etc/ssl/certs /etc/ssl/private "$OPENSSL_INSTALL_PATH_PREFIX/etc/ssl"; ldconfig; sed -i.ORIG -e "/\.include.*fips/ s!.*!.include $OPENSSL_INSTALL_PATH_PREFIX/etc/ssl/fipsmodule.cnf!" -e '/# fips =/s/.*/fips = fips_sect/' "$OPENSSL_INSTALL_PATH_PREFIX/etc/ssl/openssl.cnf"; sed -i.ORIG -e '/^activate/s/^/#/' "$OPENSSL_INSTALL_PATH_PREFIX/etc/ssl/fipsmodule.cnf"; [ "$(command -v openssl)" = "$OPENSSL_INSTALL_PATH_PREFIX/bin/openssl" ]; openssl version; openssl version -d; erl -noshell -eval 'ok = crypto:start(), ok = io:format("~p~n~n~p~n~n", [crypto:supports(), ssl:versions()]), init:stop().'; groupadd --gid 999 --system rabbitmq; useradd --uid 999 --system --home-dir "$RABBITMQ_DATA_DIR" --gid rabbitmq rabbitmq; mkdir -p "$RABBITMQ_DATA_DIR" /etc/rabbitmq /etc/rabbitmq/conf.d /tmp/rabbitmq-ssl /var/log/rabbitmq; chown -fR rabbitmq:rabbitmq "$RABBITMQ_DATA_DIR" /etc/rabbitmq /etc/rabbitmq/conf.d /tmp/rabbitmq-ssl /var/log/rabbitmq; chmod 1777 "$RABBITMQ_DATA_DIR" /etc/rabbitmq /etc/rabbitmq/conf.d /tmp/rabbitmq-ssl /var/log/rabbitmq; ln -sf "$RABBITMQ_DATA_DIR/.erlang.cookie" /root/.erlang.cookie # buildkit
# 2023-03-25 02:45:07 0.00B 设置环境变量 RABBITMQ_DATA_DIR
ENV RABBITMQ_DATA_DIR=/var/lib/rabbitmq
# 2023-03-25 02:45:07 0.00B 设置环境变量 PATH
ENV PATH=/opt/erlang/bin:/opt/openssl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2023-03-25 02:45:07 357.00B 执行命令并创建新的镜像层
RUN /bin/sh -c echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"openssl-sbom","packages":[{"name":"openssl","versionInfo":"3.1.5","SPDXID":"SPDXRef-Package--openssl","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/openssl@3.1.5?os_name=ubuntu&os_version=22.04"}],"licenseDeclared":"Apache-2.0"}]}' > $OPENSSL_INSTALL_PATH_PREFIX/openssl.spdx.json # buildkit
# 2023-03-25 02:45:07 24.67MB 复制新文件或目录到容器中
COPY /opt/openssl /opt/openssl # buildkit
# 2023-03-25 02:45:07 359.00B 执行命令并创建新的镜像层
RUN /bin/sh -c echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"erlang-sbom","packages":[{"name":"erlang","versionInfo":"25.3.2.9","SPDXID":"SPDXRef-Package--erlang","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/erlang@25.3.2.9?os_name=ubuntu&os_version=22.04"}],"licenseDeclared":"Apache-2.0"}]}' > $ERLANG_INSTALL_PATH_PREFIX/erlang.spdx.json # buildkit
# 2023-03-25 02:45:07 81.96MB 复制新文件或目录到容器中
COPY /opt/erlang /opt/erlang # buildkit
# 2023-03-25 02:45:07 0.00B 设置环境变量 OPENSSL_INSTALL_PATH_PREFIX
ENV OPENSSL_INSTALL_PATH_PREFIX=/opt/openssl
# 2023-03-25 02:45:07 0.00B 设置环境变量 ERLANG_INSTALL_PATH_PREFIX
ENV ERLANG_INSTALL_PATH_PREFIX=/opt/erlang
# 2023-03-25 02:45:07 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2023-03-25 02:45:07 77.86MB
/bin/sh -c #(nop) ADD file:7f9a3c5a4231ed19174c21d17ce05d84d568cff6d3a0c2a1d7c3a9be5e45c02c in /
# 2023-03-25 02:45:07 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
# 2023-03-25 02:45:07 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
# 2023-03-25 02:45:07 0.00B
/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
# 2023-03-25 02:45:07 0.00B
/bin/sh -c #(nop) ARG RELEASE
镜像信息
{
"Id": "sha256:e4ab0300ba4bdc196227cea51acfe41ae0fc6f79cf5a6e18a58d81719ae7a870",
"RepoTags": [
"rabbitmq:3.9-management",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rabbitmq:3.9-management"
],
"RepoDigests": [
"rabbitmq@sha256:8a279e9396a89676195b2d122ccb0deb45989afcac7e5b8476338c93ea6d1a46",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rabbitmq@sha256:16e00aa91c32f00edf71adc9c4231a13dca81dc95216217c0ff172be3cd6ec55"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2023-03-24T18:45:07Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"15671/tcp": {},
"15672/tcp": {},
"15691/tcp": {},
"15692/tcp": {},
"25672/tcp": {},
"4369/tcp": {},
"5671/tcp": {},
"5672/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/opt/rabbitmq/sbin:/opt/erlang/bin:/opt/openssl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"ERLANG_INSTALL_PATH_PREFIX=/opt/erlang",
"OPENSSL_INSTALL_PATH_PREFIX=/opt/openssl",
"RABBITMQ_DATA_DIR=/var/lib/rabbitmq",
"RABBITMQ_VERSION=3.9.29",
"RABBITMQ_PGP_KEY_ID=0x0A9AF2115F4687BD29803A206B73A36E6026DFCA",
"RABBITMQ_HOME=/opt/rabbitmq",
"HOME=/var/lib/rabbitmq",
"LANG=C.UTF-8",
"LANGUAGE=C.UTF-8",
"LC_ALL=C.UTF-8"
],
"Cmd": [
"rabbitmq-server"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/var/lib/rabbitmq": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "22.04"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 245360581,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/5daff4802e7fa760ec77f16b87fce15e338ca5194aa1ca254d401b571af92323/diff:/var/lib/docker/overlay2/a148a69e3f20a76088e2f4966d74a8c592ff124ecd1bdc2f7b9003d964ef96ec/diff:/var/lib/docker/overlay2/17303d1062b8025d000cb60e9cbcbef9759928c9a577be20712e7e994cbed369/diff:/var/lib/docker/overlay2/22ceac19c7de78425c7d3961ae8daa07ef3844c014aa247b0aaf517f852e8756/diff:/var/lib/docker/overlay2/a0c4b123954edc7193fa0ae0f92e2bb6397b84c4a8685c4b3e6fda507cad0b5b/diff:/var/lib/docker/overlay2/f54a901f7a57d44e9cedb514a8d2443385bb7f5d24bd409556fba56451ad9868/diff:/var/lib/docker/overlay2/c02996922d3125084a8c8d9607b9ab406298c4a8f6cb895a3d2df4bbbcfdc9fc/diff:/var/lib/docker/overlay2/043fc3c4c1e0d2834ca01f7c3cc802c9898ce84eadf0eb513d769b7b2e43377a/diff:/var/lib/docker/overlay2/572a40921d67aabef42dbb9a312bf6c464b659f5dc361428e4750bce95fef675/diff:/var/lib/docker/overlay2/6c029efb68510a82f217a2544eff61d3e0b9343866e927a2f9773ec25616363e/diff:/var/lib/docker/overlay2/288e5e211432009b0c6de71a10a109010379dbc96efc13fe64d8aedf7b60fc3e/diff",
"MergedDir": "/var/lib/docker/overlay2/4437bfc9928bd8b9da50ccdd7bac0719387efdfaa657854d06f02e1f9934d8c3/merged",
"UpperDir": "/var/lib/docker/overlay2/4437bfc9928bd8b9da50ccdd7bac0719387efdfaa657854d06f02e1f9934d8c3/diff",
"WorkDir": "/var/lib/docker/overlay2/4437bfc9928bd8b9da50ccdd7bac0719387efdfaa657854d06f02e1f9934d8c3/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d101c9453715a978a2a520f553588e77dfb4236762175eba61c5c264a449c75d",
"sha256:4e76ca4d9551819f7b3abf0fc4389d3150aa9d93e767e6bd84a80bfa65c8f711",
"sha256:1479184ece4da60ae6e2cc6c908c7cadd8eb42b4697e6e4e4b79dba7e47e6ddf",
"sha256:0d90f69ddd5684bcd84509645acf3a33211d167f58a3df8e5e3d64c7c4602388",
"sha256:b76f570fb52f43250b1b4c2e2d19611833b4060e532e302c97b4f322b9f12c4b",
"sha256:a94155931e46258cf422d826bb39bb4c07954dabfe0fbd6d5a00f1087205f8bf",
"sha256:e168aba6edc0f0df6e8c8eab3b0b53f65c1dfdeba18cc74acc363e3c7327110f",
"sha256:be72d5a54671a8e00089e6924967b16648dbd90f78d2e358a10c404a64af2b5e",
"sha256:bd97869584a81296e89e9b0cede3e7daf83dc2cb3dfb5b04543f0c5577a2e69a",
"sha256:b7e84f8aa975d7520bb8d4448c2950a38468b76ec627cf3dcc4304442c5aadad",
"sha256:80d9305274efe0fac3993756519581e8f62458674ef3f921962c675a163979fd",
"sha256:d1fe0b88b8e6dd6009cf606697ac0afddf9166d2700ccef693dbad1b6fa4bab8"
]
},
"Metadata": {
"LastTagTime": "2024-08-03T16:57:27.556373342+08:00"
}
}