Namespace
getsentry
Image / Tag
snuba:058e6e54d1eff5fc8385389639fceae475cb7cc2
Content Digest
sha256:05f0885e050a7d0530f69ca2dab1cb452141e4a8fcc974c82f71158cd8629a9c
Details
Created

2023-04-28 19:52:16 UTC

Size

282 MB

Content Digest
Environment
FLASK_DEBUG

0

GPG_KEY

E3FF2839C048B25C084DEBE9B26995E310250568

LANG

C.UTF-8

PATH

/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PIP_DISABLE_PIP_VERSION_CHECK

on

PIP_NO_CACHE_DIR

off

PYTHONDONTWRITEBYTECODE

1

PYTHONUNBUFFERED

1

PYTHON_GET_PIP_SHA256

394be00f13fa1b9aaa47e911bdb59a09c3b2986472130f30aa0bfaf7f3980637

PYTHON_GET_PIP_URL

https://github.com/pypa/get-pip/raw/d5cb0afaf23b8520f1bbcfed521017b4a95f5c01/public/get-pip.py

PYTHON_PIP_VERSION

22.0.4

PYTHON_SETUPTOOLS_VERSION

57.5.0

PYTHON_VERSION

3.8.16

SNUBA_RELEASE

058e6e54d1eff5fc8385389639fceae475cb7cc2

UWSGI_DOGSTATSD_EXTRA_TAGS

service:snuba

UWSGI_ENABLE_METRICS

true

UWSGI_NEED_PLUGIN

/var/lib/uwsgi/dogstatsd

UWSGI_STATS_PUSH

dogstatsd:127.0.0.1:8126


Layers

[#000] sha256:26c5c85e47da3022f1bdb9a112103646c5c29517d757e95426f16e4bd9533405 - 10.63% (30 MB)

[#001] sha256:9e79879be9c7cd8edaba21c88fa4be66ea65e7a3f56f98e7820bcb7dedac3b00 - 0.36% (1.03 MB)

[#002] sha256:0060f14183eaba69bdd5397206214f30ff3e1d3609f5c29f01b59bbf2a2d9217 - 3.68% (10.4 MB)

[#003] sha256:b3e690cd2eee43ccdcf9fd4daae3531ee4222e82b2e0d784182a2012a40ba003 - 0.0% (244 Bytes)

[#004] sha256:a6be8f6cd009c70451a108501e52f757790f72741f6551b5d983677d75d407b1 - 1.08% (3.05 MB)

[#005] sha256:8e1ee9f4f60b499d7e9cbdd48fd50be1d61e3576a7261a055f56a5a23584dfea - 0.0% (142 Bytes)

[#006] sha256:416b6b3ce0102b7261aa511f8730455f7c4bd52e35803e220b54dd567db30f78 - 0.0% (251 Bytes)

[#007] sha256:cc3a96909094b47f1c95e7c1c4a5f452ec8f63d1497c1e9639d59c0ac1422a56 - 56.31% (159 MB)

[#008] sha256:c9110dea417d0e403b933fb552c0a9f6f4d5ae90a02c8fe14144c43babbcb0f1 - 0.0% (685 Bytes)

[#009] sha256:3f1cea981ab86e9558932b086bb71e5a5290cc32642886e72eb71dc5fde6bb10 - 20.11% (56.7 MB)

[#010] sha256:d0479e4313d4d5ebd6555290efb38e8a3e58dc3c4a55503178d5e20b8157f5e3 - 0.31% (898 KB)

[#011] sha256:62a5563826d90cbab82e6854abf985a44f3b1b40c97bf1f15cc38c9322a833fd - 1.01% (2.86 MB)

[#012] sha256:57932028a7cf37830c281ec23e76a76d79a3c117379558118e87c17120a6fbb4 - 0.02% (57 KB)

[#013] sha256:6c9674cddc5ec10bf0bd8b067b0bd5651d019363a2762415191b113d3d3745ae - 1.98% (5.6 MB)

[#014] sha256:89edef2d5f41eac7ef0e2044da17aab220f7a67ba2fde90cca00d814525bd56e - 4.5% (12.7 MB)


History
2023-04-12 00:20:06 UTC

/bin/sh -c #(nop) ADD file:11b1acca3f68b5c5787e292ff8dbdd114964a7272bf3519ab07710cbc01a0838 in /

2023-04-12 00:20:06 UTC

/bin/sh -c #(nop) CMD ["bash"]

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

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

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.8.16

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg dirmngr 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; command -v gpgconf > /dev/null && 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-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' \) \) -o \( -type f -a -name 'wininst-*.exe' \) \) -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 '/=>/ { print $(NF-1) }' | 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

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

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

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV PYTHON_PIP_VERSION=22.0.4

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SETUPTOOLS_VERSION=57.5.0

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/d5cb0afaf23b8520f1bbcfed521017b4a95f5c01/public/get-pip.py

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_SHA256=394be00f13fa1b9aaa47e911bdb59a09c3b2986472130f30aa0bfaf7f3980637

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

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

2023-04-12 00:20:06 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

0001-01-01 00:00:00 UTC

WORKDIR /usr/src/snuba

0001-01-01 00:00:00 UTC

COPY requirements-build.txt ./

0001-01-01 00:00:00 UTC

RUN set -ex; buildDeps=' curl git gcc libc6-dev liblz4-dev libpcre3-dev libssl-dev wget zlib1g-dev pkg-config cmake make g++ gnupg '; apt-get update; apt-get install -y $buildDeps --no-install-recommends; pip install -r requirements-build.txt; echo "$buildDeps" > /tmp/build-deps.txt

0001-01-01 00:00:00 UTC

COPY requirements.txt ./

0001-01-01 00:00:00 UTC

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; 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 00:00:00 UTC

COPY . ./

0001-01-01 00:00:00 UTC

COPY --from=build_rust_snuba /usr/src/snuba/rust_snuba/target/wheels/ /tmp/rust_wheels/

0001-01-01 00:00:00 UTC

COPY --from=build_admin_ui /usr/src/snuba/snuba/admin/dist/ ./snuba/admin/dist/

0001-01-01 00:00:00 UTC

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 00:00:00 UTC

RUN pip install -r requirements-test.txt

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete