Compare commits

..
Author SHA1 Message Date
philippr 2891d7c898 chore: publish 2.6.0+7.4.0 release 2023-07-25 12:08:03 +02:00
8 changed files with 17 additions and 112 deletions
+1 -2
View File
@@ -19,7 +19,6 @@ steps:
LETS_ENCRYPT_ENV: production
ENTRYPOINT_VERSION: v1
SECRET_DB_PASSWORD_VERSION: v1
PG_BACKUP_VERSION: v2
trigger:
branch:
- main
@@ -35,7 +34,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- toolshed/auto-recipes-catalogue-json
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag
+1 -2
View File
@@ -1,8 +1,7 @@
TYPE=onlyoffice
#TIMEOUT=300
TIMEOUT=300
ENABLE_AUTO_UPDATE=true
LETS_ENCRYPT_ENV=production
ENABLE_BACKUPS=true
DOMAIN=onlyoffice.example.com
SECRET_DB_PASSWORD_VERSION=v1
-32
View File
@@ -1,32 +0,0 @@
# OnlyOffice 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 [onlyoffice maintainers team](https://git.coopcloud.tech/org/coop-cloud/teams/onlyoffice-maintainers).
4. Join the room [#cc-|-onlyoffice-maintenance:matrix.org](#cc-|-onlyoffice-maintenance:matrix.org) and chat to other maintainers.
+1 -6
View File
@@ -3,7 +3,7 @@
[![Build Status](https://drone.autonomic.zone/api/badges/coop-cloud/onlyoffice/status.svg?ref=refs/heads/main)](https://drone.autonomic.zone/coop-cloud/onlyoffice)
<!-- 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**: 3, stable
* **Image**: [`onlyoffice`](https://hub.docker.com/r/onlyoffice/documentserver/), 4, upstream
@@ -25,8 +25,3 @@
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech) and [`ONLYOFFICE/Docker-DocumentServer`](https://github.com/ONLYOFFICE/Docker-DocumentServer).
[Official Onlyoffice docker compose](https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/docker-compose.yml)
## Add custom fonts
Per default the config parameter for **GENERATE_FONT** is set to *true*, so fonts list and the fonts thumbnails are regenerated at each start. To add additional fonts you can copy them via abra to the volume `/usr/share/fonts/truetype` and restart the service:
* `abra app cp 123.net calibri-regular.ttf app:/usr/share/fonts/truetype`
* `abra app restart office.tmp.dev.local-it.cloud service app`
-1
View File
@@ -1,5 +1,4 @@
export ENTRYPOINT_VERSION=v1
export PG_BACKUP_VERSION=v2
prepare_shutdown () {
documentserver-prepare4shutdown.sh
-6
View File
@@ -1,6 +0,0 @@
nextcloud:
uncomment:
- compose.jwt.yml
- SECRET_JWT_SECRET_VERSION
shared_secrets:
onlyoffice_jwt: jwt_secret
+14 -29
View File
@@ -1,14 +1,14 @@
version: "3.8"
version: '3.8'
services:
app:
image: onlyoffice/documentserver:9.4.0
image: onlyoffice/documentserver:7.4.0
depends_on:
- db
- rabbitmq
stdin_open: true
networks:
- proxy
- internal
- internal
environment:
DB_TYPE: postgres
DB_HOST: db
@@ -17,11 +17,9 @@ services:
DB_USER: onlyoffice
DB_PWD_FILE: /run/secrets/db_password
AMQP_URI: amqp://guest:guest@rabbitmq
AUTO_ASSEMBLY_ENABLED:
AUTO_ASSEMBLY_INTERVAL:
AUTO_ASSEMBLY_STEP:
volumes:
- fonts:/usr/share/fonts/truetype
AUTO_ASSEMBLY_ENABLED:
AUTO_ASSEMBLY_INTERVAL:
AUTO_ASSEMBLY_STEP:
secrets:
- db_password
healthcheck:
@@ -40,19 +38,19 @@ services:
failure_action: rollback
order: start-first
labels:
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT}"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
- "traefik.enable=true"
- "traefik.swarm.network=proxy"
- "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-fwdproto"
- "traefik.http.middlewares.${STACK_NAME}-fwdproto.headers.customRequestHeaders.X-Forwarded-Proto=https"
- "coop-cloud.${STACK_NAME}.version=2.13.0+9.4.0"
- "coop-cloud.${STACK_NAME}.version=2.6.0+7.4.0"
rabbitmq:
image: rabbitmq:4.3.2
image: rabbitmq:3.12.2
networks:
- internal
healthcheck:
@@ -61,15 +59,9 @@ services:
timeout: 10s
retries: 10
start_period: 1m
db:
image: postgres:9.5
deploy:
labels:
backupbot.backup: "${ENABLE_BACKUPS:-true}"
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.db.path: "backup.sql"
backupbot.restore.post-hook: "/pg_backup.sh restore"
environment:
POSTGRES_DB: onlyoffice
POSTGRES_USER: onlyoffice
@@ -81,19 +73,14 @@ services:
networks:
- internal
healthcheck:
test: ["CMD", "pg_isready", "-U", "onlyoffice"]
test: ["CMD", "pg_isready"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
configs:
- source: pg_backup
target: /pg_backup.sh
mode: 0555
volumes:
db:
fonts:
networks:
proxy:
@@ -110,6 +97,4 @@ configs:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
pg_backup:
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
file: pg_backup.sh
-34
View File
@@ -1,34 +0,0 @@
#!/bin/bash
set -e
BACKUP_FILE='/var/lib/postgresql/data/backup.sql'
function backup {
export PGPASSWORD=$(cat /run/secrets/db_password)
pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > $BACKUP_FILE
}
function restore {
cd /var/lib/postgresql/data/
restore_config(){
# Restore allowed connections
cat pg_hba.conf.bak > pg_hba.conf
su postgres -c 'pg_ctl reload'
}
# Don't allow any other connections than local
cp pg_hba.conf pg_hba.conf.bak
echo "local all all trust" > pg_hba.conf
su postgres -c 'pg_ctl reload'
trap restore_config EXIT INT TERM
# Recreate Database
psql -U ${POSTGRES_USER} -d postgres -c "DROP DATABASE ${POSTGRES_DB} WITH (FORCE);"
createdb -U ${POSTGRES_USER} ${POSTGRES_DB}
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -1 -f $BACKUP_FILE
trap - EXIT INT TERM
restore_config
}
$@