镜像构建历史
# 2024-10-21 16:42:24 0.00B 添加元数据标签
LABEL org.opencontainers.image.licenses=https://github.com/getsentry/sentry/blob/d098a26f5e67db99b5415c31dd657080446a2871/LICENSE
# 2024-10-21 16:42:24 0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/getsentry/sentry/tree/d098a26f5e67db99b5415c31dd657080446a2871/
# 2024-10-21 16:42:24 0.00B 添加元数据标签
LABEL org.opencontainers.image.revision=d098a26f5e67db99b5415c31dd657080446a2871
# 2024-10-21 16:42:24 0.00B 设置环境变量 SENTRY_BUILD
ENV SENTRY_BUILD=d098a26f5e67db99b5415c31dd657080446a2871
# 2024-10-21 16:42:24 0.00B 定义构建参数
ARG SOURCE_COMMIT=d098a26f5e67db99b5415c31dd657080446a2871
# 2024-10-21 16:42:24 0.00B 设置默认要执行的命令
CMD ["run" "web"]
# 2024-10-21 16:42:24 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/bin/sh" "-c" "exec /docker-entrypoint.sh \"$0\" \"$@\""]
# 2024-10-21 16:42:24 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data]
# 2024-10-21 16:42:24 0.00B 声明容器运行时监听的端口
EXPOSE map[9000/tcp:{}]
# 2024-10-21 16:42:24 0.00B 执行命令并创建新的镜像层
RUN |4 GOSU_VERSION=1.17 GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3 TINI_VERSION=0.19.0 TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c /bin/sh -c : double-check some built files are available && test -f /usr/src/sentry/src/sentry/loader/_registry.json && test -f /usr/src/sentry/src/sentry/integration-docs/python.json && test -f /usr/src/sentry/src/sentry/static/sentry/dist/entrypoints/app.js && sentry help && : # buildkit
# 2024-10-21 16:42:23 583.00B 复制新文件或目录到容器中
COPY ./self-hosted/docker-entrypoint.sh / # buildkit
# 2024-10-21 16:42:23 10.43KB 复制新文件或目录到容器中
COPY ./self-hosted/sentry.conf.py ./self-hosted/config.yml /etc/sentry/ # buildkit
# 2024-10-21 16:42:23 1.38MB 执行命令并创建新的镜像层
RUN |4 GOSU_VERSION=1.17 GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3 TINI_VERSION=0.19.0 TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c /bin/sh -c sentry help | sed '1,/Commands:/d' | awk '{print $1}' > /sentry-commands.txt # buildkit
# 2024-10-21 16:42:22 2.00KB 执行命令并创建新的镜像层
RUN |4 GOSU_VERSION=1.17 GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3 TINI_VERSION=0.19.0 TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c /bin/sh -c python3 -m tools.fast_editable --path . # buildkit
# 2024-10-21 16:42:21 2.46GB 复制新文件或目录到容器中
COPY . . # buildkit
# 2024-10-17 18:50:09 464.89MB 执行命令并创建新的镜像层
RUN |4 GOSU_VERSION=1.17 GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3 TINI_VERSION=0.19.0 TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c /bin/sh -c set -x && buildDeps=" gcc libpcre2-dev wget zlib1g-dev " && apt-get update && apt-get install -y --no-install-recommends $buildDeps && pip install -r /tmp/requirements-frozen.txt && mkdir /tmp/uwsgi-dogstatsd && wget -O - https://github.com/DataDog/uwsgi-dogstatsd/archive/1a04f784491ab0270b4e94feb94686b65d8d2db1.tar.gz | tar -xzf - -C /tmp/uwsgi-dogstatsd --strip-components=1 && UWSGI_NEED_PLUGIN="" uwsgi --build-plugin /tmp/uwsgi-dogstatsd && mkdir -p /var/lib/uwsgi && mv dogstatsd_plugin.so /var/lib/uwsgi/ && rm -rf /tmp/requirements-frozen.txt /tmp/uwsgi-dogstatsd .uwsgi_plugins_builder && apt-get purge -y --auto-remove $buildDeps && apt-get clean && rm -rf /var/lib/apt/lists/* && python -c 'import maxminddb.extension; maxminddb.extension.Reader' && mkdir -p $SENTRY_CONF # buildkit
# 2024-10-17 18:49:39 3.11KB 复制新文件或目录到容器中
COPY requirements-frozen.txt /tmp/requirements-frozen.txt # buildkit
# 2024-09-27 18:25:37 0.00B 设置环境变量 SENTRY_CONF UWSGI_NEED_PLUGIN GRPC_POLL_STRATEGY
ENV SENTRY_CONF=/etc/sentry UWSGI_NEED_PLUGIN=/var/lib/uwsgi/dogstatsd GRPC_POLL_STRATEGY=epoll1
# 2024-09-27 18:25:37 15.06MB 执行命令并创建新的镜像层
RUN |4 GOSU_VERSION=1.17 GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3 TINI_VERSION=0.19.0 TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c /bin/sh -c python3 -m venv /.venv # buildkit
# 2024-09-27 18:25:32 0.00B 设置环境变量 PATH PIP_NO_CACHE_DIR PIP_DISABLE_PIP_VERSION_CHECK
ENV PATH=/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
# 2024-09-27 18:25:32 0.00B 设置工作目录为/usr/src/sentry
WORKDIR /usr/src/sentry
# 2024-09-27 18:25:32 2.76MB 执行命令并创建新的镜像层
RUN |4 GOSU_VERSION=1.17 GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3 TINI_VERSION=0.19.0 TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c /bin/sh -c set -x && buildDeps=" wget " && apt-get update && apt-get install -y --no-install-recommends $buildDeps && rm -rf /var/lib/apt/lists/* && wget --quiet -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" && echo "$GOSU_SHA256 /usr/local/bin/gosu" | sha256sum --check --status && chmod +x /usr/local/bin/gosu && wget --quiet -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/v$TINI_VERSION/tini-amd64" && echo "$TINI_SHA256 /usr/local/bin/tini" | sha256sum --check --status && chmod +x /usr/local/bin/tini && apt-get purge -y --auto-remove $buildDeps # buildkit
# 2024-09-27 18:25:27 0.00B 定义构建参数
ARG TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c
# 2024-09-27 18:25:27 0.00B 定义构建参数
ARG TINI_VERSION=0.19.0
# 2024-09-27 18:25:27 0.00B 定义构建参数
ARG GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3
# 2024-09-27 18:25:27 0.00B 定义构建参数
ARG GOSU_VERSION=1.17
# 2024-09-27 18:25:27 8.86KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd -r sentry && useradd -r -m -g sentry sentry # buildkit
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL org.opencontainers.image.authors=oss@sentry.io
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL org.opencontainers.image.vendor=Functional Software, Inc.
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL org.opencontainers.image.documentation=https://develop.sentry.dev/self-hosted/
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL org.opencontainers.image.url=https://sentry.io/
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL org.opencontainers.image.description=Sentry runtime image
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL org.opencontainers.image.title=Sentry
# 2024-09-27 18:25:27 0.00B 添加元数据标签
LABEL maintainer=oss@sentry.io
# 2024-09-10 01:16:05 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-09-10 01:16:05 36.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
# 2024-09-10 01:16:05 39.98MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-system-expat --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
# 2024-09-10 01:16:05 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.12.6
# 2024-09-10 01:16:05 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2024-09-10 01:16:05 9.24MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
# 2024-09-10 01:16:05 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-09-10 01:16:05 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-09-10 01:16:05 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-09-10 01:16:05 74.78MB
/bin/sh -c #(nop) ADD file:a9a95cfab16803be03e59ade41622ef5061cf90f2d034304fe4ac1ee9ff30389 in /
镜像信息
{
"Id": "sha256:e95ad341433d616833a96fd5a840b6464ea045aa50b9c8e3da8c6cc5f6b91a7f",
"RepoTags": [
"getsentry/sentry:nightly",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/sentry:nightly"
],
"RepoDigests": [
"getsentry/sentry@sha256:d7652e57723d1c9efd9e7c3bb73bc4f6fadfc5c51cba9b73e81fc963a4a86f8d",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/sentry@sha256:d7652e57723d1c9efd9e7c3bb73bc4f6fadfc5c51cba9b73e81fc963a4a86f8d"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-10-21T08:42:24.455252298Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
"PYTHON_VERSION=3.12.6",
"PIP_NO_CACHE_DIR=1",
"PIP_DISABLE_PIP_VERSION_CHECK=1",
"SENTRY_CONF=/etc/sentry",
"UWSGI_NEED_PLUGIN=/var/lib/uwsgi/dogstatsd",
"GRPC_POLL_STRATEGY=epoll1",
"SENTRY_BUILD=d098a26f5e67db99b5415c31dd657080446a2871"
],
"Cmd": [
"run",
"web"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/data": {}
},
"WorkingDir": "/usr/src/sentry",
"Entrypoint": [
"/bin/sh",
"-c",
"exec /docker-entrypoint.sh \"$0\" \"$@\""
],
"OnBuild": null,
"Labels": {
"maintainer": "oss@sentry.io",
"org.opencontainers.image.authors": "oss@sentry.io",
"org.opencontainers.image.description": "Sentry runtime image",
"org.opencontainers.image.documentation": "https://develop.sentry.dev/self-hosted/",
"org.opencontainers.image.licenses": "https://github.com/getsentry/sentry/blob/d098a26f5e67db99b5415c31dd657080446a2871/LICENSE",
"org.opencontainers.image.revision": "d098a26f5e67db99b5415c31dd657080446a2871",
"org.opencontainers.image.source": "https://github.com/getsentry/sentry/tree/d098a26f5e67db99b5415c31dd657080446a2871/",
"org.opencontainers.image.title": "Sentry",
"org.opencontainers.image.url": "https://sentry.io/",
"org.opencontainers.image.vendor": "Functional Software, Inc."
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 3072783026,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/c6db0913e237f7ae7f91d20c9b16ae3dbc4e5b535aaf0970028ac4061c9cab07/diff:/var/lib/docker/overlay2/49629d8393fd9ff40b06205f3cfbbb1dc9c1f4f01787c04d3eec613f34e0e945/diff:/var/lib/docker/overlay2/3ba921503f0a837f77b962633fab10a8e457a17f0693d31c34080b6df5fa61bc/diff:/var/lib/docker/overlay2/0a187ab6a370f05256c296e76882122ac1e1868e2c130c945546e1f2c40e0679/diff:/var/lib/docker/overlay2/4cd8e49770dc45338603cbde9f9388b7a216fedff3efb17ae9508c0973e1a2ef/diff:/var/lib/docker/overlay2/88be4d6cdc6fb0ba1f06971916259255029035cc45b716913b1a71a02c73c5f2/diff:/var/lib/docker/overlay2/be313e49a5ff3b065d297e4cbf87831db89a2b4bd8a83653b46d7b25f6839e18/diff:/var/lib/docker/overlay2/678c0ce37aacf3a7adfada52687c07519fcdd7f613c0eb990399a292bd3ad4ae/diff:/var/lib/docker/overlay2/9ab0ca0483261910ea041cc2c941b04021424aaa28053a553b9d7de3c4d1b095/diff:/var/lib/docker/overlay2/51b25587d6133109cba74afc8a6ba17393195899c5239969b88bd422ecc8ed90/diff:/var/lib/docker/overlay2/e4a78eb30b69f4dcf3d5b76b9c780aa259bdf9c109e9780cf2d0c44f528ba9eb/diff:/var/lib/docker/overlay2/77166a02a53d81c9428b9a5aa0a631f292fffe3c8bfff0b948dc481df0ef2679/diff:/var/lib/docker/overlay2/7e716910bdebc41cfd1a614d65e163af31cc436124c06ff598120b612d2a1614/diff:/var/lib/docker/overlay2/b64353dde1eea8b53313c1b446b1644f0fcf83de26c5b88640c2d5c51b1a71a4/diff:/var/lib/docker/overlay2/1bccca92078a7af8b31c9945ce2f68029d684347892dd2e49c5a3b836eef3b8c/diff",
"MergedDir": "/var/lib/docker/overlay2/b68fa35ef6cad4ead75636a72a984693898b811548f194d974d8b93ad26385be/merged",
"UpperDir": "/var/lib/docker/overlay2/b68fa35ef6cad4ead75636a72a984693898b811548f194d974d8b93ad26385be/diff",
"WorkDir": "/var/lib/docker/overlay2/b68fa35ef6cad4ead75636a72a984693898b811548f194d974d8b93ad26385be/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
"sha256:462eacda1a6948d0a33f787a2cda785ff7ccc6e85703b591472a890d1cde34e1",
"sha256:6102c39d73febe97b8c6f8b5f89982a28767d1defdff71f529a4ff499f278577",
"sha256:e2bc26829d4010019772a961741ba1245ca31e81c403ff39ab84115969f9ede3",
"sha256:5a2a5a50f0fffef556fab0993138261c62cf06ee2bb1df4cbf81e254a3ff59c0",
"sha256:639f42675bc6224edfec744a3a151a0e3a41c98a0d106ac80eb81457ff5afaf4",
"sha256:d916607ad11987b33dd1fb2146fe097b633273a594a38fd669ea59d57a330fcd",
"sha256:4822f54b129be6a3543aa8226d07eed4c84536a21c6f0c0d2aaf35b988fa4345",
"sha256:0c54ab79e4479e91f7d94a7f5feff8a7c1251b78aed1b68771998d248e9e7248",
"sha256:dc4bca4b653ae93b29390b5f2a35f4fedda9260950858246fcb683950261760b",
"sha256:e1b3e9c395e523f75f5e83c50bee6679b327766cd8f504ee132bb7dbf4125efe",
"sha256:9f25ddf5b5893690d3a46336ff4c060e6259024530e523a843224e4589895104",
"sha256:241a8df1b4bef5a0c911ed330145cc7b3a998d1595d5834fac14dee73df2d712",
"sha256:2fd114e7dff324d8657d7511a9607e1d529621c992e46f423d043a55ea982a2d",
"sha256:3f874e38cdfa33e146f90b2bf21d30ede5dcf31b4097e9bd7b76da0d16f53744",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2024-10-21T17:19:07.303659986+08:00"
}
}