Block a user
woob-exporter (latest)
Published 2026-03-09 13:29:37 +01:00 by ewandor
Installation
docker pull git.dorfsvald.net/ewandor/woob-exporter:latestsha256:4b28be8b03a5b6cee717912a785ffbecfb3e3aee920c22d5d6835a07514ec2c8
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1769990400' |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; apt-get dist-clean # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; apt-get dist-clean # buildkit |
| RUN /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 ; apt-get dist-clean # buildkit |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libbluetooth-dev tk-dev uuid-dev ; apt-get dist-clean # buildkit |
| ENV PYTHON_VERSION=3.14.3 |
| ENV PYTHON_SHA256=a97d5549e9ad81fe17159ed02c68774ad5d266c72f8d9a0b5a9c371fe85d902b |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libzstd-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; 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 $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" 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; 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 -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
| 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 |
| CMD ["python3"] |
| LABEL authors=ewandor |
| ARG GPGKEY_NAME=pass_gpg_key |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c apt update && apt install -y --no-install-recommends gnupg pass # buildkit |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c gpg --batch --full-generate-key <<EOF Key-Type: 1 Key-Length: 4096 Subkey-Type: 1 Subkey-Length: 4096 Expire-Date: 0 Name-Real: ${GPGKEY_NAME} Passphrase: $GPGKEY EOF # buildkit |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c pass init ${GPGKEY_NAME} # buildkit |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c echo $ACCOUNT_LOGIN | pass insert -e account_login && echo $ACCOUNT_PASSWORD | pass insert -e account_password && echo $FIREFLY_PAT | pass insert -e firefly_pat # buildkit |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c mkdir /app # buildkit |
| WORKDIR /app |
| COPY requirements.txt /app/requirements.txt # buildkit |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c pip install -r requirements.txt # buildkit |
| COPY woob_modules /root/.local/share/woob/modules/3.7/woob_modules # buildkit |
| COPY client /app/client # buildkit |
| COPY transaction_importer.py /app/transaction_importer.py # buildkit |
| COPY transaction_spliter.py /app/transaction_spliter.py # buildkit |
| COPY entrypoint.sh /app/entrypoint.sh # buildkit |
| RUN |1 GPGKEY_NAME=pass_gpg_key /bin/sh -c chmod u+x /app/entrypoint.sh # buildkit |
| ENTRYPOINT ["/app/entrypoint.sh"] |
Labels
| Key | Value |
|---|---|
| authors | ewandor |
| com.docker.compose.project | woob_exporter |
| com.docker.compose.service | exporter |
| com.docker.compose.version | 5.1.0 |