[NPMCLI-195] Add a switch to install and start only a specific instance Created: 28/Nov/18  Updated: 25/Mar/22

Status: Open
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2018-11-28-10-22-41-176.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

As discussed in slack's Docu room on Nov 28 (2018), the key question is:

Is there a way to install just an author instance with CLI? No public. Shorter startup.

Possible (tested) ways:

A) "I always just delete the /magnoliaPublic directory. Works for me."

B) 

  1.  mgnl jumpstart
  2.  wait until all is downloaded
  3.  go to the /apache-tomcat/bin dir
  4.  in magnolia_control.sh uncomment or remove the section
     # create public webapp(from author webapp) when "installed"  file and "magnoiaPublic/WEB-INF" directory doesn't exist
  5.  mgnl start

This starts the author
and trying to access the public you'll see:

------------------------

The current behavior is:

  • mgnl jumpstart downloads Tomcat and a selected webapp, extracts the webapp to magnoliaAuthor and prepares (creates) also an almost-empty magnoliaPublic folder (with approx 0.5MB of content).
  • mgnl start, which is usually the next command issued, copies the content form magnoliaAuthor to magnoliaPublic, installs and starts both instances.

jumpstart command's current switches are:

-v, --version
-p, --path
-m, --magnolia-version
-i, --install-sample-module
-w, --webapp
-s, --snapshot
-h, --help

start command's current switches are:

-v, --version
-p, --path
-d, --dont-ignore-open-files-check
-h, --help

Already with the jumpstart command the user could decide to install and start just a single instance, not both (default, no switch for that). Unfortunately, the -i switch is  already occupied to stand for "instance". 

(https://documentation.magnolia-cms.com/display/DOCS60/Instances)

I'd suggest then implementing 

-d, --deploy-only-one-instance <author|public>

might be suitable for this, e.g.:

mgnl jumpstart -m 5.7 -s -d author



 Comments   
Comment by Christopher Zimmermann [ 28/Nov/18 ]

Problem and use case is accepted. However the name and behaviour of switches must still be decided upon.

Generated at Mon Feb 12 04:47:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.