Skip to content

Feat/eurooffice nextcloud connector#84

Merged
moodyjmz merged 3 commits intomainfrom
feat/eurooffice-nextcloud-connector
May 5, 2026
Merged

Feat/eurooffice nextcloud connector#84
moodyjmz merged 3 commits intomainfrom
feat/eurooffice-nextcloud-connector

Conversation

@moodyjmz
Copy link
Copy Markdown
Member

@moodyjmz moodyjmz commented May 4, 2026

In conjunction with: Euro-Office/eurooffice-nextcloud#16

This makes it easier to switch NC versions.

Check the Readme changes for what to test :)

This needs the eurooffice-nextcloud adaptor available.

…umes

Each NC_BRANCH gets its own named volume (nc_data_master,
nc_data_stable33, nc_data_stable34), so switching between NC versions
during development preserves each branch's installed state — eurooffice
config, files, sessions — instead of wiping on every switch.

Usage:
  docker compose up -d nextcloud                    (master/NC34 trunk)
  NC_BRANCH=stable33 docker compose up -d nextcloud (NC33)

Pairs with the develop stack's existing setup/shared/hooks/after-install.sh
which configures eurooffice on every fresh-volume bring-up. The Makefile's
`refresh-urls` target then aligns DocumentServerUrl + JWT after install.

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz self-assigned this May 4, 2026
moodyjmz and others added 2 commits May 5, 2026 01:24
setup/enable-office.sh is the post-installation hook for the official
Nextcloud Docker Hub image (mounted to /docker-entrypoint-hooks.d/).
Update it to enable and configure the eurooffice app instead of the
upstream onlyoffice app, remove the stock onlyoffice app on first
boot to avoid autoloader conflicts, and align the JWT secret with the
value the document server container uses.

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Reframe the dev compose around what 90% of work needs (current NC stable
from Docker Hub, fast boot, no version drift) and make the
nextcloud-docker-dev source-clone path opt-in via `make next` for
testing future NC versions only.

Compose:
- docker-compose.yml: parameterise NC image as `nextcloud:${NC_VERSION:-latest}`
  so matrix testing against specific majors is `NC_VERSION=33 docker compose
  up -d`. Fix a typo in a trusted_domains comment along the way.
- Rename docker-compose.override.yml → docker-compose.next.yml so it stops
  auto-loading. `make local` now uses the base file directly → official
  `nextcloud:latest` image, ~3s boot, no master/upgrade drift.
- docker-compose.next.yml: dynamic per-branch volume name via the
  top-level `volumes.<name>.name` interpolation (`nc_data_${NC_BRANCH:-master}`).
  Replaces the hardcoded list of three branch names — any NC_BRANCH value
  now gets its own volume without yaml edits.

Makefile:
- New `next` target opts into the dev image with branch switching.
  `make next` runs against master; `make next NC_BRANCH=stable33` etc.
- New `print-nc-version` helper queries `occ -V` and is called from `local`
  and `next` so each run reports the NC version it landed on.
- Suppress the `Profiler output available at …` STDERR noise emitted
  by occ on every CLI invocation in `refresh-urls`.
- Differentiate the two refresh-urls polling lines (eo vs nextcloud).
- `docker compose exec eo bash` exits cleanly if the container shell
  returns non-zero (Ctrl+C or stray non-zero exit).

Bootstrap:
- New setup/shared/hooks/after-install.sh — equivalent of enable-office.sh
  but for the nextcloud-docker-dev image's hook system (mounted at /shared).
  Used only by `make next`; `make local` continues to use enable-office.sh
  via /docker-entrypoint-hooks.d/.

README:
- New "Testing against a future Nextcloud version" section explaining
  `make next` and per-branch volumes.

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz force-pushed the feat/eurooffice-nextcloud-connector branch from 1768653 to 083f29c Compare May 4, 2026 23:29
@moodyjmz moodyjmz merged commit 8500ffd into main May 5, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants