ccchh-pretix/pretix (main)

Published 2024-07-30 22:54:06 +02:00 by stb

Installation

docker pull git.hamburg.ccc.de/ccchh/ccchh-pretix/pretix:main
sha256:c15dc45d1704ec0edab8d50b681680be378fd2545a63c4092afe578e37e427da

About this package

Build a Pretix Docker image that can be configured through envinronment variables.

Image Layers

ADD file:430cca9ad155514d8c818e860e66e2aeccfb6230874d4faf446a1d0c2fc1054f in /
CMD ["bash"]
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/*
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libbluetooth-dev tk-dev uuid-dev ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
ENV PYTHON_VERSION=3.11.9
RUN /bin/sh -c set -eux; 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)"; 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; bin="$(readlink -ve /usr/local/bin/python3)"; dir="$(dirname "$bin")"; mkdir -p "/usr/share/gdb/auto-load/$dir"; cp -vL Tools/gdb/libpython.py "/usr/share/gdb/auto-load/$bin-gdb.py"; 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; python3 --version # buildkit
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
ENV PYTHON_PIP_VERSION=24.0
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/e03e1607ad60522cf34a92e834138eb89f57667c/public/get-pip.py
ENV PYTHON_GET_PIP_SHA256=ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7
RUN /bin/sh -c set -eux; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; 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
CMD ["python3"]
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential gettext git libffi-dev libjpeg-dev libmemcached-dev libpq-dev libssl-dev libxml2-dev libxslt1-dev locales nginx python3-virtualenv python3-dev sudo supervisor libmaxminddb0 libmaxminddb-dev zlib1g-dev nodejs npm && apt-get clean && rm -rf /var/lib/apt/lists/* && dpkg-reconfigure locales && locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8 && mkdir /etc/pretix && mkdir /data && useradd -ms /bin/bash -d /pretix -u 15371 pretixuser && echo 'pretixuser ALL=(ALL) NOPASSWD:SETENV: /usr/bin/supervisord' >> /etc/sudoers && mkdir /static && mkdir /etc/supervisord # buildkit
ENV LC_ALL=C.UTF-8 DJANGO_SETTINGS_MODULE=production_settings
COPY deployment/docker/pretix.bash /usr/local/bin/pretix # buildkit
COPY deployment/docker/supervisord /etc/supervisord # buildkit
COPY deployment/docker/supervisord.all.conf /etc/supervisord.all.conf # buildkit
COPY deployment/docker/supervisord.web.conf /etc/supervisord.web.conf # buildkit
COPY deployment/docker/nginx.conf /etc/nginx/nginx.conf # buildkit
COPY deployment/docker/nginx-max-body-size.conf /etc/nginx/conf.d/nginx-max-body-size.conf # buildkit
COPY deployment/docker/production_settings.py /pretix/src/production_settings.py # buildkit
COPY pyproject.toml /pretix/pyproject.toml # buildkit
COPY _build /pretix/_build # buildkit
COPY src /pretix/src # buildkit
RUN /bin/sh -c pip3 install -U pip setuptools wheel && cd /pretix && PRETIX_DOCKER_BUILD=TRUE pip3 install -e ".[memcached]" gunicorn django-extensions ipython && rm -rf ~/.cache/pip # buildkit
RUN /bin/sh -c chmod +x /usr/local/bin/pretix && rm /etc/nginx/sites-enabled/default && cd /pretix/src && rm -f pretix.cfg && mkdir -p data && chown -R pretixuser:pretixuser /pretix /data data && sudo -u pretixuser make production # buildkit
USER pretixuser
VOLUME [/etc/pretix /data]
EXPOSE map[80/tcp:{}]
ENTRYPOINT ["pretix"]
CMD ["all"]
COPY entrypoint.sh /
RUN true && chmod +x /entrypoint.sh && touch /etc/pretix/pretix.cfg && chown pretixuser /etc/pretix/pretix.cfg && true

Labels

Key Value
org.opencontainers.image.created 2024-07-30T20:52:23.734Z
org.opencontainers.image.description Build a Pretix Docker image that can be configured through envinronment variables.
org.opencontainers.image.licenses
org.opencontainers.image.revision 127b65cb7724abe54750df8653c10bacc48d5184
org.opencontainers.image.source https://git.hamburg.ccc.de/CCCHH/ccchh-pretix
org.opencontainers.image.title ccchh-pretix
org.opencontainers.image.url https://git.hamburg.ccc.de/CCCHH/ccchh-pretix
org.opencontainers.image.version main
Details
Container
2024-07-30 22:54:06 +02:00
0
OCI / Docker
linux/amd64
607 MiB
Versions (1) View all
main 2024-07-30