Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2768 closed enhancement (fixed)

Ubuntu install script changes for better usability with docker

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: Installer Version:
Severity: trivial Keywords:
Cc: External ID:

Description

  • Add a --no-service-install flag to prevent services being installed (you'd normally run executables as processes and not actual services inside a docker container)
  • Add following flags to prevent auto-starting the required executables (as the Dockerfile itself usually determines the appropriate entry points, and employ tools like supervisor if there are multiple processes to start)
    • --no-mgserver-start
    • --no-tomcat-start
    • --no-httpd-start

As these are primarily automated install concerns, all of the above flags are only applicable if the --headless flag was specified.

Change History (4)

comment:1 by jng, 7 years ago

Resolution: fixed
Status: assignedclosed

In 9167:

  • Remove bash-isms from install script. This script now runs on vanilla POSIX sh. Fixes #2760
  • Add support for: --no-service-install: To prevent automatic installation of service scripts --no-mgserver-start: Do not auto-start mgserver --no-tomcat-start: Do not auto-start tomcat --no-httpd-start: Do not auto-start httpd

All these new flags only apply if the --headless flag is specified. Fixes #2768

comment:2 by jng, 7 years ago

In 9169:

Merged revision(s) 9163, 9166-9167 from trunk/Tools/Vagrant:
Update clean.bat and Vagrantfiles in light of stupidity introduced in vagrant that demands the script file being referenced by the shell provisioner configuration physically exist, even if I just want to destroy the associated running VM!
........
Fix bad provision script path for centos6/x86
........

  • Remove bash-isms from install script. This script now runs on vanilla POSIX sh. Fixes #2760
  • Add support for: --no-service-install: To prevent automatic installation of service scripts --no-mgserver-start: Do not auto-start mgserver --no-tomcat-start: Do not auto-start tomcat --no-httpd-start: Do not auto-start httpd

All these new flags only apply if the --headless flag is specified. Fixes #2768
........

comment:3 by jng, 7 years ago

In 9170:

Merged revision(s) 9163, 9166-9168 from trunk/Tools/Vagrant:
Update clean.bat and Vagrantfiles in light of stupidity introduced in vagrant that demands the script file being referenced by the shell provisioner configuration physically exist, even if I just want to destroy the associated running VM!
........
Fix bad provision script path for centos6/x86
........

  • Remove bash-isms from install script. This script now runs on vanilla POSIX sh. Fixes #2760
  • Add support for: --no-service-install: To prevent automatic installation of service scripts --no-mgserver-start: Do not auto-start mgserver --no-tomcat-start: Do not auto-start tomcat --no-httpd-start: Do not auto-start httpd

All these new flags only apply if the --headless flag is specified. Fixes #2768
........
Merged revision(s) 8967, 8972-8973 from branches/3.1/vagrant:
Fix release label not being properly stamped onto ubuntu install script as it was looking for a default label that doesn't exist.
........
Update ubuntu install script:

  • Add extra pre-requisite packages that were discovered to be required when testing on a clean barebones Ubuntu server installation.

........
Remove libc6 requirement from mginstallubuntu.sh. This package will always be present.
........

........

comment:4 by jng, 7 years ago

In 9171:

Merged revision(s) 9163, 9166-9168 from trunk/Tools/Vagrant:
Update clean.bat and Vagrantfiles in light of stupidity introduced in vagrant that demands the script file being referenced by the shell provisioner configuration physically exist, even if I just want to destroy the associated running VM!
........
Fix bad provision script path for centos6/x86
........

  • Remove bash-isms from install script. This script now runs on vanilla POSIX sh. Fixes #2760
  • Add support for: --no-service-install: To prevent automatic installation of service scripts --no-mgserver-start: Do not auto-start mgserver --no-tomcat-start: Do not auto-start tomcat --no-httpd-start: Do not auto-start httpd

All these new flags only apply if the --headless flag is specified. Fixes #2768
........
Merged revision(s) 8967, 8972-8973 from branches/3.1/vagrant:
Fix release label not being properly stamped onto ubuntu install script as it was looking for a default label that doesn't exist.
........
Update ubuntu install script:

  • Add extra pre-requisite packages that were discovered to be required when testing on a clean barebones Ubuntu server installation.

........
Remove libc6 requirement from mginstallubuntu.sh. This package will always be present.
........

........

Note: See TracTickets for help on using tickets.