sitectl-ojs

command module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 3 Imported by: 0

README

sitectl-ojs

sitectl-ojs simplifies the creation and operation of repositories created using the LibOps OJS template. It provides sitectl commands for OJS and PKP tools, recurring maintenance, validation, and health checks.

Documentation: https://sitectl.libops.io/plugins/ojs

Requirements

  • sitectl v1.8.2 or newer provides the supported RPC verifier and strict-verification contract.
  • Docker with the Compose v2 plugin for local OJS sites.
  • No additional app-plugin dependency beyond core sitectl.

Quick Start

Create a local OJS site from the matching template:

sitectl create ojs/default \
  --template-repo https://github.com/libops/ojs \
  --path ./my-ojs-site \
  --type local \
  --checkout-source template \
  --default-context

The template README is at https://github.com/libops/ojs.

Basic Operations

Use sitectl compose to start or inspect the stack:

sitectl compose up --remove-orphans -d

Use sitectl healthcheck and sitectl validate to check the site:

sitectl healthcheck
sitectl validate
sitectl verify --strict

Behavioral verification

sitectl verify --strict checks the running OJS code/database version pair, scoped MariaDB identity, rendered URL/OAI/scheduler/SMTP configuration, OAI-PMH Identify for the first enabled journal, and private/public storage access. Runtime inspection uses checked-in programs mounted read-only by the versioned Compose template; the plugin invokes those programs by stable paths instead of embedding PHP, SQL, or shell source in generated commands. The database probe reads the connection selected by the rendered config.inc.php; its password stays inside the container and is never copied into Docker process arguments or verifier output. A new installation with no enabled journal reports OAI as not yet applicable; once a journal is enabled, the same gate requires a valid OAI-PMH envelope.

Production verification is read-only. Disposable CI may add a reversible service-account storage write/read/delete probe:

sitectl verify --strict --disposable

Never use --disposable for a retained customer site. The local verifier does not replace hosted acceptance for public DNS/TLS, external ingress, real mail delivery, browser authentication, editorial publication, authorized submission download, or upgrade-from-prior-release fixtures.

Use sitectl image for local image or build-arg overrides:

sitectl image set --tag ojs=3.5.0-5-php84

The plugin intentionally does not register broad development bind mounts: mounting an entire OJS plugin category would hide plugins bundled in the versioned base image. Add custom plugins through the downstream build or an explicit per-plugin override.

Use sitectl set for component changes; it updates component-owned files immediately:

sitectl set ingress enabled --mode https-custom --domain ojs.localhost
sitectl set ingress enabled --trusted-ip 203.0.113.10/32 --max-upload-size 2G --upload-timeout 10m

See the OJS plugin docs for lifecycle operations, OJS tools, PKP tools, and recurring maintenance.

License

sitectl-ojs is licensed under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL