ximixinstallers
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | ximixinstallers [2019/05/26 19:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Ximix Jar Based Installers ====== | ||
+ | The Ximix build system can package Ximix Nodes into a executable jar (Java ARchive) file that can install the necessary files onto a target system. | ||
+ | Executable Jar files were chosen because: | ||
+ | - The complete process to build the jars can be examined and audited from beginning to end. | ||
+ | - As target systems will be running java, the platform to run the installer would be available. | ||
+ | - Jar files can be signed for later validation and repudiation. | ||
+ | |||
+ | The executable installer can deploy one or more nodes. A multi-node installer could be used for testing purposes where the nodes of a test network can be deployed on one host where a single node installer could be digitally signed and used as part of a production deployment across different hosts. | ||
+ | |||
+ | |||
+ | |||
+ | ===== Creating an Installer ====== | ||
+ | The gradle [[https:// | ||
+ | |||
+ | ==== Requirements ==== | ||
+ | Before producing an installer you will need to know the file system locations of: | ||
+ | - The mixnet configuration file. (eg. mixnet.xml) | ||
+ | - The configuration files for one or more nodes this installer will deploy.( eg. node1.xml) | ||
+ | |||
+ | These files will be included in the installer for later deployment onto the target systems. | ||
+ | |||
+ | ===== Installer Creation on Unix Hosts ===== | ||
+ | Find and change into (' | ||
+ | |||
+ | The basic format for using this script is: | ||
+ | < | ||
+ | |||
+ | Where the arguments: | ||
+ | - mixnet.xml -- The configuration for the network. | ||
+ | - node1.xml -- Configuration for the first node. | ||
+ | - node2.xml -- Configuration for the second node. | ||
+ | |||
+ | If more than one < | ||
+ | |||
+ | === To Create a Multiple Node Installer: === | ||
+ | |||
+ | < | ||
+ | |||
+ | For example: | ||
+ | |||
+ | < | ||
+ | |||
+ | === To Create a Single Node Installer === | ||
+ | |||
+ | < | ||
+ | |||
+ | For example: | ||
+ | |||
+ | < | ||
+ | |||
+ | Note: For a single node installer only define one node configuration, | ||
+ | |||
+ | When the script runs it will produce output similar to: | ||
+ | < | ||
+ | :clean | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | :demo:clean | ||
+ | |||
+ | //Output removed for brevity.// | ||
+ | |||
+ | : | ||
+ | |||
+ | Making Node Installer Jar | ||
+ | |||
+ | |||
+ | Installer Jar: / | ||
+ | The installer jar can run using: | ||
+ | java -jar / | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | </ | ||
+ | |||
+ | After producing the executable installer jar, the script the will report the location of the jar file. | ||
+ | |||
+ | This jar file is self contained and may be copied and run where Java 1.7 is installed. | ||
+ | |||
+ | ===== Installer Creation on Windows Hosts ===== | ||
+ | |||
+ | Make sure you have installed [[https:// | ||
+ | |||
+ | From a " | ||
+ | < | ||
+ | gradle clean jar make_node_installer -Dnetwork=mixnet.xml, | ||
+ | </ | ||
+ | |||
+ | Where ' | ||
+ | - mixnet.xml -- The configuration for the network. | ||
+ | - node1.xml -- Configuration for the first node. | ||
+ | - node2.xml -- Configuration for the second node. | ||
+ | |||
+ | The list of configuration files must be comma separated and any spaces must be escaped. | ||
+ | |||
+ | If this is successful it will produce output similar to that shown for installer creation on Unix hosts with the output location shown specifically for the Windows file system. | ||
+ | |||
+ | ===== Running an Installer Executable Jar ===== | ||
+ | To run the installer executable jar file type the following from a command prompt, you will need to know the location of the XimixNodeInstaller.jar. | ||
+ | |||
+ | To install: | ||
+ | < | ||
+ | java -jar <path to>/ | ||
+ | < | ||
+ | For example: | ||
+ | |||
+ | < | ||
+ | java -jar / | ||
+ | </ | ||
+ | You will be prompted for the installation directory. | ||
+ | < | ||
+ | Enter Install Directory [/ | ||
+ | Confirm Install to '/ | ||
+ | </ | ||
+ | |||
+ | The installer will unpack the nodes into the " | ||
+ | < | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Unpacking: / | ||
+ | Setting posix file permissions on ' | ||
+ | |||
+ | Finished.. | ||
+ | </ | ||
+ | |||
+ | Congratulations installation is completed. | ||
+ | |||
+ | ===== Installation Completed ===== | ||
+ | |||
+ | At this point you have successfully created and installed a Ximix Executable Jar Installer. | ||
+ | |||
+ | |||
+ | |||
+ | |||
ximixinstallers.txt · Last modified: 2019/05/26 19:34 by 127.0.0.1