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 2f4de23ea11705a977984c273082efa2d4dcf743 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 14 Dec 2024 14:24:34 -0500 Subject: [PATCH 2/2] docs(README): Basic status badges Signed-off-by: Josh --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index b3d5e7df..152489b2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +![GitHub last commit](https://img.shields.io/github/last-commit/nextcloud/docker) +[![GitHub Release](https://img.shields.io/github/v/release/nextcloud/docker?link=https%3A%2F%2Fgithub.com%2Fnextcloud%2Fdocker%2Freleases%2Flatest&label=latest%20Image)](https://github.com/nextcloud/docker/releases/) +[![Docker Image Version](https://img.shields.io/docker/v/library/nextcloud?sort=semver&logo=nextcloud&label=Nextcloud)](https://nextcloud.com/changelog/) +![GitHub commits since latest release](https://img.shields.io/github/commits-since/nextcloud/docker/latest) +![GitHub commit activity](https://img.shields.io/github/commit-activity/m/nextcloud/docker) +![GitHub contributors](https://img.shields.io/github/contributors/nextcloud/docker?label=contributors%20-%20Thank%20you!) +![Docker Pulls](https://img.shields.io/docker/pulls/library/nextcloud) + # What is Nextcloud? A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms. @@ -19,6 +27,9 @@ The second option is a `fpm` container. It is based on the [php-fpm](https://hub Most Nextcloud Server administrative matters are covered in the official [Nextcloud Admin Manual](https://docs.nextcloud.com/server/latest/admin_manual/) or [other official Nextcloud documentation](https://docs.nextcloud.com) (which are all routinely updated). +[![Discourse Users](https://img.shields.io/discourse/users?server=https%3A%2F%2Fhelp.nextcloud.com&label=Community%20Forum&color=blue&link=https%3A%2F%2Fhelp.nextcloud.com%2F)](https://help.nextcloud.com/) +[![Discourse Posts](https://img.shields.io/discourse/posts?server=https%3A%2F%2Fhelp.nextcloud.com&label=Community%20Forum&color=blue&link=https%3A%2F%2Fhelp.nextcloud.com%2F)](https://help.nextcloud.com/) + **If you have any problems or usage questions while using the image, please ask for assistance on the [Nextcloud Community Help Forum](https://help.nextcloud.com)** rather than reporting them as "bugs" (unless they are bugs of course). This helps the maintainers (who are volunteers) remain focused on making the image better (rather than responding solely to one-on-one support issues). (Tip: Some of the maintainers are also regular responders to help requests on the [community help forum](https://help.nextcloud.com/).) @@ -732,8 +743,16 @@ If there is a relevant existing open issue, you can either add to the discussion If you believe you've found a new bug, please create a new Issue so that others can try to reproduce it and remediation can be tracked. +![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/nextcloud/docker?label=Open%20Issues) +![GitHub Issues or Pull Requests by label](https://img.shields.io/github/issues/nextcloud/docker/bug?style=flat&label=Bug%20Reports&color=red) +![GitHub Issues or Pull Requests by label](https://img.shields.io/github/issues/nextcloud/docker/enhancement?style=flat&label=Enhancement%20Ideas&color=green) +![GitHub Issues or Pull Requests by label](https://img.shields.io/github/issues/nextcloud/docker/good%20first%20issue?style=flat&label=Good%20First%20Issues) + **If you have any problems or usage questions while using the image, please ask for assistance on the [Nextcloud Community Help Forum](https://help.nextcloud.com)** rather than reporting them as "bugs" (unless they really are bugs of course). This helps the maintainers (who are volunteers) remain focused on making the image better (rather than responding solely to one-on-one support issues). (Tip: Some of the maintainers are also regular responders to help requests on the [Nextcloud Community Help Forum](https://help.nextcloud.com).) +[![Discourse Users](https://img.shields.io/discourse/users?server=https%3A%2F%2Fhelp.nextcloud.com&label=Community%20Forum&color=blue&link=https%3A%2F%2Fhelp.nextcloud.com%2F)](https://help.nextcloud.com/) +[![Discourse Posts](https://img.shields.io/discourse/posts?server=https%3A%2F%2Fhelp.nextcloud.com&label=Community%20Forum&color=blue&link=https%3A%2F%2Fhelp.nextcloud.com%2F)](https://help.nextcloud.com/) + Most Nextcloud Server matters are covered in the official [Nextcloud Admin Manual](https://docs.nextcloud.com/server/latest/admin_manual/) or the [other official Nextcloud documentation](https://docs.nextcloud.com) (which are routinely updated).