镜像构建历史
# 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 31.07MB 执行命令并创建新的镜像层
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.10.25","SPDXID":"SPDXRef-Package--rabbitmq","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/rabbitmq@3.10.25?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.10.25
# 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:e2eb4e9eb7bc169dcfe8ce92d3e3bd5f393ee507f2079ffc65d9e2ef14a179fa",
"RepoTags": [
"rabbitmq:3.10.25-management",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rabbitmq:3.10.25-management"
],
"RepoDigests": [
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rabbitmq@sha256:a4e46264063d024d4e6a844d12985841a6ed272883039a3ff0b92d663e6ce837"
],
"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.10.25",
"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": 245606024,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f7c05f8b1b1284651350bd6faeec78a5028f8b182d8a4890f303662077f7223d/diff:/var/lib/docker/overlay2/15e50c168ec6865b1efd7b6311c63931a38f0edef1d577da251c228033150550/diff:/var/lib/docker/overlay2/7a1fc674eb3e827f65b48679941d056ec927d4c2524bae69cda5e275a6100faa/diff:/var/lib/docker/overlay2/5d34f36cbdececde2f91ad0e659fac63887a61e32330a4fbce8a8df30a61c39f/diff:/var/lib/docker/overlay2/dc6b631b3578c5c19bc55f95ebcdc8fd8d46cb00b17cc6a5d81622ea27ca1230/diff:/var/lib/docker/overlay2/5459c8cb8d0759824e87f8cb835978e3a4943e82fb0b5cfdd311c521fbafa6f5/diff:/var/lib/docker/overlay2/5e2993407fcc8fae91afdcedbed337f3fa03072146349e39b307e0f8dfbde090/diff:/var/lib/docker/overlay2/1acbd658603908f5cabafe065455d9a2bd771301a56f188303e7afbe04626a08/diff:/var/lib/docker/overlay2/d37f7c99076b52f6e2b0edeb682fb5670d877e4e5d2bdca691f9d41a162e6153/diff:/var/lib/docker/overlay2/0a0078349b2881ede81ab61462cc1c7c18df59904bb920836b58599fb315aec4/diff:/var/lib/docker/overlay2/288e5e211432009b0c6de71a10a109010379dbc96efc13fe64d8aedf7b60fc3e/diff",
"MergedDir": "/var/lib/docker/overlay2/cae80c4eacdb3a98a09ff72d986373f7ffe759730f18bd16ad2291ac39d3ff98/merged",
"UpperDir": "/var/lib/docker/overlay2/cae80c4eacdb3a98a09ff72d986373f7ffe759730f18bd16ad2291ac39d3ff98/diff",
"WorkDir": "/var/lib/docker/overlay2/cae80c4eacdb3a98a09ff72d986373f7ffe759730f18bd16ad2291ac39d3ff98/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d101c9453715a978a2a520f553588e77dfb4236762175eba61c5c264a449c75d",
"sha256:7175dc849fc09faa050637f881d1d52a57ec7020b2d3548f47ad505d4504352f",
"sha256:8f1b26ae4dc4c6f9ae2a7aff3a8f9462d4b2703b3ffe2b5ec7f089a7fb3ba844",
"sha256:e26ef9b8fe6b6830ea9851b43fa08c201adece494ef7056d9e5bec364fb73a00",
"sha256:08bccf04e737c3648178ca2dc339779a5964bc0e8e574fe8ad81edde15761978",
"sha256:fab698077d6510e876fb2374b0bfd820b48d83b33e33a875d235b3324ace1e9c",
"sha256:2a1fc5c8c39c33ac82874a566c7ba13eb250a97376c3664567d118c102c88099",
"sha256:fdaed04e999e1dc4c1ea46ac10a100b4b14b29071891f2d8239214d58128b4b9",
"sha256:27bd104943782caa2222971c53d577c3e8a4d0b8c3858e5a342a681ab1fa7d0e",
"sha256:a0850d9da190a889f5d78cbf651c97a2a867258b90c48416339fec6f9f4465c5",
"sha256:681c83e4c59890aa1f898853d885529022e009796712c8d3a7bdae9e002f9a94",
"sha256:24f27080152811229cda4f842968df0e28a5453fc5be04056885c8e577087ebb"
]
},
"Metadata": {
"LastTagTime": "2024-08-15T13:41:26.340704424+08:00"
}
}