Embedded Installation Logic for Binary Distributions: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Projects#Patterns|Projects]]
* [[Projects#Patterns|Projects]]
* [[Nort_Concepts#The_Install_Sequence|nort Concepts - The Install Sequence]]


=Overview=
=Overview=


This pattern offers a standard installation procedure for binary distributions.  
This pattern offers a standard installation procedure for binary distributions.  It consists in shipping the binary distribution with a "./bin/.install" script that, once executed as a standard installation user, or root, renders the binary distribution into a runnable state. nort assumes the binary distributions it handles follow the pattern and attempts to run the installation logic as part of its [[nort Concepts#The_Install_Sequence|install sequence]].


It consists in shipping the binary distribution with a "./bin/.install" script that, once executed as a standard installation user, or root, renders the binary distribution into a runnable state.
=Configure the Project to be Installed with nort=


nort assumes the binary distributions it handles follow the pattern and attempts to run the installation logic as part of its [[nort Concepts#The_Install_Sequence|install sequence]].
See:


=Reference Implementation=
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[Building a Maven Complex Release Artifact]]
</blockquote>


The reference implementation of the .install file is maintained by the [[nort]] project, as::
The article contains file samples and reference implementation examples. See [[Building_a_Maven_Complex_Release_Artifact#release_Module_Structure|release module structure]] section.
 
<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
:https://github.com/NovaOrdis/nort/blob/master/release/src/main/bash/.install<br>
</blockquote>


=TODO=
=TODO=


* Consider usefulness of providing a Java class that encapsulates the installation logic and can be instantiated by reflection.
* Consider usefulness of providing a Java class that encapsulates the installation logic and can be instantiated by reflection.

Latest revision as of 22:07, 14 February 2017

Internal

Overview

This pattern offers a standard installation procedure for binary distributions. It consists in shipping the binary distribution with a "./bin/.install" script that, once executed as a standard installation user, or root, renders the binary distribution into a runnable state. nort assumes the binary distributions it handles follow the pattern and attempts to run the installation logic as part of its install sequence.

Configure the Project to be Installed with nort

See:

Building a Maven Complex Release Artifact

The article contains file samples and reference implementation examples. See release module structure section.

TODO

  • Consider usefulness of providing a Java class that encapsulates the installation logic and can be instantiated by reflection.