docker.io/getsentry/snuba:nightly linux/amd64

docker.io/getsentry/snuba:nightly - 国内下载镜像源 浏览次数:113

getsentry/snuba 镜像描述

这是一个由 Sentry 团队维护的 Snuba 容器镜像。Snuba 是一个高性能、可扩展的分析数据库,专门为 Sentry 的事件处理和分析而设计。

这个镜像包含了 Snuba 的所有必要组件,可以轻松地部署在您的基础设施中。您可以使用它来构建自己的 Sentry 实例或将其用作独立的分析数据库。

源镜像 docker.io/getsentry/snuba:nightly
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly
镜像ID sha256:8e708a139fb45a1ceab7726cc078d0273f76365224e4636ef624f6fb0b9e5920
镜像TAG nightly
大小 1.38GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD api
启动入口 ./docker_entrypoint.sh
工作目录 /usr/src/snuba
OS/平台 linux/amd64
浏览量 113 次
贡献者 fo***t@mlvw.team
镜像创建 2024-10-18T07:10:21.58271077Z
同步时间 2024-10-21 17:23
更新时间 2025-01-18 04:37
开放端口
1218/tcp 1219/tcp
环境变量
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=8dba33b1b33bc4b2ca1260e529a8163be490ec7a 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

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly  docker.io/getsentry/snuba:nightly

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly  docker.io/getsentry/snuba:nightly

Shell快速替换命令

sed -i 's#getsentry/snuba:nightly#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly  docker.io/getsentry/snuba:nightly'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly  docker.io/getsentry/snuba:nightly'

镜像构建历史


# 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  173.38MB 执行命令并创建新的镜像层
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  13.21MB 复制新文件或目录到容器中
COPY --from=build_admin_ui /usr/src/snuba/snuba/admin/dist/ ./snuba/admin/dist/
                        
# 0001-01-01 08:00:00  32.25MB 复制新文件或目录到容器中
COPY --from=build_rust_snuba /usr/src/snuba/rust_snuba/target/wheels/ /tmp/rust_wheels/
                        
# 0001-01-01 08:00:00  7.70MB 复制新文件或目录到容器中
COPY . ./
                        
