You need a Mautic environment for a customer next Thursday. The Virtuozzo marketplace has a Mautic package that installs in fifteen minutes. It runs PHP 8.1, you’ve standardized on 8.3, and it deploys a single application node where the customer’s traffic profile needs a load-balanced pair. You have three options and they all look reasonable from the install dialog. Picking the wrong one costs you a quiet weekend in six months when the next upgrade lands and your local changes are nowhere documented.
What’s happening
There are three distinct paths to a JPS-installed environment, and they have different lifecycle properties:
- Install the marketplace package unchanged. Cleanest upgrade story — the upstream publisher ships
updatemanifests, you click apply, you’re current. You inherit the upstream topology, runtime versions, and configuration choices. Customization is limited to what the install form exposes. - Fork the marketplace package. Copy the JPS file into your own repository, publish it as a private marketplace entry on your Jelastic cluster, modify it. You get full control. You lose automatic upstream updates and become responsible for tracking the upstream repo, merging changes, and re-testing each one. Forks tend to drift.
- Write the JPS from scratch. You design the manifest top-to-bottom for the customer’s exact topology and runtime. Highest engineering cost up front, lowest surprise factor over time because nothing in it is there for somebody else’s reasons.
The mistake operators make is installing the marketplace package, then patching it after install — adding a load balancer in the UI, swapping the PHP version, dropping in a custom Nginx config. The environment works. The next time the upstream publisher releases an update, applying it from the marketplace either reverts your changes or fails because the upstream update manifest assumes the topology it shipped. Now you’re stuck running an unsupported version forever, or backing out your changes one at a time to apply the update, or forking after the fact with no clean history.
The rule that actually scales: decide at install time which of the three paths this environment is on, and stay on it.
How to verify
Before you commit, three checks that tell you which path the customer’s case actually fits:
# 1. Does the marketplace manifest expose what you need via settings fields?
jelastic marketplace.app.GetManifest --id mautic --session "$SESSION_ID" \
| jq '.response.manifest.settings.fields[] | {name, caption, type, default}'
# 2. Is the upstream publisher actively maintaining it?
# Check the manifest version + last update timestamp against repository history
jelastic marketplace.app.GetList --session "$SESSION_ID" \
| jq '.response.list[] | select(.id=="mautic") | {version, dateAdded, dateModified}'
# 3. Are upstream updates published as proper update manifests
# (with onBeforeUpdate / onAfterUpdate) or as install-only?
# Look for "type: update" in the upstream manifest.
curl -s "$(jelastic marketplace.app.GetManifest --id mautic --session "$SESSION_ID" \
| jq -r '.response.manifest.homepage')/update.jps" | head -20
If (1) shows the settings already cover the customer’s needs and (2) shows the upstream publisher has shipped two updates in the last quarter and (3) shows type: update manifests in the repo — install unchanged. You’re on the supported path.
If (1) doesn’t expose what you need and the customer needs it for go-live — fork. Don’t paper over with manual UI changes.
If the upstream package is unmaintained (last update over a year ago), or the customer’s topology is fundamentally different (HA, sharded, multi-region), or the customer has security requirements that conflict with what the upstream image provides — write from scratch.
The fix
A decision table that survives most cases:
| Situation | Path |
|---|---|
| Customer needs the upstream stack, default topology, no custom code | Install marketplace package |
| Customer needs the upstream stack with one config change exposed via the install form | Install marketplace package |
| Customer needs the upstream stack with one config change NOT exposed via the install form | Fork |
| Customer needs the upstream stack but on a runtime version the package doesn’t offer | Fork |
| Customer needs a topology the package can’t produce (e.g., HA, replicas, sharded) | Fork or write from scratch — fork if the application code is the upstream’s, write from scratch if you’re also customizing the app |
| Upstream package is unmaintained (>12 months without updates) | Write from scratch |
| You’re packaging your own application | Write from scratch |
| Customer has compliance requirements that conflict with upstream image choices | Write from scratch |
If you fork, the discipline that keeps it sane:
- Keep your fork in version control with the upstream as a tracked remote.
git remote add upstream <upstream-repo>and rebase your changes on top of upstream when they ship updates. Don’t store the JPS in a wiki or a shared drive. - Tag your forked versions semantically.
v1.4.2-acme.3reads as “based on upstream 1.4.2, our third patch.” When the customer asks “what’s running?” you have an answer. - Re-publish to your private marketplace, don’t
Installfrom a local file every time. Pushing through the marketplace API means you can use the standardupdatemechanism to roll forward, which means you can roll back the same way. - Document the diff against upstream in the manifest description. Future-you reads the JPS and immediately sees what’s local.
If you write from scratch, the discipline:
- Start with a working install on day one, smoke test included. It’s tempting to draft a giant manifest before you’ve installed any of it. Don’t. Get a two-node install working with placeholder actions, then add complexity in commits.
- Reuse the marketplace package’s node types and image tags where they fit. “Write from scratch” means you own the actions; the underlying container images are still Virtuozzo’s. There’s no upside to forking the image just to put your JPS on top of it.
- Treat the manifest as code. PR review, lint in CI, deploy to staging before production. The staging-test article in this series walks through that pipeline.
If you’ve inherited an environment that started life as a marketplace install and has been hand-patched into something the upstream can’t update, Stack Harbor’s Cloud PaaS team rebuilds those environments as proper JPS-managed templates under environment management — same workloads, supportable lifecycle. Reach out if that’s the stage you’re at.