This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
osmith gerrit-no-reply at lists.osmocom.orgosmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/26428 ) Change subject: redmine: process changelogs every 10 minutes ...................................................................... redmine: process changelogs every 10 minutes Wrap the original entrypoint script with a custom one that also runs a loop in the background, which periodically lets redmine fetch git repositories. When repositories are fetched, redmine interpretes "closes" etc. in commit messages to mark issues as resolved. Closes: OS#5331 Change-Id: I2a65fd6be22ae541a93c08c71cf286e4b5ad370f --- M redmine/Dockerfile A redmine/docker-entrypoint-osmo.sh 2 files changed, 21 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/28/26428/1 diff --git a/redmine/Dockerfile b/redmine/Dockerfile index 2d8eb11..fc1ba89 100644 --- a/redmine/Dockerfile +++ b/redmine/Dockerfile @@ -17,3 +17,7 @@ ADD commitlog-references-oshash.diff /tmp/commitlog-references-oshash.diff RUN cd /usr/src/redmine && patch -p1 < /tmp/commitlog-references-oshash.diff + +ADD docker-entrypoint-osmo.sh / +ENTRYPOINT ["/docker-entrypoint-osmo.sh"] +CMD ["passenger", "start"] diff --git a/redmine/docker-entrypoint-osmo.sh b/redmine/docker-entrypoint-osmo.sh new file mode 100755 index 0000000..aff8183 --- /dev/null +++ b/redmine/docker-entrypoint-osmo.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# Periodically fetch git repositories +# https://www.redmine.org/projects/redmine/wiki/RedmineRepositories +# Double fork, so it still runs after the exec below +(while :; do + sleep 10m + echo + echo "=== Fetching git repositories (OS#5331) ===" + su redmine -c 'rails runner "Repository.fetch_changesets" -e production' + echo +done &) & + +# Run the original docker-entrypoint.sh script. Exec is important, so "tini" +# inside the original script becomes pid 1 to clean up zombies from redmine. +# https://github.com/docker-library/redmine/ +exec /docker-entrypoint.sh "$@" -- To view, visit https://gerrit.osmocom.org/c/docker-playground/+/26428 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: I2a65fd6be22ae541a93c08c71cf286e4b5ad370f Gerrit-Change-Number: 26428 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211130/8e77bc8c/attachment.htm>