Skip to content

feat(oc11): add occ subcommand support and document usage#618

Open
DeepDiver1975 wants to merge 6 commits into
masterfrom
feat/oc11-occ-entrypoint
Open

feat(oc11): add occ subcommand support and document usage#618
DeepDiver1975 wants to merge 6 commits into
masterfrom
feat/oc11-occ-entrypoint

Conversation

@DeepDiver1975
Copy link
Copy Markdown
Contributor

@DeepDiver1975 DeepDiver1975 commented May 21, 2026

Summary

  • Bumps owncloud/base:24.04 digest to pick up the new occ subcommand (landed in owncloud-docker/base#462)
  • Documents the new subcommand in README.md under ## Running occ commands

The occ subcommand was initially added as an overlay in this repo, then moved to the base image where it belongs. This PR now just pins the updated base digest and adds the docs.

Usage

docker-compose.yml:

command: ["/usr/bin/owncloud", "occ", "<occ-command>", "<args...>"]

docker run:

docker run --rm --network <oc-network> \
  -e OWNCLOUD_DB_TYPE=mysql \
  -e OWNCLOUD_DB_HOST=db \
  -e OWNCLOUD_DB_NAME=owncloud \
  -e OWNCLOUD_DB_USERNAME=owncloud \
  -e OWNCLOUD_DB_PASSWORD=owncloud \
  owncloud/server \
  /usr/bin/owncloud occ <occ-command> [args...]

Example — start the Windows Network Drive SMB listener:

command: ["/usr/bin/owncloud", "occ", "wnd:listen", "myhost", "myshare", "myuser", "--password-file=/run/secrets/wnd_password"]

Test Plan

  • Build oc11 image with updated base digest
  • Run command: ["/usr/bin/owncloud", "occ", "list"] — verify occ command list prints, no Apache started, container exits 0
  • Verify existing server, install, migrate, installed subcommands still work normally

🤖 Generated with Claude Code

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
The occ) case is now part of owncloud/base (owncloud-docker/base#462),
so the overlay override in this repo is no longer needed.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975 DeepDiver1975 changed the title feat(oc11): add general occ subcommand to owncloud entrypoint feat(oc11): add occ subcommand support and document usage May 21, 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