镜像构建历史
# 0001-01-01 08:00:00 598.79KB 执行命令并创建新的镜像层
RUN set -ex; apt-get purge -y --auto-remove $(cat /tmp/build-deps.txt); rm /tmp/build-deps.txt; rm -rf /var/lib/apt/lists/*;
# 0001-01-01 08:00:00 149.94MB 执行命令并创建新的镜像层
RUN set -ex; groupadd -r snuba --gid 1000; useradd -r -g snuba --uid 1000 snuba; chown -R snuba:snuba ./; rm -rf ./rust_snuba/; [ -z "`find /tmp/rust_wheels -type f`" ] || pip install /tmp/rust_wheels/*; rm -rf /tmp/rust_wheels/; pip install -e .; snuba --help
# 0001-01-01 08:00:00 14.50MB 复制新文件或目录到容器中
COPY --from=build_admin_ui /usr/src/snuba/snuba/admin/dist/ ./snuba/admin/dist/
# 0001-01-01 08:00:00 29.18MB 复制新文件或目录到容器中
COPY --from=build_rust_snuba /usr/src/snuba/rust_snuba/target/wheels/ /tmp/rust_wheels/
# 0001-01-01 08:00:00 8.17MB 复制新文件或目录到容器中
COPY . ./
# 0001-01-01 08:00:00 211.99MB 执行命令并创建新的镜像层
RUN set -ex; pip install -r requirements.txt; mkdir /tmp/uwsgi-dogstatsd; wget -O - https://github.com/DataDog/uwsgi-dogstatsd/archive/bc56a1b5e7ee9e955b7a2e60213fc61323597a78.tar.gz | tar -xvz -C /tmp/uwsgi-dogstatsd --strip-components=1; uwsgi --build-plugin /tmp/uwsgi-dogstatsd; rm -rf /tmp/uwsgi-dogstatsd .uwsgi_plugins_builder; mkdir -p /var/lib/uwsgi; mv dogstatsd_plugin.so /var/lib/uwsgi/; python -c 'import os, sys; sys.setdlopenflags(sys.getdlopenflags() | os.RTLD_GLOBAL); import pyuwsgi; pyuwsgi.run()' --need-plugin=/var/lib/uwsgi/dogstatsd --help > /dev/null
# 0001-01-01 08:00:00 1.00KB 复制新文件或目录到容器中
COPY requirements.txt ./
# 0001-01-01 08:00:00 565.88MB 执行命令并创建新的镜像层
RUN set -ex; buildDeps=' git gcc libc6-dev liblz4-dev libpcre3-dev libssl-dev wget zlib1g-dev pkg-config cmake make g++ gnupg '; runtimeDeps=' curl libjemalloc2 gdb heaptrack '; apt-get update; apt-get install -y $buildDeps $runtimeDeps --no-install-recommends; pip install -r requirements-build.txt; ln -s /usr/lib/*/libjemalloc.so.2 /usr/src/snuba/libjemalloc.so.2; echo "$buildDeps" > /tmp/build-deps.txt
# 0001-01-01 08:00:00 99.00B 复制新文件或目录到容器中
COPY requirements-build.txt ./
# 0001-01-01 08:00:00 0.00B 设置工作目录为/usr/src/snuba
WORKDIR /usr/src/snuba
# 2024-03-22 07:32:08 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-03-22 07:32:08 12.40MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit
# 2024-03-22 07:32:08 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
# 2024-03-22 07:32:08 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
# 2024-03-22 07:32:08 0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
# 2024-03-22 07:32:08 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.0
# 2024-03-22 07:32:08 32.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 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-03-22 07:32:08 34.30MB 执行命令并创建新的镜像层
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 --without-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/*; python3 --version # buildkit
# 2024-03-22 07:32:08 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.8
# 2024-03-22 07:32:08 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-03-22 07:32:08 9.23MB 执行命令并创建新的镜像层
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-03-22 07:32:08 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-03-22 07:32:08 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-03-12 09:21:01 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-03-12 09:21:01 74.77MB
/bin/sh -c #(nop) ADD file:b86ae1c7ca3586d8feedcd9ff1b2b1e8ab872caf6587618f1da689045a5d7ae4 in /
镜像信息
{
"Id": "sha256:ab94ca036315cf864aab9afdb14dc80e3bc3c43cba0f15b067c9101a7287a880",
"RepoTags": [
"getsentry/snuba:24.12.2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:24.12.2"
],
"RepoDigests": [
"getsentry/snuba@sha256:83793b423b8b21b2d8fd7b2ccf84a1c58b0dac0ce76b51c804c28ee002ce416b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba@sha256:6dc12f5116e29a6b1dfd0fc3103f333cfac2edf6171010a86721dd1eba00f75b"
],
"Parent": "",
"Comment": "",
"Created": "2025-01-14T17:43:23.780840052Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "snuba",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"1218/tcp": {},
"1219/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_VERSION=3.11.8",
"PYTHON_PIP_VERSION=24.0",
"PYTHON_SETUPTOOLS_VERSION=65.5.1",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py",
"PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9",
"PIP_NO_CACHE_DIR=off",
"PIP_DISABLE_PIP_VERSION_CHECK=on",
"LD_PRELOAD=/usr/src/snuba/libjemalloc.so.2",
"SNUBA_RELEASE=aee19cf6ab35c4d316d913a1a7db4ddba2171e59",
"FLASK_DEBUG=0",
"PYTHONUNBUFFERED=1",
"PYTHONDONTWRITEBYTECODE=1",
"UWSGI_ENABLE_METRICS=true",
"UWSGI_NEED_PLUGIN=/var/lib/uwsgi/dogstatsd",
"UWSGI_STATS_PUSH=dogstatsd:127.0.0.1:8126",
"UWSGI_DOGSTATSD_EXTRA_TAGS=service:snuba"
],
"Cmd": [
"api"
],
"Image": "",
"Volumes": null,
"WorkingDir": "/usr/src/snuba",
"Entrypoint": [
"./docker_entrypoint.sh"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 1110948294,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/30cbd7aac5fb2baff4c1fc594eef31ff142965bf04ecb2063fe97eef0031f0bf/diff:/var/lib/docker/overlay2/d5610e4b1e14f0a8db120140585754735c6cdad7e77a096eeb710b19586850d3/diff:/var/lib/docker/overlay2/9133023e1bcbc52ba2954e70e3c473b1a7312a153dce3a45a5222d5d12527d86/diff:/var/lib/docker/overlay2/bd1b4650a32747833dbca3c08796ccb9b7fddf9e1b2d3ca0df31aa7277375678/diff:/var/lib/docker/overlay2/7ba0a2058f63fa20132d7a7f828ba112533c302736056318c70df35148e8d79e/diff:/var/lib/docker/overlay2/c086a9582d7c4b5a4712555a30cb273403c6cd963271cbc32f277adb318796d7/diff:/var/lib/docker/overlay2/7ae9d3d515a1a5c160db5c30b7886e2473334dde82ef0d7d254071dcf4a04e8a/diff:/var/lib/docker/overlay2/93fd0d4bdc1e0dcb0b73d6f492af930c7cf2574a80a97556e31ce47cedb1a6b9/diff:/var/lib/docker/overlay2/84c64a45adb0d95a81c7193515569d696086a7c26e30cac11ba0475da2e4e1db/diff:/var/lib/docker/overlay2/f77a6567df525226e2050e7d960afcb5ffc9ffa935ea3cc4597b65278b9c6bd3/diff:/var/lib/docker/overlay2/a8b3f5ba922d0fa2f9aec2270ebfb8f8d9cf0dc856a01434fbc96f63d67dc9db/diff:/var/lib/docker/overlay2/62b71294728b8b353fc9413f3f75edf68f9b81c08d29be8639ebb6dd83f91848/diff:/var/lib/docker/overlay2/be6f99192aee10f4937c3e46b78e3afade774c6686df4a0d432af14077a78527/diff:/var/lib/docker/overlay2/cfdb35c66f0da209364a7efe05a41ae43fd16d67f3b7e3aa409ee23cab17d560/diff",
"MergedDir": "/var/lib/docker/overlay2/e1f43c264e51389f72e3ec623cfcc67f7c4dd1efd8885055406d77bcb539c78c/merged",
"UpperDir": "/var/lib/docker/overlay2/e1f43c264e51389f72e3ec623cfcc67f7c4dd1efd8885055406d77bcb539c78c/diff",
"WorkDir": "/var/lib/docker/overlay2/e1f43c264e51389f72e3ec623cfcc67f7c4dd1efd8885055406d77bcb539c78c/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:a483da8ab3e941547542718cacd3258c6c705a63e94183c837c9bc44eb608999",
"sha256:c8f253aef5606f6716778771171c3fdf6aa135b76a5fa8bf66ba45c12c15b540",
"sha256:9559125c0303b960274ed767b40a1a1950c500dd9e3f5ffea9418d156b787299",
"sha256:010a290fc3d5487d6431681165ae41aca6278b077be77a285db6888154903022",
"sha256:067693c93cf96e1757b12c3b57a46f0ef79e2499b4729c35a608bb2e915e64ee",
"sha256:0a880b52d79e6c4d553efa9783b0e5dce6707d543f7659c4d7c588c8014a7e12",
"sha256:44f1f61222767b8c3b007c2342e2003ab5b4e964f804364360d8ce708454cd27",
"sha256:dbbef453f435d64fb1fb168b56c2aaa030e4ee72337d1fa925219a2f93fe5b10",
"sha256:6d9c3342cc273caf4150bf523870b17cc9ae0ffbbf5574a011f20ea52ed63037",
"sha256:7561ef7c80ed676bec9daa2e7553955fc7aa598eef18c252729c6f2acd246943",
"sha256:c8f05c718a1126b2906f6e29baca68220dced9160abb297dae3059142a26d43c",
"sha256:18841b19034c2ac79ae09984f787d97b7de60d6161bb8033f3f3ce6488178732",
"sha256:4c981f4fef778cd18f75b034a27e5d5930b4212c1342ab9941f915eb620d8601",
"sha256:95a75768f940d14e4dde7c8c631330c506339ea170cc40030eff2732a6a40488",
"sha256:c561a8c43ebd65392fb7ab0fb7339c0b6e11fa79f107bbfe7636cb1404fb9f98"
]
},
"Metadata": {
"LastTagTime": "2025-01-16T18:48:59.526418214+08:00"
}
}