Namespace
Image / Tag
redash:v10_spanner
Content Digest
sha256:6c2d9c782bf1dffb25628c04d8d192dd09fd2874809a15c9260111428cdd1496
Pull command
Details
Created

2024-10-10 13:21:12 -0300

Size

809 MB

Content Digest
Labels
  • com.docker.compose.project
    redash
  • com.docker.compose.service
    worker
  • com.docker.compose.version
    2.24.5

Environment
GPG_KEY

A035C8C19219BA821ECEA86B64E628F8D684696D

LANG

C.UTF-8

PATH

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

POETRY_HOME

/etc/poetry

POETRY_VERSION

1.8.3

POETRY_VIRTUALENVS_CREATE

false

PYTHON_VERSION

3.10.15


Layers

[#000] sha256:302e3ee498053a7b5332ac79e8efebec16e900289fc1ecd1c754ce8fa047fcab - 3.43% (27.8 MB)

[#001] sha256:eeec0daa4c1f7c8a5ea1f02ac1c8813e867ebea7df1dfc0db19d59c69cdc217e - 0.41% (3.35 MB)

[#002] sha256:9374269b22c322931105a13079f35525af0e460c71dff361f9f562e8342cd56c - 1.82% (14.7 MB)

[#003] sha256:e9e6580aad05144f1c93d072d5ee99b65ba05edbbc6cc3b3dc02d8ba24a2ac99 - 0.0% (249 Bytes)

[#004] sha256:a7f0c63d756fb736dc70272a0f986917b53cc79cd01909e2227b1ecbfef912a6 - 0.0% (3.26 KB)

[#005] sha256:94ef29c8e13a332dffdad474001995193453d7d261775d5fd6dde165745757d9 - 16.74% (135 MB)

[#006] sha256:df09058936d3ae03358d95abadc20462f9fa7dab6cbda694269c0e44d3c651ed - 3.31% (26.8 MB)

[#007] sha256:a3378d53a966fbeabdffe3272330e76cad1b2e8eb345f3e9d52c04830aa669c9 - 0.0% (93 Bytes)

[#008] sha256:63125f098c9f0a444fb3153609f73e7c4d3e0d70e1d75fc166fec3fecc815d13 - 5.68% (46 MB)

[#009] sha256:a1774c40b0a586836434f8896d3f29dd3495048d46f77f7b86370721f192511d - 0.01% (44 KB)

[#010] sha256:b2908d8eafc79f30a4afd03e60fe52ff73ced2385881b0bf0e308cff48f4f4e7 - 0.01% (122 KB)

[#011] sha256:fa0a6eef3c590f16756e89ef8646d66250e6cb86740f88d151c3dd7a6dad46f1 - 64.96% (525 MB)

[#012] sha256:1a83e146a954ebe839b765537e0186386a411cfd376aa49d0b4a6447652d823c - 2.12% (17.2 MB)

[#013] sha256:80f425d97d4dbc14353111e3397b390f2a611bad3df5b8a9658ca955c3fe43dc - 1.49% (12.1 MB)

[#014] sha256:2db545a35f634e0b1a315f0343ecbfa73e3911621fe323a6a146401f39e798e4 - 0.0% (121 Bytes)


History
2024-09-09 17:16:05 UTC

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

2024-09-09 17:16:05 UTC

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

2024-09-09 17:16:05 UTC (buildkit.dockerfile.v0)

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

2024-09-09 17:16:05 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2024-09-09 17:16: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

2024-09-09 17:16:05 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2024-09-09 17:16:05 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.10.15

2024-09-09 17:16: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-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 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' wheel ; pip3 --version # buildkit

2024-09-09 17:16:05 UTC (buildkit.dockerfile.v0)

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-09 17:16:05 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

2024-10-10 13:18:15 -0300 (buildkit.dockerfile.v0)

EXPOSE map[5000/tcp:{}]

2024-10-10 13:18:15 -0300 (buildkit.dockerfile.v0)

RUN /bin/sh -c useradd --create-home redash # buildkit

2024-10-10 13:19:17 -0300 (buildkit.dockerfile.v0)

RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends pkg-config curl gnupg build-essential pwgen libffi-dev sudo git-core libkrb5-dev libpq-dev g++ unixodbc-dev xmlsec1 libssl-dev default-libmysqlclient-dev freetds-dev libsasl2-dev unzip libsasl2-modules-gssapi-mit && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit

2024-10-10 13:19:17 -0300 (buildkit.dockerfile.v0)

ARG TARGETPLATFORM

2024-10-10 13:19:17 -0300 (buildkit.dockerfile.v0)

ARG databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip

2024-10-10 13:19:44 -0300 (buildkit.dockerfile.v0)

RUN |2 TARGETPLATFORM=linux/amd64 databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip /bin/sh -c if [ "$TARGETPLATFORM" = "linux/amd64" ]; then curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && curl https://packages.microsoft.com/config/debian/12/prod.list > /etc/apt/sources.list.d/mssql-release.list && apt-get update && ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18 && apt-get clean && rm -rf /var/lib/apt/lists/* && curl "$databricks_odbc_driver_url" --location --output /tmp/simba_odbc.zip && chmod 600 /tmp/simba_odbc.zip && unzip /tmp/simba_odbc.zip -d /tmp/simba && dpkg -i /tmp/simba/*.deb && printf "[Simba]\nDriver = /opt/simba/spark/lib/64/libsparkodbc_sb64.so" >> /etc/odbcinst.ini && rm /tmp/simba_odbc.zip && rm -rf /tmp/simba; fi # buildkit

2024-10-10 13:19:45 -0300 (buildkit.dockerfile.v0)

WORKDIR /app

2024-10-10 13:19:45 -0300 (buildkit.dockerfile.v0)

ENV POETRY_VERSION=1.8.3

2024-10-10 13:19:45 -0300 (buildkit.dockerfile.v0)

ENV POETRY_HOME=/etc/poetry

2024-10-10 13:19:45 -0300 (buildkit.dockerfile.v0)

ENV POETRY_VIRTUALENVS_CREATE=false

2024-10-10 13:20:09 -0300 (buildkit.dockerfile.v0)

RUN |2 TARGETPLATFORM=linux/amd64 databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip /bin/sh -c curl -sSL https://install.python-poetry.org | python3 - # buildkit

2024-10-10 13:20:10 -0300 (buildkit.dockerfile.v0)

RUN |2 TARGETPLATFORM=linux/amd64 databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip /bin/sh -c /etc/poetry/bin/poetry cache clear pypi --all # buildkit

2024-10-10 13:20:10 -0300 (buildkit.dockerfile.v0)

COPY pyproject.toml poetry.lock ./ # buildkit

2024-10-10 13:20:10 -0300 (buildkit.dockerfile.v0)

ARG POETRY_OPTIONS=--no-root --no-interaction --no-ansi

2024-10-10 13:20:10 -0300 (buildkit.dockerfile.v0)

ARG install_groups=main,all_ds,dev

2024-10-10 13:21:11 -0300 (buildkit.dockerfile.v0)

RUN |4 TARGETPLATFORM=linux/amd64 databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip POETRY_OPTIONS=--no-root --no-interaction --no-ansi install_groups=main,all_ds,dev /bin/sh -c /etc/poetry/bin/poetry install --only $install_groups $POETRY_OPTIONS # buildkit

2024-10-10 13:21:12 -0300 (buildkit.dockerfile.v0)

COPY . /app # buildkit

2024-10-10 13:21:12 -0300 (buildkit.dockerfile.v0)

COPY /frontend/client/dist /app/client/dist # buildkit

2024-10-10 13:21:12 -0300 (buildkit.dockerfile.v0)

RUN |4 TARGETPLATFORM=linux/amd64 databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip POETRY_OPTIONS=--no-root --no-interaction --no-ansi install_groups=main,all_ds,dev /bin/sh -c chown redash /app # buildkit

2024-10-10 13:21:12 -0300 (buildkit.dockerfile.v0)

USER redash

2024-10-10 13:21:12 -0300 (buildkit.dockerfile.v0)

ENTRYPOINT ["/app/bin/docker-entrypoint"]

2024-10-10 13:21:12 -0300 (buildkit.dockerfile.v0)

CMD ["server"]