From 55aa61ac98f759cd6cf2d28bea48031b34978ecb Mon Sep 17 00:00:00 2001 From: J0WI Date: Mon, 5 Apr 2021 17:07:39 +0200 Subject: [PATCH 1/2] Add notify_push Signed-off-by: J0WI --- generate-stackbrew-library.sh | 18 ++++++++++++++++++ notify_push/Dockerfile | 27 +++++++++++++++++++++++++++ update.sh | 13 +++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 notify_push/Dockerfile diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 0a880544..52916592 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -70,6 +70,24 @@ latest=$( cat latest.txt ) versions=( */ ) versions=( "${versions[@]%/}" ) for version in "${versions[@]}"; do + + if [ "$version" = "notify_push" ]; then + commit="$(dockerfileCommit "$version")" + fullversion="$( awk '$1 == "ENV" && $2 == "NOTIFY_PUSH_VERSION" { print $3; exit }' "$version/Dockerfile" )" + versionAliases=( "$fullversion" "${fullversion%.*}" "${fullversion%.*.*}" ) + variantAliases=( "${versionAliases[@]/%/-$version}" $version ) + + cat <<-EOE + + Tags: $(join ', ' "${variantAliases[@]}") + Architectures: amd64, arm32v7, arm64v8 + GitCommit: $commit + Directory: $version + EOE + + continue + fi + variants=( $version/*/ ) variants=( $(for variant in "${variants[@]%/}"; do echo "$(basename "$variant")" diff --git a/notify_push/Dockerfile b/notify_push/Dockerfile new file mode 100644 index 00000000..56ac7787 --- /dev/null +++ b/notify_push/Dockerfile @@ -0,0 +1,27 @@ +FROM alpine:3.13 + +RUN apk add --no-cache ca-certificates + +# https://github.com/nextcloud/notify_push/releases +ENV NOTIFY_PUSH_VERSION 0.1.6 + +RUN set -ex; \ + \ + apkArch="$(apk --print-arch)"; \ + npTriplet="unknown-linux-musl"; \ + case "$apkArch" in \ + aarch64|x86_64) npArch="$apkArch" ;; \ + armv7) npArch="$apkArch"; $npTriplet="${npTriplet}-eabihf" ;; \ + *) echo >&2 "error: unsupported arch: $apkArch"; exit 1 ;; \ + esac; \ + \ + wget -O /usr/local/bin/notify_push "https://github.com/nextcloud/notify_push/releases/download/v${NOTIFY_PUSH_VERSION}/notify_push-$npArch-$npTriplet"; \ + \ + chmod +x /usr/local/bin/notify_push; \ + notify_push --version + +USER nobody + +EXPOSE 7867 + +CMD ["notify_push"] diff --git a/update.sh b/update.sh index f5e6f019..ee485c07 100755 --- a/update.sh +++ b/update.sh @@ -74,6 +74,16 @@ imagick_version="$( | tail -1 )" +notify_push_version="$( + git ls-remote --tags https://github.com/nextcloud/notify_push.git \ + | cut -d/ -f3 \ + | grep -vE -- '-rc|-b' \ + | tr -d '^{}' \ + | sed -E 's/^v//' \ + | sort -V \ + | tail -1 +)" + declare -A pecl_versions=( [APCu]="$apcu_version" [memcached]="$memcached_version" @@ -190,3 +200,6 @@ for version in "${versions[@]}"; do done fi done + +echo "updating notify_push $notify_push_version" +sed -re 's/^ENV NOTIFY_PUSH_VERSION .*$/ENV NOTIFY_PUSH_VERSION '"$notify_push_version"'/;' -i "notify_push/Dockerfile" From 8d2e9048bca45c0bbda8f36ba72dccc69937b393 Mon Sep 17 00:00:00 2001 From: HPPinata <83947761+HPPinata@users.noreply.github.com> Date: Fri, 24 Jan 2025 23:11:21 +0100 Subject: [PATCH 2/2] expire binlog (#2350) * expire binlog expire binlog entries older than a week to avoid unbounded binlog growth over longer timespans Signed-off-by: HPPinata <83947761+HPPinata@users.noreply.github.com> * kill binlog remove all references and options regarding binlog from docker compose files Signed-off-by: HPPinata <83947761+HPPinata@users.noreply.github.com> --------- Signed-off-by: HPPinata <83947761+HPPinata@users.noreply.github.com> --- .examples/docker-compose/insecure/mariadb/apache/compose.yaml | 2 +- .examples/docker-compose/insecure/mariadb/fpm/compose.yaml | 2 +- .../with-nginx-proxy/mariadb/apache/compose.yaml | 2 +- .../docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml | 2 +- README.md | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.examples/docker-compose/insecure/mariadb/apache/compose.yaml b/.examples/docker-compose/insecure/mariadb/apache/compose.yaml index daa51590..c765190c 100644 --- a/.examples/docker-compose/insecure/mariadb/apache/compose.yaml +++ b/.examples/docker-compose/insecure/mariadb/apache/compose.yaml @@ -1,7 +1,7 @@ services: db: image: mariadb:10.11 - command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + command: --transaction-isolation=READ-COMMITTED restart: always volumes: - db:/var/lib/mysql:Z diff --git a/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml b/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml index 25e5b717..90520e08 100644 --- a/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml +++ b/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml @@ -1,7 +1,7 @@ services: db: image: mariadb:10.11 - command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + command: --transaction-isolation=READ-COMMITTED restart: always volumes: - db:/var/lib/mysql:Z diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml index 2a0d57a5..e1a461d2 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml @@ -1,7 +1,7 @@ services: db: image: mariadb:10.11 - command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + command: --transaction-isolation=READ-COMMITTED restart: always volumes: - db:/var/lib/mysql:Z diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml index 20db19a9..fa77198a 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml @@ -1,7 +1,7 @@ services: db: image: mariadb:10.11 - command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + command: --transaction-isolation=READ-COMMITTED restart: always volumes: - db:/var/lib/mysql:Z diff --git a/README.md b/README.md index 03de4339..ac5b0e28 100644 --- a/README.md +++ b/README.md @@ -395,7 +395,7 @@ services: db: image: mariadb:10.11 restart: always - command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + command: --transaction-isolation=READ-COMMITTED volumes: - db:/var/lib/mysql environment: @@ -443,7 +443,7 @@ services: db: image: mariadb:10.11 restart: always - command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + command: --transaction-isolation=READ-COMMITTED volumes: - db:/var/lib/mysql environment: