镜像构建历史
# 2024-12-21 21:11:05 0.00B 添加元数据标签
LABEL org.opencontainers.image.licenses=https://github.com/getsentry/sentry/blob/9f30cbed6be321b4c590903506b7d484d43efa07/LICENSE
# 2024-12-21 21:11:05 0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/getsentry/sentry/tree/9f30cbed6be321b4c590903506b7d484d43efa07/
# 2024-12-21 21:11:05 0.00B 添加元数据标签
LABEL org.opencontainers.image.revision=9f30cbed6be321b4c590903506b7d484d43efa07
# 2024-12-21 21:11:05 0.00B 设置环境变量 SENTRY_BUILD
ENV SENTRY_BUILD=9f30cbed6be321b4c590903506b7d484d43efa07
# 2024-12-21 21:11:05 0.00B 定义构建参数
ARG SOURCE_COMMIT=9f30cbed6be321b4c590903506b7d484d43efa07
# 2024-12-21 21:11:05 0.00B 设置默认要执行的命令
CMD ["run" "web"]
# 2024-12-21 21:11:05 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/bin/sh" "-c" "exec /docker-entrypoint.sh \"$0\" \"$@\""]
# 2024-12-21 21:11:05 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data]
# 2024-12-21 21:11:05 0.00B 声明容器运行时监听的端口
EXPOSE map[9000/tcp:{}]
# 2024-12-21 21:11:05 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-12-21 21:11:04 583.00B 复制新文件或目录到容器中
COPY ./self-hosted/docker-entrypoint.sh / # buildkit
# 2024-12-21 21:11:04 10.43KB 复制新文件或目录到容器中
COPY ./self-hosted/sentry.conf.py ./self-hosted/config.yml /etc/sentry/ # buildkit
# 2024-12-21 21:11:04 1.39MB 执行命令并创建新的镜像层
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-12-21 21:11:03 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-12-21 21:11:03 287.24MB 复制新文件或目录到容器中
COPY . . # buildkit
# 2024-12-20 07:36:44 436.64MB 执行命令并创建新的镜像层
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-12-20 07:36:15 3.15KB 复制新文件或目录到容器中
COPY requirements-frozen.txt /tmp/requirements-frozen.txt # buildkit
# 2024-11-16 00:43:06 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-11-16 00:43:06 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-11-16 00:43:02 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-11-16 00:43:02 0.00B 设置工作目录为/usr/src/sentry
WORKDIR /usr/src/sentry
# 2024-11-16 00:43:02 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-12-21 08:45:01 0.00B 定义构建参数
ARG TINI_SHA256=93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c
# 2024-12-21 08:45:01 0.00B 定义构建参数
ARG TINI_VERSION=0.19.0
# 2024-12-21 08:45:01 0.00B 定义构建参数
ARG GOSU_SHA256=bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3
# 2024-12-21 08:45:01 0.00B 定义构建参数
ARG GOSU_VERSION=1.17
# 2024-12-21 08:45:01 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c : && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libexpat1 && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
# 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:295977d3e0bdd6bd4e8759d71edd0d84127ffe7f75109932dd4b5cbd2852fda5",
"RepoTags": [
"getsentry/sentry:24.12.1",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/sentry:24.12.1"
],
"RepoDigests": [
"getsentry/sentry@sha256:5155e80dfeb1615af1f20b308559d60b95bf6ab21dfdb73c434154d904383c4b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/sentry@sha256:060212b9f1628ed5af48a702642a9550bdf13f804bebb5054d20bb6c7f2af90f"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-21T13:11:05.304548091Z",
"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=9f30cbed6be321b4c590903506b7d484d43efa07"
],
"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/9f30cbed6be321b4c590903506b7d484d43efa07/LICENSE",
"org.opencontainers.image.revision": "9f30cbed6be321b4c590903506b7d484d43efa07",
"org.opencontainers.image.source": "https://github.com/getsentry/sentry/tree/9f30cbed6be321b4c590903506b7d484d43efa07/",
"org.opencontainers.image.title": "Sentry",
"org.opencontainers.image.url": "https://sentry.io/",
"org.opencontainers.image.vendor": "Functional Software, Inc."
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 867092663,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/a8aee1b928316bc3243f32d36c55ac395770088eb2bde6437196037cba366430/diff:/var/lib/docker/overlay2/7750ed5e25c8a0a49ab922ff2f87e5a4ef12b78b81b4b56abd8e0408c0b0e327/diff:/var/lib/docker/overlay2/2526d49120919f51e7e934ee97edce3dd226f1d4f997e8abe8430e6aa6dd7f4a/diff:/var/lib/docker/overlay2/7e7dfe4b66f98e81ab254b13aa951ad4ca114d6258a3420d42f01251fc368742/diff:/var/lib/docker/overlay2/0be0cc7770b875717d8c4c8cb0a3574ad88339bff27efac0636962fd7cdf83d7/diff:/var/lib/docker/overlay2/d1cd30df6936ccb39144a89ec1d50c65da9b79615098c9e1bc43a4f1581fc6c4/diff:/var/lib/docker/overlay2/976485f6cf29a8206a8d9b2a498989849ed8327eb5183afc81f95ad72081d130/diff:/var/lib/docker/overlay2/bef2ad1b3d735bfe10c7489d5fb0e6c1335c0ccb70131d00a587b547800ddf04/diff:/var/lib/docker/overlay2/feac78bede85c91e277a95b39ab900bb4d8085541a03c8f1da3d1f11441c4493/diff:/var/lib/docker/overlay2/7f09cc4eb4d2c0fb34c180774e20a3c251d3fecbb9892fce73a83906be378eb3/diff:/var/lib/docker/overlay2/4207c3945ffdb147602046f6d6dbe9555beb35b88e20731fbc1f872181d5e5c3/diff:/var/lib/docker/overlay2/53f04f26eeea932043b413529833d1393a0e205131962cfc5d36f379b4c7eafd/diff:/var/lib/docker/overlay2/9b0f81f54f7e594bd7195b554412cf64369c898b94869131ba976a624f2bedd0/diff:/var/lib/docker/overlay2/33a6063a6e28787756e673af16718bcf0505ad676bef180bf7f4cd8ea265f0a2/diff:/var/lib/docker/overlay2/4e6421575adb0b7ddb3bb3ec3821c2f59faa0b6dcb87a8f0ba8d0ffd71ab123b/diff:/var/lib/docker/overlay2/1bccca92078a7af8b31c9945ce2f68029d684347892dd2e49c5a3b836eef3b8c/diff",
"MergedDir": "/var/lib/docker/overlay2/a5f8b4929b7062dd83f4ca1eeef003d9a3d974ed7a64947301c17109c9221db6/merged",
"UpperDir": "/var/lib/docker/overlay2/a5f8b4929b7062dd83f4ca1eeef003d9a3d974ed7a64947301c17109c9221db6/diff",
"WorkDir": "/var/lib/docker/overlay2/a5f8b4929b7062dd83f4ca1eeef003d9a3d974ed7a64947301c17109c9221db6/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
"sha256:462eacda1a6948d0a33f787a2cda785ff7ccc6e85703b591472a890d1cde34e1",
"sha256:6102c39d73febe97b8c6f8b5f89982a28767d1defdff71f529a4ff499f278577",
"sha256:e2bc26829d4010019772a961741ba1245ca31e81c403ff39ab84115969f9ede3",
"sha256:5a2a5a50f0fffef556fab0993138261c62cf06ee2bb1df4cbf81e254a3ff59c0",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:bac00b3d273cef463f679c07d4e5cc0b4447c34cfcfd2eee58a2ddc2a13ca28c",
"sha256:721a42a1a761523d9c0c521eb8a0212525f95178f456ff0aa747980ce418d2bc",
"sha256:6000e3bcd0701226a71cd4b3b27994651694b1dbfd9deebea6c6030ddb5b8e30",
"sha256:03834bb740b33e7195934f7ec57ae987c7e810c1f955172d7256582745ba70a9",
"sha256:d617756a6be0449bda5881e7579b2265359d53b882e990d8cf1ddddafede869d",
"sha256:93987743c25bdf378bc5b11ff34548c0ee3f63872b652f031ad45c6ba8709336",
"sha256:b8c20d76329e6cc11be3c071f8553f83c254b6f4f38589470bf0292368362f24",
"sha256:fe5e16373914cdd295e4bb02d33052f7756232217931ba120ed8ea2f62b7fab6",
"sha256:dfd10e5bc58a7dd1510c79df7eef3c239cb0d920c5de0a30c2d32f01d8bcbd54",
"sha256:bfd67da14e57836b20ff7398bb39df0f3d8ea42804a4e184ed38e9f68936f04c",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2024-12-23T14:16:30.12921132+08:00"
}
}