Skip to content

Feat/enhance make dx#93

Open
moodyjmz wants to merge 6 commits into
mainfrom
feat/enhance-make-dx
Open

Feat/enhance make dx#93
moodyjmz wants to merge 6 commits into
mainfrom
feat/enhance-make-dx

Conversation

@moodyjmz
Copy link
Copy Markdown
Member

@moodyjmz moodyjmz commented May 12, 2026

Make dev setup more robust and provide more useful feedback

Doesn't delete data volumes when switching to support different NC versions

Provides feedback if install is taking a long time

Provides feature to wipe targets

Adds make next-mobile - akin to make next

moodyjmz added 6 commits May 11, 2026 16:50
After `docker compose up -d`, check if the nextcloud container failed
to start due to a version mismatch and print a clear message with the
fix rather than hanging silently in refresh-urls.

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Replace the anonymous /var/www/html volume with a named volume keyed
on NC_VERSION (default: latest). This mirrors the make next pattern,
giving each pinned version its own isolated state. The NC entrypoint
auto-runs occ upgrade when the image advances, so pulling a newer
latest and restarting is safe without manual intervention.

Note: existing anonymous volumes are orphaned by this change — NC will
reinstall cleanly into the new named volume on first boot.

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Replace fixed timeouts with container status checks — bail immediately
if eo or nextcloud exits unexpectedly, with a pointer to the logs.
After 1000s, tail the last nextcloud log line so slow first-boot
installs (e.g. make next) show live progress instead of a silent counter.

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
next-mobile mirrors make mobile for make next branches, injecting the
detected HOST_LAN_IP for Android emulator and LAN device testing.
wipe-nc and wipe-next stop the nextcloud container then remove the
named data volume for the current NC_VERSION or NC_BRANCH respectively,
giving a clean path to reinstall without touching other versions.

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Show full Nextcloud URL in mobile mode instead of bare IP, display the
active volume name with an exact wipe command, and use NC_VERSION in
the stale-image warning so pinned versions get the correct pull command.

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
…t-mobile

- Fix stale JWT secret (was 'secret', now the actual dev key)
- Document NC_VERSION pinning and nc_data_<version> volume isolation
- Replace manual docker volume rm with make wipe-nc / make wipe-next
- Add make next-mobile to mobile testing table and description
- Mention live log tailing during slow first-boot installs
- Note the stale-image detection and auto-upgrade on make local

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz self-assigned this May 12, 2026
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.

1 participant