0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-21 14:48:05 +02:00

Compare commits

...

3 commits

Author SHA1 Message Date
J0WI
36c2d91b84
Merge 55aa61ac98 into 8d2e9048bc 2025-01-29 23:24:54 +00:00
HPPinata
8d2e9048bc
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>
2025-01-24 22:11:21 +00:00
J0WI
55aa61ac98 Add notify_push
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2023-11-10 19:18:59 +01:00
8 changed files with 64 additions and 6 deletions

View file

@ -1,7 +1,7 @@
services: services:
db: db:
image: mariadb:10.11 image: mariadb:10.11
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
- db:/var/lib/mysql:Z - db:/var/lib/mysql:Z

View file

@ -1,7 +1,7 @@
services: services:
db: db:
image: mariadb:10.11 image: mariadb:10.11
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
- db:/var/lib/mysql:Z - db:/var/lib/mysql:Z

View file

@ -1,7 +1,7 @@
services: services:
db: db:
image: mariadb:10.11 image: mariadb:10.11
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
- db:/var/lib/mysql:Z - db:/var/lib/mysql:Z

View file

@ -1,7 +1,7 @@
services: services:
db: db:
image: mariadb:10.11 image: mariadb:10.11
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
- db:/var/lib/mysql:Z - db:/var/lib/mysql:Z

View file

@ -395,7 +395,7 @@ services:
db: db:
image: mariadb:10.11 image: mariadb:10.11
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
environment: environment:
@ -443,7 +443,7 @@ services:
db: db:
image: mariadb:10.11 image: mariadb:10.11
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
environment: environment:

View file

@ -70,6 +70,24 @@ latest=$( cat latest.txt )
versions=( */ ) versions=( */ )
versions=( "${versions[@]%/}" ) versions=( "${versions[@]%/}" )
for version in "${versions[@]}"; do 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=( $version/*/ )
variants=( $(for variant in "${variants[@]%/}"; do variants=( $(for variant in "${variants[@]%/}"; do
echo "$(basename "$variant")" echo "$(basename "$variant")"

27
notify_push/Dockerfile Normal file
View file

@ -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"]

View file

@ -71,6 +71,16 @@ imagick_version="$(
| tail -1 | 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=( declare -A pecl_versions=(
[APCu]="$apcu_version" [APCu]="$apcu_version"
[memcached]="$memcached_version" [memcached]="$memcached_version"
@ -179,3 +189,6 @@ for version in "${versions[@]}"; do
done done
fi fi
done 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"