firefly-data-importer (latest)

Published 2025-01-27 18:01:21 +01:00 by Johnny5 in snailed/containers

Installation

docker pull git.snaile.de/snailed/firefly-data-importer:latest
sha256:159c7f067ab06c8b18ac38ab5b394ef8ed705c592e1afb36ac6fd901383fa8d0

About this package

Firefly III Data Importer - data importer for Firefly III

Image layers

ADD file:0f6f1b93a8fddd20b36a99cc6cfbe4a03bc7be2adb427f7f8e74a2029c54c8bb in /
CMD ["bash"]
ENV FIREFLY_III_PATH=/var/www/html COMPOSER_ALLOW_SUPERUSER=1 DEBIAN_FRONTEND=noninteractive
ENV BASE_IMAGE_BUILD=92 BASE_IMAGE_DATE=01-11-2024 05:42:41 CET
LABEL build_version=4.3 maintainer=james@firefly-iii.org
COPY ../conf/cacert.pem /etc/ssl/certs/cacert.pem # buildkit
HEALTHCHECK &{["CMD-SHELL" "curl -A \"User-Agent: Firefly III Health Checker/2.3\" -f http://localhost:8080/health || exit 1"] "1m0s" "3s" "5m0s" "0s" '\x00'}
RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl locales unzip xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
ENV PHP_INI_DIR=/usr/local/etc/php
RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
ENV APACHE_CONFDIR=/etc/apache2
ENV APACHE_ENVVARS=/etc/apache2/envvars
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_LDFLAGS=-Wl,-O1 -pie
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
ENV PHP_VERSION=8.3.13
ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc
ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
COPY docker-php-source /usr/local/bin/ # buildkit
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
ENTRYPOINT ["docker-php-entrypoint"]
STOPSIGNAL SIGWINCH
COPY apache2-foreground /usr/local/bin/ # buildkit
WORKDIR /var/www/html
EXPOSE map[8080/tcp:{}]
VOLUME [/var/www/html/storage/upload]
COPY ../conf/locale.gen /etc/locale.gen # buildkit
COPY ../apache/apache2-ports.conf /etc/apache2/ports.conf # buildkit
COPY ../apache/apache2-site.conf /etc/apache2/sites-available/000-default.conf # buildkit
COPY ../scripts/wait-for-it.sh /usr/local/bin/wait-for-it.sh # buildkit
COPY ../scripts/finalize-image.sh /usr/local/bin/finalize-image.sh # buildkit
COPY ../scripts/artisan.sh /usr/local/bin/artisan # buildkit
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # buildkit
RUN /bin/sh -c set -eux; /usr/sbin/locale-gen && chmod uga+x /usr/local/bin/finalize-image.sh && chmod uga+x /usr/local/bin/wait-for-it.sh && chmod uga+x /usr/local/bin/artisan && chmod uga+x /usr/local/bin/install-php-extensions && apt install -y curl # buildkit
RUN /bin/sh -c set -eux;install-php-extensions intl bcmath pdo_pgsql pdo_mysql opcache memcached redis sockets # buildkit
RUN /bin/sh -c set -eux; a2enmod rewrite env headers && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini && sed -i 's/max_execution_time = 30/max_execution_time = 600/' /usr/local/etc/php/php.ini && sed -i 's/memory_limit = 128M/memory_limit = 1G/' /usr/local/etc/php/php.ini && sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 64M/' /usr/local/etc/php/php.ini && sed -i 's/expose_php = On/expose_php = Off/' /usr/local/etc/php/php.ini && sed -i 's/post_max_size = 8M/post_max_size = 64M/' /usr/local/etc/php/php.ini && echo 'ServerTokens Prod' >> /etc/apache2/apache2.conf && echo 'ServerSignature Off' >> /etc/apache2/apache2.conf # buildkit
ARG version=v1.5.7
ENV VERSION=v1.5.7
ARG isodate=2024-11-09T06:53:34+01:00
ENV ISODATE=2024-11-09T06:53:34+01:00
ARG gitrevision=cc88be2a311ca61836d139de68761a45d6a76aaa
ENV GITREVISION=cc88be2a311ca61836d139de68761a45d6a76aaa
LABEL org.opencontainers.image.authors=James Cole <james@firefly-iii.org> org.opencontainers.image.url=https://github.com/firefly-iii/docker org.opencontainers.image.documentation=https://docs.firefly-iii.org/ org.opencontainers.image.source=https://dev.azure.com/Firefly-III/_git/ImportToolImage org.opencontainers.image.vendor=James Cole <james@firefly-iii.org> org.opencontainers.image.licenses=AGPL-3.0-or-later org.opencontainers.image.title=Firefly III Data Importer org.opencontainers.image.description=Firefly III Data Importer - data importer for Firefly III org.opencontainers.image.base.name=docker.io/fireflyiii/base:apache-8.3
LABEL org.opencontainers.image.created=2024-11-09T06:53:34+01:00
LABEL org.opencontainers.image.version=v1.5.7
LABEL org.opencontainers.image.revision=cc88be2a311ca61836d139de68761a45d6a76aaa
COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit
COPY counter.txt /var/www/counter-main.txt # buildkit
COPY date.txt /var/www/build-date-main.txt # buildkit
COPY download.zip /var/www/download.zip # buildkit
RUN |3 version=v1.5.7 isodate=2024-11-09T06:53:34+01:00 gitrevision=cc88be2a311ca61836d139de68761a45d6a76aaa /bin/sh -c unzip -q /var/www/download.zip -d $FIREFLY_III_PATH && chmod -R 775 $FIREFLY_III_PATH/storage && /usr/local/bin/finalize-image.sh # buildkit
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
RUN set eux; apt-get update; apt-get install -y --no-install-recommends cron; rm -rf /var/lib/apt/lists/*; rm -rf /etc/cron.*/*
COPY cron-entrypoint.sh /usr/local/bin/cron-entrypoint.sh

Labels

Key Value
build_version 4.3
maintainer james@firefly-iii.org
org.opencontainers.image.authors James Cole <james@firefly-iii.org>
org.opencontainers.image.base.name docker.io/fireflyiii/base:apache-8.3
org.opencontainers.image.created 2024-11-09T06:53:34+01:00
org.opencontainers.image.description Firefly III Data Importer - data importer for Firefly III
org.opencontainers.image.documentation https://docs.firefly-iii.org/
org.opencontainers.image.licenses AGPL-3.0-or-later
org.opencontainers.image.revision cc88be2a311ca61836d139de68761a45d6a76aaa
org.opencontainers.image.source https://dev.azure.com/Firefly-III/_git/ImportToolImage
org.opencontainers.image.title Firefly III Data Importer
org.opencontainers.image.url https://github.com/firefly-iii/docker
org.opencontainers.image.vendor James Cole <james@firefly-iii.org>
org.opencontainers.image.version v1.5.7
Details
Container
2025-01-27 18:01:21 +01:00
429
OCI / Docker
linux/amd64
James Cole <james@firefly-iii.org>
AGPL-3.0-or-later
223 MiB
Versions (7) View all
latest 2025-01-27
2025.0127.1700 2025-01-27
2025.0127.1656 2025-01-27
2025.0127.1649 2025-01-27
2025.0127.1642 2025-01-27