chore: publish 1.5.0+2024.11.0 release
This commit is contained in:
2
abra.sh
2
abra.sh
@ -1,6 +1,6 @@
|
|||||||
export PRETIX_CONFIG_VERSION=v1
|
export PRETIX_CONFIG_VERSION=v1
|
||||||
export CRON_ENTRYPOINT_VERSION=v1
|
export CRON_ENTRYPOINT_VERSION=v1
|
||||||
export DB_ENTRYPOINT_VERSION=v1
|
export DB_ENTRYPOINT_VERSION=v2
|
||||||
export PG_BACKUP_VERSION=v1
|
export PG_BACKUP_VERSION=v1
|
||||||
|
|
||||||
change_adminpass(){
|
change_adminpass(){
|
||||||
|
@ -25,7 +25,7 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.4.1+2024.11.0"
|
- "coop-cloud.${STACK_NAME}.version=1.5.0+2024.11.0"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
|
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@ -34,7 +34,7 @@ services:
|
|||||||
start_period: 1m
|
start_period: 1m
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:12
|
image: postgres:16
|
||||||
volumes:
|
volumes:
|
||||||
- "postgres:/var/lib/postgresql/data"
|
- "postgres:/var/lib/postgresql/data"
|
||||||
networks:
|
networks:
|
||||||
|
@ -21,7 +21,6 @@ install_old_postgres_debian() {
|
|||||||
pgenv check
|
pgenv check
|
||||||
LATEST_OLD_VERSION=$(pgenv available $DATA_VERSION | grep -oE "$DATA_VERSION\.[0-9]+" | tail -n 1)
|
LATEST_OLD_VERSION=$(pgenv available $DATA_VERSION | grep -oE "$DATA_VERSION\.[0-9]+" | tail -n 1)
|
||||||
pgenv build $LATEST_OLD_VERSION
|
pgenv build $LATEST_OLD_VERSION
|
||||||
export PATH="/tmp/pgenv/pgsql-$LATEST_OLD_VERSION/bin:$PATH"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_old_postgres_alpine() {
|
install_old_postgres_alpine() {
|
||||||
@ -35,7 +34,6 @@ install_old_postgres_alpine() {
|
|||||||
pgenv check
|
pgenv check
|
||||||
LATEST_OLD_VERSION=$(pgenv available $DATA_VERSION | grep -oE "$DATA_VERSION\.[0-9]+" | tail -n 1)
|
LATEST_OLD_VERSION=$(pgenv available $DATA_VERSION | grep -oE "$DATA_VERSION\.[0-9]+" | tail -n 1)
|
||||||
pgenv build $LATEST_OLD_VERSION
|
pgenv build $LATEST_OLD_VERSION
|
||||||
export PATH="/tmp/pgenv/pgsql-$LATEST_OLD_VERSION/bin:$PATH"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -e $MIGRATION_MARKER ]; then
|
if [ -e $MIGRATION_MARKER ]; then
|
||||||
@ -55,9 +53,11 @@ if [ -f $PGDATA/PG_VERSION ]; then
|
|||||||
install_old_postgres_debian
|
install_old_postgres_debian
|
||||||
fi
|
fi
|
||||||
echo "shuffling around"
|
echo "shuffling around"
|
||||||
gosu postgres mkdir $OLDDATA $NEWDATA
|
gosu postgres mkdir $OLDDATA
|
||||||
chmod 700 $OLDDATA $NEWDATA
|
chmod 700 $OLDDATA
|
||||||
mv $PGDATA/* $OLDDATA/ || true
|
mv $PGDATA/* $OLDDATA/ || true
|
||||||
|
gosu postgres mkdir $NEWDATA
|
||||||
|
chmod 700 $NEWDATA
|
||||||
touch $MIGRATION_MARKER
|
touch $MIGRATION_MARKER
|
||||||
echo "running initdb"
|
echo "running initdb"
|
||||||
# abuse entrypoint script for initdb by making server error out
|
# abuse entrypoint script for initdb by making server error out
|
||||||
|
1
release/1.5.0+2024.11.0
Normal file
1
release/1.5.0+2024.11.0
Normal file
@ -0,0 +1 @@
|
|||||||
|
New major postgres version with automated update script! Make sure to backup your database before.
|
Reference in New Issue
Block a user