Namespace
getsentry
Image / Tag
snuba:4ef4ab4
Content Digest
sha256:41e1dd3ec29e1fd5653c700872d21aa3fb67352961a546aa2478dd8276ea6cd0
Details
Created

2023-12-11 17:25:03 UTC

Size

339 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:/root/.cargo/bin/

PIP_DISABLE_PIP_VERSION_CHECK

on

PIP_NO_CACHE_DIR

off

PYTHONDONTWRITEBYTECODE

1

PYTHONUNBUFFERED

1

PYTHON_GET_PIP_SHA256

9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6

PYTHON_GET_PIP_URL

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

PYTHON_PIP_VERSION

23.0.1

PYTHON_SETUPTOOLS_VERSION

57.5.0

PYTHON_VERSION

3.8.18

SNUBA_RELEASE

4ef4ab45856d06ede9fcaf7b71fdd6d96b5ba8dd

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:1f7ce2fa46ab3942feabee654933948821303a5a821789dddab2d8c3df59e227 - 8.2% (27.8 MB)

[#001] sha256:442c5d63eafd969b755d7c8e0914319677ca8d5112a84e851b16677a4fc1d189 - 0.93% (3.16 MB)

[#002] sha256:b5b64aefe47cbfa37759552a8864ab919a9b5a9687ef9089a8d27cb0b8e896df - 3.87% (13.1 MB)

[#003] sha256:5319590ca294258d4b2bcb339c05af534cdbc4879400b5c36b43ea2e3ff5eccc - 0.0% (233 Bytes)

[#004] sha256:ef256e9b23e3a9de10cd933f658113bea148b1623f3b3b9749a5488a87a983ae - 0.82% (2.79 MB)

[#005] sha256:9073eca84319d25e42fa1c88be966605f2b69f428bff1afe0e35ab4354e112fa - 0.0% (326 Bytes)

[#006] sha256:63e6407218fadb81844aa2f9e540e2df3ed70e3cfee57abf300c8e7281395342 - 0.0% (468 Bytes)

[#007] sha256:8db720edbcb1d16c4c83825af85a23c81a8d8912a94145bb956dd61ff963e6ed - 52.54% (178 MB)

[#008] sha256:25010d6595aa85357ea1ee543ce75889b3bbaba726cae59cf39789ab55d6faa6 - 0.0% (948 Bytes)

[#009] sha256:efc4a4f42fcc629f6a9b7d01b403e533c91c0369441d7cecd77242bbc2d416ee - 24.79% (84 MB)

[#010] sha256:55033b6d23c4fc479278610ee0f3c4214471c4a96cc1dddbfea89c9fb9d7b8b4 - 0.32% (1.08 MB)

[#011] sha256:7fb5c932687e014330ce82bd212ad496d52a3e35ef771ccf6fb7b8dd1fb46ba4 - 1.42% (4.8 MB)

[#012] sha256:dd7c76610bff9d1363a2474eeed74fdb4e76dab01d0a7e65b1201ea0d8a8e607 - 0.61% (2.05 MB)

[#013] sha256:5333706d84fd26a1f6312032ccea51b93c2fd9924546e0e8b08a2b1d7272844c - 2.72% (9.21 MB)

[#014] sha256:2884e1ede5371cc223f6cfa775cae731543d70c54e76f5ba7ddad78e068d548e - 3.75% (12.7 MB)

[#015] sha256:38f0e8f2b90583ea256fc228e0955d426c0a06dc9a9a7ec3eabd90629a69c10f - 0.02% (81.3 KB)

[#016] sha256:7839c5f8770ce226650903174ca31b0af9257a3b0e44274a5421fddb6cc767d5 - 0.0% (255 Bytes)


History
2023-10-21 20:47:05 UTC

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

2023-10-21 20:47:05 UTC

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

2023-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

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

2023-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2023-10-21 20:47:05 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-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568

2023-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.8.18

2023-10-21 20:47:05 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 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-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 '/=>/ { 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

2023-10-21 20:47:05 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-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

ENV PYTHON_PIP_VERSION=23.0.1

2023-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SETUPTOOLS_VERSION=57.5.0

2023-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

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

2023-10-21 20:47:05 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6

2023-10-21 20:47:05 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-10-21 20:47:05 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

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

0001-01-01 00:00:00 UTC

COPY ./rust_snuba/ ./rust_snuba/

0001-01-01 00:00:00 UTC

RUN bash -c "set -o pipefail && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain $RUST_TOOLCHAIN --profile minimal -y"

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