The integration test servers for the seafile backend were still running Seafile 11. Seafile 12 changed the name of the docker image tags (the `latest` tag stops at 11.x, newer versions are published as `12.0-latest`, `13.0-latest`, `14.0-latest`) and replaced the setup variables of the image, so just bumping the tag was not enough. - use seafileltd/seafile-mc:13.0-latest, the current stable release (can be overridden with SEAFILE_VERSION; 14.0-latest, currently in beta, works too) - update the docker compose file to the Seafile 12+ layout: MariaDB 10.11, Redis for the cache, SEAFILE_MYSQL_DB_*, INIT_SEAFILE_*, JWT_PRIVATE_KEY, SEAFILE_SERVER_PROTOCOL/HOSTNAME and CACHE_PROVIDER - use `docker compose` (v2) instead of the removed `docker-compose` and don't depend on the compose v1 container names - wait for the Seahub API instead of the web server and retry the Seahub restart which raises the API throttle limits, as Seahub is not always ready when it is first asked - replace the fixed 60s sleep in TestSeafileEncrypted with a wait loop - raise the Seahub API throttle limits in TestSeafileEncrypted too, as concurrent test runs exceeded the 60 logins/minute and failed with "failed to authenticate" - report the server as running while any container of the compose project is up, so that a crashed seafile container still gets its db and cache containers torn down by stop instead of reused on the next start - remove TestSeafileV6: the seafileltd/seafile image for Seafile 6 can no longer be downloaded and it wasn't part of test_all Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
services:
|
|
db:
|
|
image: mariadb:10.11
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- MYSQL_LOG_CONSOLE=true
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
volumes:
|
|
- ${SEAFILE_TEST_DATA}/${NAME}/seafile-mysql/db:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--connect", "--mariadbupgrade", "--innodb_initialized"]
|
|
interval: 5s
|
|
start_period: 30s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
redis:
|
|
image: redis:7
|
|
command: ["redis-server", "--save", "", "--appendonly", "no"]
|
|
|
|
seafile:
|
|
image: seafileltd/seafile-mc:${SEAFILE_VERSION}
|
|
ports:
|
|
- "${SEAFILE_IP}:${SEAFILE_PORT}:80"
|
|
volumes:
|
|
- ${SEAFILE_TEST_DATA}/${NAME}/seafile-data:/shared
|
|
environment:
|
|
- SEAFILE_MYSQL_DB_HOST=db
|
|
- SEAFILE_MYSQL_DB_PORT=3306
|
|
- SEAFILE_MYSQL_DB_USER=seafile
|
|
- SEAFILE_MYSQL_DB_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db
|
|
- SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db
|
|
- SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub_db
|
|
- INIT_SEAFILE_MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- JWT_PRIVATE_KEY=${SEAFILE_JWT_PRIVATE_KEY}
|
|
- TIME_ZONE=Etc/UTC
|
|
- INIT_SEAFILE_ADMIN_EMAIL=${SEAFILE_ADMIN_EMAIL}
|
|
- INIT_SEAFILE_ADMIN_PASSWORD=${SEAFILE_ADMIN_PASSWORD}
|
|
- SEAFILE_SERVER_PROTOCOL=http
|
|
- SEAFILE_SERVER_HOSTNAME=${SEAFILE_IP}:${SEAFILE_PORT}
|
|
- CACHE_PROVIDER=redis
|
|
- REDIS_HOST=redis
|
|
- ENABLE_SEADOC=false
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|