Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
116ffcc61f | ||
|
|
4d076f4130 | ||
|
|
ae54f9cc8d | ||
|
|
441009b954
|
||
|
|
e5c740b7a3 | ||
|
|
1c47909a6f | ||
|
|
f9e9004a50 | ||
|
|
5449083859 | ||
|
|
27237b519c
|
||
|
|
1290fb1a40 |
@@ -0,0 +1,32 @@
|
||||
# Pretix Recipe Maintenance
|
||||
|
||||
All contributions should be made via a pull request. This is to ensure a
|
||||
certain quality and consistency, that others can rely on.
|
||||
|
||||
## Maintainer Responsibilities
|
||||
|
||||
A recipe maintainer has the following responsibilities:
|
||||
|
||||
- Respond to pull requests / issues within two weeks
|
||||
- Make image security updates within a week
|
||||
- Make image major updates every three months
|
||||
|
||||
In order to fullfill these responsibilities a recipe maintainer:
|
||||
|
||||
- Has to watch the repository (to get notifications)
|
||||
- Needs to make sure renovate is configured properly
|
||||
|
||||
## Pull Requests
|
||||
|
||||
A pull request can be merged if it is approved by at least one maintainer. For
|
||||
pull requests opened by a maintainer they need to be approved by another
|
||||
maintainer. Even though it is okay to merge a pull request with one approval, it
|
||||
is always better if all maintainers looked at the pull request and approved it.
|
||||
|
||||
## Become a maintainer
|
||||
|
||||
Everyone can apply to be a recipe maintainer:
|
||||
1. Watch the repository to always get updates
|
||||
2. Simply add your self to the list in the [README.md](./README.md) and open a new pull request with the change.
|
||||
3. Once the pull request gets merged you will be added to the [pretix maintainers team](https://git.coopcloud.tech/org/coop-cloud/teams/pretix-maintainers).
|
||||
4. Join the room [#cc-|-pretix-maintenance:matrix.org](#cc-|-pretix-maintenance:matrix.org) and chat to other maintainers.
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Maintainer**: Local-IT: [@moritz](https://git.coopcloud.tech/moritz), [@msimon](https://git.coopcloud.tech/simon), [@carla](https://git.coopcloud.tech/carla)
|
||||
* **Category**: Apps
|
||||
* **Status**: 0
|
||||
* **Image**: [`pretix`](https://hub.docker.com/r/pretix), 4, upstream
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export PRETIX_CONFIG_VERSION=v2
|
||||
export APP_ENTRYPOINT_VERSION=v1
|
||||
export CRON_ENTRYPOINT_VERSION=v2
|
||||
export DB_ENTRYPOINT_VERSION=v2
|
||||
export PG_BACKUP_VERSION=v1
|
||||
@@ -18,4 +19,4 @@ echo "Changed admin password"
|
||||
fix_collation_mismatch() {
|
||||
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c "ALTER DATABASE ${POSTGRES_DB} REFRESH COLLATION VERSION;"
|
||||
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c "REINDEX DATABASE ${POSTGRES_DB};"
|
||||
}
|
||||
}
|
||||
|
||||
+14
-6
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: "pretix/standalone:2026.2.0"
|
||||
image: "pretix/standalone:2026.5.1"
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@@ -12,6 +12,11 @@ services:
|
||||
configs:
|
||||
- source: pretix_config
|
||||
target: /etc/pretix/pretix.cfg
|
||||
- source: app_entrypoint
|
||||
target: /usr/local/bin/wait-for-db.sh
|
||||
mode: 0555
|
||||
entrypoint: ["/usr/local/bin/wait-for-db.sh"]
|
||||
command: ["all"]
|
||||
secrets:
|
||||
- db_password
|
||||
- smtp_password
|
||||
@@ -19,23 +24,23 @@ services:
|
||||
- admin_pass
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
condition: any
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.6.0+2026.2.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.7.0+2026.5.1"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 30
|
||||
start_period: 1m
|
||||
start_period: 5m
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
image: postgres:18
|
||||
volumes:
|
||||
- "postgres:/var/lib/postgresql/data"
|
||||
networks:
|
||||
@@ -72,7 +77,7 @@ services:
|
||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
||||
|
||||
redis:
|
||||
image: redis:8.6.1-alpine
|
||||
image: redis:8.8.0-alpine
|
||||
volumes:
|
||||
- "redis:/data"
|
||||
healthcheck:
|
||||
@@ -102,6 +107,9 @@ volumes:
|
||||
redis:
|
||||
|
||||
configs:
|
||||
app_entrypoint:
|
||||
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
||||
file: entrypoint.wait-for-db.sh
|
||||
pretix_config:
|
||||
name: ${STACK_NAME}_pretix_config_${PRETIX_CONFIG_VERSION}
|
||||
file: pretix.cfg.tmpl
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
until python3 -c "
|
||||
import psycopg2, sys
|
||||
try:
|
||||
psycopg2.connect(host='db', dbname='pretix', user='pretix',
|
||||
password=open('/run/secrets/db_password').read().strip(),
|
||||
connect_timeout=3)
|
||||
except Exception:
|
||||
sys.exit(1)
|
||||
"; do
|
||||
echo 'waiting for postgres...'
|
||||
sleep 2
|
||||
done
|
||||
|
||||
exec /usr/local/bin/pretix "$@"
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user