# 0001-01-01 08:00:00  458.90MB 执行命令并创建新的镜像层
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.75MB 执行命令并创建新的镜像层
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:8e708a139fb45a1ceab7726cc078d0273f76365224e4636ef624f6fb0b9e5920",
    "RepoTags": [
        "getsentry/snuba:nightly",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba:nightly"
    ],
    "RepoDigests": [
        "getsentry/snuba@sha256:217b84a020395d5fe3655c9438b4be6490383c87b754f971f62967e11c3a7b0a",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/getsentry/snuba@sha256:525bc308dc3f7d3a1557c0ade61845b3e178b1186299607e2366d7b81e8d1800"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2024-10-18T07:10:21.58271077Z",
    "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=8dba33b1b33bc4b2ca1260e529a8163be490ec7a",
            "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": 1382485660,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/22a09ceffa7c5ef6d5a184ce06efedffa2e75b53169ade52bfd5e376b2109d46/diff:/var/lib/docker/overlay2/e81c4ee78feeda05a8aee3b8f7cbc42715a0229480f4805b57deba6ab61edf6d/diff:/var/lib/docker/overlay2/bd917c44baf658a08f1e861588b971c15518e56b6bdcd98f55e397babdbc93ef/diff:/var/lib/docker/overlay2/b5fe9145bcc275bb3e6c4a578cc2fc06504405478da4983df3b6a5b0904dedd6/diff:/var/lib/docker/overlay2/b06632dc72b2e6c001a1b118925c66ef406e09187222815656cebeb852a47523/diff:/var/lib/docker/overlay2/1774fd2f564b9018b5b841a0fbe381dd21de236e3f3296dc3dcff2763ea2bc95/diff:/var/lib/docker/overlay2/5ebad87c20d303ad544f6d8fb47e02f2ce389135fd86277de646444c7aa744bb/diff:/var/lib/docker/overlay2/a1fbfdfec77349ce0596e7f635cf797641dc22253bbc55a94fd00f2aacadce7e/diff:/var/lib/docker/overlay2/da5af2e9a639b2c836ac7f1d5880c082a53d53ab7636bd0e98cde825e3d2f987/diff:/var/lib/docker/overlay2/a413e2162d54e9b91d143c964b815c210e7e0272df3d8f1405d5c3f4102598f0/diff:/var/lib/docker/overlay2/e3f44ae6de66880c3e0577e3923841fc6d47d92b07c30f76c67518e3c1233e69/diff:/var/lib/docker/overlay2/b4572851e9bb50ae7900e9e9de3269a19f533dcedd028b64cc2f90a5eadd74ea/diff:/var/lib/docker/overlay2/023cb13fb33a7a744e3d6f39463289357a4ba22424fbe8d2eecb63c39b0f7ded/diff:/var/lib/docker/overlay2/b5d3e7ac2c1324d839e40a64a285a62d7eaa59a83d0be96d675166da9710bc03/diff",
            "MergedDir": "/var/lib/docker/overlay2/284cda8f6e1ee57a29dc86a2410b68dc38df9ea10ea05397a57c949e0e653829/merged",
            "UpperDir": "/var/lib/docker/overlay2/284cda8f6e1ee57a29dc86a2410b68dc38df9ea10ea05397a57c949e0e653829/diff",
            "WorkDir": "/var/lib/docker/overlay2/284cda8f6e1ee57a29dc86a2410b68dc38df9ea10ea05397a57c949e0e653829/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:a483da8ab3e941547542718cacd3258c6c705a63e94183c837c9bc44eb608999",
            "sha256:c8f253aef5606f6716778771171c3fdf6aa135b76a5fa8bf66ba45c12c15b540",
            "sha256:9559125c0303b960274ed767b40a1a1950c500dd9e3f5ffea9418d156b787299",
            "sha256:010a290fc3d5487d6431681165ae41aca6278b077be77a285db6888154903022",
            "sha256:067693c93cf96e1757b12c3b57a46f0ef79e2499b4729c35a608bb2e915e64ee",
            "sha256:860fd71a10fc501b18e30f5570197fca8dedd6b7158f8d3d70bf1535d58584e7",
            "sha256:5b8a1b2695d69b3b0ed6eddcbeb96c3ac2e79ef843f31860a39e088c2e2c6b92",
            "sha256:cf4c209a0a805b4bf0cfd62c9b7bbebd7988de1ba55b9be910fa98e72546bee0",
            "sha256:dd1f28c7a2c4ca50c73f561e60b72d0a33d5cf30d422c5cd618493e83daa26e7",
            "sha256:6dc83ae5e36c56641e56d06a4074a9ea572f0e8ca9669f798937a293fdc7104f",
            "sha256:6f4235cfe89a741ccf9a0a1f4f6b0b2ef492007518a953bfbede2d0365afdd29",
            "sha256:0e16d87571c01c95bf2d29492e70a102f457d5b7715bf277a927e573f1a0ea89",
            "sha256:a6d5064307a0d9efa7de5fde8f7417e4df184e57f1bb8594ee722b8998e17ec7",
            "sha256:cdae29a9a7253002c76c62e275074303b1f8584d8e28c29b2fa566648668c2a6",
            "sha256:bcd0973ab0f9dd2804061e03a5767873f7dae04e0f951fbd46b06df6907bf833"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-21T17:22:07.484545224+08:00"
    }
}

更多版本

docker.io/getsentry/snuba:24.7.1

linux/amd64 docker.io1.31GB2024-10-21 15:25
103

docker.io/getsentry/snuba:nightly

linux/amd64 docker.io1.38GB2024-10-21 17:23
112

docker.io/getsentry/snuba:24.9.0

linux/amd64 docker.io1.38GB2024-11-08 15:15
62

docker.io/getsentry/snuba:24.12.1

linux/amd64 docker.io1.11GB2024-12-23 14:20
61

docker.io/getsentry/snuba:24.12.2

linux/amd64 docker.io1.11GB2025-01-16 18:49
17

docker.io/getsentry/snuba:24.11.2

linux/amd64 docker.io1.14GB2025-01-16 20:34
15