Welcome to the home of the Perforce Helix Installer project. The Helix Installer is the preferred method of installing Helix Core and the Server Deployment Package (SDP).
Perforce Helix is a unified platform for collaborative development, version management, and protection of intellectual property. It consists of an integrated ecosystem of proven, enterprise-grade systems for versioning, collaboration and code review, continuous integration and delivery, and other aspects of a DevOps pipeline.
This Helix Installer is capable of quickly transforming a vanilla Linux machine into a production-grade deployment of Helix Core. It also helps standardize deployment of a fleet of Helix Core servers across an enterprise-scale deployment of Helix Core.
For public cloud usage, the Helix Installer provides a way to build "Golden Copy" baseline server installations. For example, it plays a role in building Amazon Machine Images (AMIs). It is useful in other Linux installations, including public/private clouds, on-prem virtual or bare metal hardware Docker containers, etc. See Public Cloud Usage below.
Note that this software SHOULD NEVER EXIST on a Production Perforce server. The is intended to quickly tear down and rebuild a fresh Perforce server (e.g. for operating test suites). It should not exist on a machine containing real Perforce data.
It is useful for doing an initial installation, e.g. to bootstrap a production machine with the SDP structure. After a successful install, the core reset_sdp.sh
script is moved aside to reset_sdp.sh.txt and the execute bit is removed. The script should be removed entirely before going live in production.
This software is community supported. Evolution can also be driven by engaging Perforce Consulting. Please DO NOT contact Perforce Support for the Helix Installer, as it is not an officially supported product offering.
The Helix Installer is installs the Server Deployment Package (SDP).
By default, the Helix Installer installs the latest mainline version of the SDP acquired from The Workshop over the public internet. It acquires the latest patch of the Helix Core binaries (currently Helix Core 2020.2) available from the Perforce FTP server.
The Helix Installer can also clone the SDP project's dev
branch to get the very latest, but possibly not yet fully tested, software available in the SDP dev
branch. This is done using Helix native DVCS features (e.g. p4 clone
) to clone the SDP dev branch from The Workshop. Optionally a specified shelved changelist can unshelved over the dev branch (see SDP Dev Branch Testing below). As a general rule, it is best to stick with the default 'main' branch unless Perforce Consulting recommends using the dev branch for some reason (with any such reason being temporary and customer-specific).
The installation is suitable for:
-fast
option, which omits the optional Perl and Python builds.The reset_sdp.sh
script is the only script that should be downloaded. It downloads everything it needs, including other scripts and files from this Helix Installer package, executables from the Perforce FTP site, and the SDP from The Workshop (acquired using Helix native DVCS features ala p4 clone
).
Once creating a fresh vanilla server machine for a supported platform, do this as the root user:
mkdir -p /hxdepots/reset
cd /hxdepots/reset
curl -k -s -O https://swarm.workshop.perforce.com/downloads/guest/perforce_software/helix-installer/main/src/reset_sdp.sh
chmod +x reset_sdp.sh
Read the documentation the manual page generated with -man
:
./reset_sdp.sh -man
And then, the big moment. Make it happen:
./reset_sdp.sh -fast 2>&1 | tee reset_sdp.log
A similar procedure works for Mac OSX, except that the standard Mac interface is used manually for creating the perforce
user account.
A configured installation can be done, allowing more options to be changed using a generated settings.cfg
file. Do like so:
su -
mkdir -p /hxdepots/reset
cd /hxdepots/reset
curl -k -s -O https://swarm.workshop.perforce.com/download/guest/perforce_software/helix-installer/main/src/reset_sdp.sh
chmod +x reset_sdp.sh
Generate a default config file:
./reset_sdp.sh -C > settings.cfg
Read the documentation the manual page generated with -man
:
./reset_sdp.sh -man
Edit the generated settings.cfg
file, changing the values as desired. And then run using that generated file:
./reset_sdp.sh -c settings.cfg -fast 2>&1 | tee log.reset_sdp
Note: If you want to attempt local build and installation of Python/P4Python and Perl/P4Perl into /p4/common/python
and /p4/common/perl
areas, either drop the -fast
flag, or run those separate installations afterward - see the description of the -fast
flag in the doc for details on adding either or both of those afterward.
The Configured Installation method described above is the best way to bootstrap a production installation. If used for this purpose, and if separate storage mounts are to be used for optimal and/or at-scale installations, these mounts should be configured (e.g. AWS CloudFormation Templates, or Terraform) first:
/hxdepots
- Used for versioned files and checkpoints, etc./hxmetadata
- Used for live and offline databases, etc. /hxlogs
- Used for script and application logs, active journal, etc.These should all be configured as xfs
filesystems (or alternately ext4
).
In addition, acquire a license file from sales@perforce.com for evaluation or license purchase.
See the Volume Layout and Hardware section of the SDP Guide for Unix for more information.
The Helix Installer can be used to test SDP changes shelved to the SDP dev branch in The Workshop. The following example illustrates testing a change in shelved changelist 23123:
su -
mkdir -p /hxdepots/reset
cd /hxdepots/reset
curl -k -s -O https://swarm.workshop.perforce.com/downloads/guest/perforce_software/helix-installer/main/src/reset_sdp.sh
chmod +x reset_sdp.sh
./reset_sdp.sh -b dev,@23123 2>&1 | tee reset_sdp.CL23123.log
After the first test, an iterative test cycle may follow on the same shelved changelist. For each test iteration, the shelved changelist is first updated in the workspace from which the change was originally shelved, e.g. with a command like p4 shelve -f -c 23123
.
Then a new test can be done by calling reset_sdp.sh
with the same arguments. The script will re-install the SDP cleanly, and then re-apply the updated shelved changelist.
See the Helix Installer Release Notes.
Helix Installer 2021.3 is available today. It installs the following Helix Components, all fully configured an integrated:
The Helix Installer 2021.3 version handles all aspects of installation. It does the following:
perforce
OS user, if needed.Following installation, it also does the following to be more convenient for demos, and also give a more production-like feel:
perforce
user sudo access (optionally limited sudo access).~perforce/.bash_profile
and .bashrc
files (if they do not already exist).p4d
and other binaries directly from the Perforce FTP server).firewalld
type firewalls only).The coming Helix Installer 2021.4 release is expected to:
The Helix Installer Test Suite uses Docker virtualization technology. The test suite can be used for standalone demonstrations of the Helix Installer or the SDP.
Helix Installer 2021.3 Platform Support notes:
Distro | Support | Notes |
---|---|---|
Amazon Linux 2 | M | Supported |
CentOS/RHEL 7.9+ | A | Supported |
Rocky Linux 8.4 | A | Supported |
Ubuntu 20.04 LTS Release (Focal Fossa) | A | Supported |
CentOS/RHEL 8.4 | L | Supported, but end of life. |
Ubuntu 18.04 LTS Release (Bionic Beaver) | L | The default shell in Bionic causes the Helix Installer to fail. |
Ubuntu 16.04 LTS Release (Xenial) | U | Unsupported. |
OSX 10.14 Mojave | L | Limited support for Mac OSX/Darwin. Does not create 'perforce' OS user, other limitations. |
SuSE 12 | L | Known to work at least once, no ongoing testing at present. |
CentOS/RHEL 6.9 | U | Unsupported, but known to work. |
As of October 2021 this project is functional and active, and has been actively used since its inception in April 2015. It has been actively maintained to keep pace with SDP changes up to and including the SDP 2020.1 release.
For building out cloud environments, some customers build "Golden Copy" images based on the Helix Installer. To further simplify this, we expect publicly available Amazon Machine Images (AMIs) to be available soon. Contact [consulting@perforce.com](mailto:consulting@perforce.com?Subject=Query about AMIs using Helix Installer). AWS CloudFormation templates as well as cloud-agnostic Terraform and similar technologies for Azure can also be used to build baseline infrastructure. Then the Helix Installer transforms a baseline machine (configured with the 3 /hx*
storage volumes) into a baseline Helix Installer machine to be a master, edge server, etc. Then after data is loaded, a new "local baseline" machine image with local Helix data, potentially Terabytes, can be added.
While using the latest publicly available versions of software is generally reliable and common practice, there are usage scenario where guaranteed reliability is required, and/or public public internet access is not available. For these scenarios, the Helix installer sports a -local
option for Local Mode installation.
For a guaranteed reliable install that does not rely on public internet access, the Helix Installer also supports installation with fixed (and possibly older) versions of the software it needs, specifically:
To prepare for stable installation, a local tarball must first be created in an environment that has public internet access. This is done like so:
As root
, download the SDP tarball.
mkdir -p /hxdepots/downloads
cd /hxdepots/downloads
curl -s -k -o sdp.Unix.tgz https://swarm.workshop.perforce.com/downloads/guest/perforce_software/sdp/downloads/sdp.Unix.tgz?v=%2330
cd ..
tar -xzf downloads/sdp.Unix.tgz
The odd-looking text at the end if the URL starting with ?v=%23
is a version specifier (not a typo).
Execute commands like these samples to get the binaries. This gets Helix Core 2021.1 binaries. Tweak the URL as desired. For example, change r21.1 to r20.2 in the examples below to get the 2020.1 binaries.
cd /hxdepots/sdp/helix_binaries
curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4
curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4d
curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4broker
curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4p
chmod +x p4*
There is no standard way to get a specific patch. Only the latest patch for a specified major version (e.g. r21.1) can be obtained from the Perforce FTP server.
Then, get the tarball for the Helix Installer (2021.3) onto the machine in which you intend to perform the stable installation.
cd /hxdepots/downloads
curl -s -k -o helix_installer.tgz https://swarm.workshop.perforce.com/downloads/guest/perforce_software/helix-installer/downloads/helix_installer.tgz?v=%238
tar -xzf helix_installer.tgz
rm -rf /hxdepots/reset
cp -pr hi/src ../reset
The odd-looking text at the end if the URL starting with ?v=%23
is a version specifier (not a typo).
Acquire the Sample Depot training data set from the Perforce FTP server. This can be skipped if you plan to use the -no_sd
(No Sample Depot) option to the Helix Installer.
cd /hxdepots/downloads
curl -s -k -O http://ftp.perforce.com/perforce/tools/sampledepot.tar.gz
With the steps above completed to prepare local data, the entire /hxdepots tree, including the Helix Installer, SDP, Helix binaries, and optional Sample Depot.
cd /
tar -czf hxdepots.tgz hxdepots
The hxdepots.tgz
tarball can then be transferred (over air gap network if necessary) to the machine on which stable installation is to be performed. On that machine, extract such that the structure contains:
/hxdepots/reset
/hxdepots/downloads
The precise commands to transfer files and untar on the other machine will vary depending on whether mount points are involved, what directories may already exist on the target machine, and your file transfer mechanism. One of the commands need will be tar -xzf hxdepots.tgz
to create the folder structure that must end up in /hxdepots
. It may be necessary to copy that to some other temporary location first and use rsync or similar to populate /hxdepots
.
When done, you can execte the Helix Installer per usual instructions above, except that you will use the -local
option, and and avoid using -B
(blast) option, as that will require rebuilding the /hxdepots
structure on the air gapped machine.
Some enterprise customers take full advantage of the Helix Installer for public cloud and hybrid environments that blend public cloud, private cloud, and on-prem systems. The Helix Installer integrates into a larger technology stack to build out sophisticated global topologies. The key build blocks are the Helix Installer (reset_sdp.sh
) and the SDP mkrep.sh
, which together can easily build out a sophisticated global Helix Core topology in minutes -- longer of course when you add in Terabytes of data. At the top of that food chain, the Helix Management System (HMS) adds a layer of global topology awareness.
A slightly modified Helix Installer is an integral component of the Lab Engine behind the Battle School Workshop training course. The Battle School Workshop Lab Engine quickly tears down and spins up a fresh, enterprise-style Helix installation -- and then breaks it in order to simulate real-world problems that students learn to identify and fix. The Battle School version of the Helix Installer (not available for public consumption) adds a simulated global topology with replicas and edge servers.
Note: This is an older example, as there is no longer a need for custom automation to support CBD workflows in Helix Core; this example was developed circa 2013.
The Component Based Development (CBD) system, another project in The Workshop, uses this Helix Installer as part of its automated test suite. In conjunction with Vagrant and Virtual Box, which build a vanilla VM from the ground up, the CBD Test Suite uses the Helix Installer to deploy a Perforce server, complete with Sample Depot test data set, plus Python and P4Python needed to test the CBD scripts.
Please [contact Perforce Consulting Services] (mailto:consulting@perforce.com) for more information.
# Perforce Helix Installer ## Welcome Welcome to the home of the Perforce Helix Installer project. The Helix Installer is the preferred method of installing Helix Core and the [Server Deployment Package (SDP)](https://swarm.workshop.perforce.com/projects/perforce-software-sdp). Perforce [Helix](http://www.perforce.com/helix) is a unified platform for collaborative development, version management, and protection of intellectual property. It consists of an integrated ecosystem of proven, enterprise-grade systems for versioning, collaboration and code review, continuous integration and delivery, and other aspects of a DevOps pipeline. This **Helix Installer** is capable of quickly transforming a vanilla Linux machine into a production-grade deployment of Helix Core. It also helps standardize deployment of a fleet of Helix Core servers across an enterprise-scale deployment of Helix Core. For public cloud usage, the Helix Installer provides a way to build "Golden Copy" baseline server installations. For example, it plays a role in building Amazon Machine Images (AMIs). It is useful in other Linux installations, including public/private clouds, on-prem virtual or bare metal hardware Docker containers, etc. See Public Cloud Usage below. ## Safety WARNING Note that this software ***SHOULD NEVER EXIST*** on a Production Perforce server. The is intended to quickly tear down and rebuild a fresh Perforce server (e.g. for operating test suites). It should not exist on a machine containing real Perforce data. It is useful for doing an initial installation, e.g. to bootstrap a production machine with the SDP structure. After a successful install, the core `reset_sdp.sh` script is moved aside to reset_sdp.sh.txt and the execute bit is removed. The script should be removed entirely before going live in production. ## Support Status This software is **community supported**. Evolution can also be driven by engaging Perforce Consulting. Please DO NOT contact Perforce Support for the Helix Installer, as it is not an officially supported product offering. ## Relationship to Server Deployment Package (SDP) The Helix Installer is installs the [Server Deployment Package (SDP)](https://swarm.workshop.perforce.com/projects/perforce-software-sdp). By default, the Helix Installer installs the latest mainline version of the SDP acquired from The Workshop over the public internet. It acquires the latest patch of the Helix Core binaries (currently Helix Core 2020.2) available from the Perforce FTP server. ## SDP Dev Branch Install The Helix Installer can also clone the SDP project's `dev` branch to get the very latest, but possibly not yet fully tested, software available in the SDP `dev` branch. This is done using Helix native DVCS features (e.g. `p4 clone`) to clone the SDP dev branch from The Workshop. Optionally a specified shelved changelist can unshelved over the dev branch (see SDP Dev Branch Testing below). As a general rule, it is best to stick with the default 'main' branch unless Perforce Consulting recommends using the dev branch for some reason (with any such reason being temporary and customer-specific). ## Helix Installer Uses The installation is suitable for: * Test suites for Helix server trigger and broker filter scripts deployed in enterprise environments. For example, the [CBD](https://swarm.workshop.perforce.com/projects/perforce-software-cbd) test suite uses the Helix Installer to quickly spin up a test environment for server and triggers * Demonstrations of Helix Core * Proof of Concept (PoC) Deployments * Training * Evaluation and Pilot projects. Because the Helix Installer uses the SDP, you can **transition with minimal friction from a demo-grade installation to an enterprise-grade installation**. * **Bootstrapping production installation quickly**. * Testing SDP changes shelved to the dev branch in The Workshop (see SDP Dev Branch Testing below). Features --- * **Easy**. Provides reasonable defaults for port numbers, passwords, data storage areas, and all inputs that would otherwise require human interaction. * **Comprehensive**. Installs P4D and P4Broker, SDP, and a complete development pre-configured environment include Perl, P4Perl, Python, and P4Python, with appropriate shell environment settings to use them all immediately. And more to come -- future versions may include Helix Swarm, Jenkins, etc. * **Fast** - Runs in about 2 minutes with the `-fast` option, which omits the optional Perl and Python builds. * **Simplifies Enterprise Deployment**. While optimized for getting going quickly, the Helix Installer is designed to enable a fast path from a Proof of Concept (PoC) to small-scale production deployment following the Helix evaluation, with only a nominal hop from there to a large-scale global enterprise deployment. Global Enterprise deployments require additional planning and custom configuration based on the specific global topology. * Optionally pre-loads the [Perforce Sample Depot](http://answers.perforce.com/articles/KB/2439), making it instantly ready for training and evaluation purposes. ### Instructions and Usage Example #### Fast Demo Installations The `reset_sdp.sh` script is the only script that should be downloaded. It downloads everything it needs, including other scripts and files from this Helix Installer package, executables from the Perforce FTP site, and the SDP from The Workshop (acquired using Helix native DVCS features ala `p4 clone`). Once creating a fresh vanilla server machine for a supported platform, do this as the *root* user: ``` mkdir -p /hxdepots/reset cd /hxdepots/reset curl -k -s -O https://swarm.workshop.perforce.com/downloads/guest/perforce_software/helix-installer/main/src/reset_sdp.sh chmod +x reset_sdp.sh ``` Read [the documentation the manual page](https://swarm.workshop.perforce.com/projects/perforce_software-helix-installer/view/main/doc/reset_sdp.command_summary.txt) generated with `-man`: ``` ./reset_sdp.sh -man ``` And then, the big moment. Make it happen: ``` ./reset_sdp.sh -fast 2>&1 | tee reset_sdp.log ``` A similar procedure works for Mac OSX, except that the standard Mac interface is used manually for creating the `perforce` user account. #### Configured Installation A configured installation can be done, allowing more options to be changed using [a generated `settings.cfg`](https://swarm.workshop.perforce.com/projects/perforce_software-helix-installer/view/main/doc/settings.cfg) file. Do like so: ``` su - mkdir -p /hxdepots/reset cd /hxdepots/reset curl -k -s -O https://swarm.workshop.perforce.com/download/guest/perforce_software/helix-installer/main/src/reset_sdp.sh chmod +x reset_sdp.sh ``` Generate a default config file: ``` ./reset_sdp.sh -C > settings.cfg ``` Read [the documentation the manual page](https://swarm.workshop.perforce.com/projects/perforce_software-helix-installer/view/main/doc/reset_sdp.command_summary.txt) generated with `-man`: ``` ./reset_sdp.sh -man ``` Edit the [generated `settings.cfg` file](https://swarm.workshop.perforce.com/projects/perforce_software-helix-installer/view/main/doc/settings.cfg), changing the values as desired. And then run using that generated file: ``` ./reset_sdp.sh -c settings.cfg -fast 2>&1 | tee log.reset_sdp ``` Note: If you want to attempt local build and installation of Python/P4Python and Perl/P4Perl into `/p4/common/python` and `/p4/common/perl` areas, either drop the `-fast` flag, or run those separate installations afterward - see the description of the `-fast` flag in [the doc](https://swarm.workshop.perforce.com/projects/perforce_software-helix-installer/view/main/doc/reset_sdp.command_summary.txt) for details on adding either or both of those afterward. #### Bootstrapping Production The Configured Installation method described above is the best way to bootstrap a production installation. If used for this purpose, and if separate storage mounts are to be used for optimal and/or at-scale installations, these mounts should be configured (e.g. AWS CloudFormation Templates, or Terraform) first: * `/hxdepots` - Used for versioned files and checkpoints, etc. * `/hxmetadata` - Used for live and offline databases, etc. * `/hxlogs` - Used for script and application logs, active journal, etc. These should all be configured as `xfs` filesystems (or alternately `ext4`). In addition, acquire a license file from sales@perforce.com for evaluation or license purchase. See the **Volume Layout and Hardware** section of [the SDP Guide for Unix](https://swarm.workshop.perforce.com/projects/perforce-software-sdp/files/main/doc/SDP_Guide.Unix.docx) for more information. #### SDP Dev Branch Testing The Helix Installer can be used to test SDP changes shelved to the SDP dev branch in The Workshop. The following example illustrates testing a change in shelved changelist 23123: ``` su - mkdir -p /hxdepots/reset cd /hxdepots/reset curl -k -s -O https://swarm.workshop.perforce.com/downloads/guest/perforce_software/helix-installer/main/src/reset_sdp.sh chmod +x reset_sdp.sh ./reset_sdp.sh -b dev,@23123 2>&1 | tee reset_sdp.CL23123.log ``` After the first test, an iterative test cycle may follow on the same shelved changelist. For each test iteration, the shelved changelist is first updated in the workspace from which the change was originally shelved, e.g. with a command like ```p4 shelve -f -c 23123```. Then a new test can be done by calling `reset_sdp.sh` with the same arguments. The script will re-install the SDP cleanly, and then re-apply the updated shelved changelist. ## Helix Installer Release Notes See the [Helix Installer Release Notes](https://swarm.workshop.perforce.com/projects/perforce_software-helix-installer/files/main/doc/ReleaseNotes.md). ## Helix Installer Roadmap ### Helix Installer 2021.3 Helix Installer 2021.3 is available today. It installs the following Helix Components, all fully configured an integrated: * **P4D** 2021.1 - the Helix Versioning Engine, the core of Helix (with or without SSL enabled). * **P4Broker** 2021.1 - the Helix Broker, enhances custom automation capabilities, simplifies maintenances. * **SDP** - Server Deployment Package (SDP), latest tarball release from the SDP mainline. * **Sample Depot** data set for training, evaluation, and demo, and pilot projects. The Helix Installer 2021.3 version handles all aspects of installation. It does the following: * Creates the `perforce` OS user, if needed. * Creates the home directory for the perforce user, if needed. * Adds OS packages as needed for P4Perl/P4Python local builds, for yum, apt, and zypper package management systems and repositories. Following installation, it also does the following to be more convenient for demos, and also give a more production-like feel: * Grants the `perforce` user sudo access (optionally limited sudo access). * Creates default `~perforce/.bash_profile` and `.bashrc` files (if they do not already exist). * Connects to the [Perforce Package Repository](https://www.perforce.com/perforce-packages) (APT and YUM only) to enable [Helix Swarm](https://www.perforce.com/products/helix-swarm) installation. (Note this script acquires `p4d` and other binaries directly from the Perforce FTP server). * Makes firewall adjustments (`firewalld` type firewalls only). * Makes init system adjustment, for both SysV and systemd init mechanisms. ### Helix Installer 2021.4 The coming Helix Installer 2021.4 release is expected to: * Add support for Helix Core 2021.2 when it becomes available. * Add support for using SELinux in enforcing mode on CentOS 8. Note that SELinux in enforcing mode is already supported on CentOS 7 as well as Ubuntu 18.04 and 20.04; changes in RHEL/CentOS 8. (This feature was deferred from the Helix Installer 2021.3 release). ## Test Suite The Helix Installer Test Suite uses Docker virtualization technology. The test suite can be used for standalone demonstrations of the Helix Installer or the SDP. ## Platform Support Helix Installer 2021.3 Platform Support notes: Distro | Support | Notes --- | --- | --- Amazon Linux 2| M | **Supported** CentOS/RHEL 7.9+ | A | **Supported** Rocky Linux 8.4 | A | **Supported** Ubuntu 20.04 LTS Release (Focal Fossa)| A| **Supported** CentOS/RHEL 8.4 | L | Supported, but end of life. Ubuntu 18.04 LTS Release (Bionic Beaver)| L| The default shell in Bionic causes the Helix Installer to fail. Ubuntu 16.04 LTS Release (Xenial)| U | Unsupported. OSX 10.14 Mojave | L | Limited support for Mac OSX/Darwin. Does not create 'perforce' OS user, other limitations. SuSE 12 | L | Known to work at least once, no ongoing testing at present. CentOS/RHEL 6.9 | U | Unsupported, but known to work. ### Support Codes: * **A**: Actively tested and included in the automated regression test suite; works reliably. * **M**: Active manual testing done in this environment. * **I**: Infrequent/occasional manual testing done in this environment. * **L**: Limited support * **U**: Unsupported ## Project Status As of October 2021 this project is functional and active, and has been actively used since its inception in April 2015. It has been actively maintained to keep pace with SDP changes up to and including the SDP 2020.1 release. ## Public Cloud Usage For building out cloud environments, some customers build "Golden Copy" images based on the Helix Installer. To further simplify this, we expect publicly available Amazon Machine Images (AMIs) to be available soon. Contact [consulting@perforce.com](mailto:consulting@perforce.com?Subject=Query about AMIs using Helix Installer). AWS CloudFormation templates as well as cloud-agnostic Terraform and similar technologies for Azure can also be used to build baseline infrastructure. Then the Helix Installer transforms a baseline machine (configured with the 3 `/hx*` storage volumes) into a baseline Helix Installer machine to be a master, edge server, etc. Then after data is loaded, a new "local baseline" machine image with local Helix data, potentially Terabytes, can be added. ## Stable Installation While using the latest publicly available versions of software is generally reliable and common practice, there are usage scenario where guaranteed reliability is required, and/or public public internet access is not available. For these scenarios, the Helix installer sports a `-local` option for Local Mode installation. For a guaranteed reliable install that does not rely on public internet access, the Helix Installer also supports installation with fixed (and possibly older) versions of the software it needs, specifically: * Server Deployment Package (SDP), 2020.1 Patch 13. * Get Helix Core binaries, 2021.1. * Helix Installer, 2021.3. To prepare for stable installation, a local tarball must first be created in an environment that has public internet access. This is done like so: ### Get a fixed version of the SDP. As `root`, download the SDP tarball. ``` mkdir -p /hxdepots/downloads cd /hxdepots/downloads curl -s -k -o sdp.Unix.tgz https://swarm.workshop.perforce.com/downloads/guest/perforce_software/sdp/downloads/sdp.Unix.tgz?v=%2330 cd .. tar -xzf downloads/sdp.Unix.tgz ``` The odd-looking text at the end if the URL starting with `?v=%23` is a version specifier (not a typo). ### Get the Helix Binaries Execute commands like these samples to get the binaries. This gets Helix Core 2021.1 binaries. Tweak the URL as desired. For example, change r21.1 to r20.2 in the examples below to get the 2020.1 binaries. ``` cd /hxdepots/sdp/helix_binaries curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4 curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4d curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4broker curl -s -k -O http://ftp.perforce.com/perforce/r21.1/bin.linux26x86_64/p4p chmod +x p4* ``` There is no standard way to get a specific patch. Only the latest patch for a specified major version (e.g. r21.1) can be obtained from the Perforce FTP server. ### Get Helix Installer Then, get the tarball for the Helix Installer (2021.3) onto the machine in which you intend to perform the stable installation. ``` cd /hxdepots/downloads curl -s -k -o helix_installer.tgz https://swarm.workshop.perforce.com/downloads/guest/perforce_software/helix-installer/downloads/helix_installer.tgz?v=%238 tar -xzf helix_installer.tgz rm -rf /hxdepots/reset cp -pr hi/src ../reset ``` The odd-looking text at the end if the URL starting with `?v=%23` is a version specifier (not a typo). ### Get the Sample Depot Acquire the Sample Depot training data set from the Perforce FTP server. This can be skipped if you plan to use the `-no_sd` (No Sample Depot) option to the Helix Installer. ``` cd /hxdepots/downloads curl -s -k -O http://ftp.perforce.com/perforce/tools/sampledepot.tar.gz ``` ### Make a Combined Tarball With the steps above completed to prepare local data, the entire /hxdepots tree, including the Helix Installer, SDP, Helix binaries, and optional Sample Depot. ``` cd / tar -czf hxdepots.tgz hxdepots ``` The `hxdepots.tgz` tarball can then be transferred (over air gap network if necessary) to the machine on which stable installation is to be performed. On that machine, extract such that the structure contains: * `/hxdepots/reset` * `/hxdepots/downloads` The precise commands to transfer files and untar on the other machine will vary depending on whether mount points are involved, what directories may already exist on the target machine, and your file transfer mechanism. One of the commands need will be `tar -xzf hxdepots.tgz` to create the folder structure that must end up in `/hxdepots`. It may be necessary to copy that to some other temporary location first and use rsync or similar to populate `/hxdepots`. When done, you can execte the Helix Installer per usual instructions above, except that you will use the `-local` option, and and avoid using `-B` (blast) option, as that will require rebuilding the `/hxdepots` structure on the air gapped machine. ## Case Studies ### Case Study: Enterprise Environment Usage Some enterprise customers take full advantage of the Helix Installer for public cloud and hybrid environments that blend public cloud, private cloud, and on-prem systems. The Helix Installer integrates into a larger technology stack to build out sophisticated global topologies. The key build blocks are the Helix Installer (`reset_sdp.sh`) and the SDP `mkrep.sh`, which together can easily build out a sophisticated global Helix Core topology in minutes -- longer of course when you add in Terabytes of data. At the top of that food chain, the [Helix Management System (HMS)](https://swarm.workshop.perforce.com/projects/perforce_software-hms) adds a layer of global topology awareness. ### Case Study: Sample Usage of Helix Installer in Battle School Workshop A slightly modified Helix Installer is an integral component of the Lab Engine behind the Battle School Workshop training course. The Battle School Workshop Lab Engine quickly tears down and spins up a fresh, enterprise-style Helix installation -- and then breaks it in order to simulate real-world problems that students learn to identify and fix. The Battle School version of the Helix Installer (not available for public consumption) adds a simulated global topology with replicas and edge servers. ### Case Study: Sample Usage of Helix Installer in CBD Test Suite *Note: This is an older example, as there is no longer a need for custom automation to support CBD workflows in Helix Core; this example was developed circa 2013.* The [Component Based Development (CBD)](https://swarm.workshop.perforce.com/projects/perforce-software-cbd) system, another project in The Workshop, uses this Helix Installer as part of its automated test suite. In conjunction with Vagrant and Virtual Box, which build a vanilla VM from the ground up, the [CBD Test Suite](https://swarm.workshop.perforce.com/projects/perforce-software-cbd/files/main/test/auto_test_cbd_vagrant.sh) uses the Helix Installer to deploy a Perforce server, complete with Sample Depot test data set, plus Python and P4Python needed to test the CBD scripts. ## Contact Us Please [contact Perforce Consulting Services] (mailto:consulting@perforce.com) for more information.
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#48 | 30496 | C. Thomas Tyler | Updated Version, README.md, Release Notes, and doc files Release. | ||
#47 | 30459 | C. Thomas Tyler |
Change URLs in curl calls in docs and code to avoid Apache redirects. Also removed '-s' option from curl calls. |
||
#46 | 30391 | C. Thomas Tyler | Updated README.md for release. | ||
#45 | 30300 | C. Thomas Tyler | Updated Version, ReleaseNotes.md, and README.md for release. | ||
#44 | 30045 | C. Thomas Tyler | 2023.2 release; changed default version to 2023.2. | ||
#43 | 29958 | C. Thomas Tyler | Merge down from main. | ||
#42 | 29956 | C. Thomas Tyler | Updated for release. | ||
#41 | 29698 | C. Thomas Tyler |
Changed 'curl' commands referencing Workshop to use '-L'. Updated stable version numbers in README.md to use new versions with corrected URLs. |
||
#40 | 29697 | C. Thomas Tyler | Updated URL for KB article. | ||
#39 | 29614 | C. Thomas Tyler | Updated fo r2023.1 release. | ||
#38 | 29448 | C. Thomas Tyler | Added Ubuntu 22.04 to supported releases list. | ||
#37 | 29403 | C. Thomas Tyler | Version info update. | ||
#36 | 28929 | C. Thomas Tyler |
Updated README.md for Helix Installer. * Added link to Enhanced Studio Pack. * Improved messaging for getting help on Helix Installer. * Updated fixed release to latest versions. * Updated version references. |
||
#35 | 28886 | C. Thomas Tyler |
Tweaked Support status message. Tweaked suggested log file name. |
||
#34 | 28834 | C. Thomas Tyler | Updated default P4D version to r22.1. | ||
#33 | 28663 | C. Thomas Tyler |
More updates prior to release. Dropped references to P4Perl due to related install scripts being deprecated in the SDP. |
||
#32 | 28661 | C. Thomas Tyler | Updated README.md prior to release. | ||
#31 | 28401 | C. Thomas Tyler | Rolled back removal of '-k' to curl for now. | ||
#30 | 28391 | C. Thomas Tyler | Updated for 2021.4 release. | ||
#29 | 28390 | C. Thomas Tyler |
Removed insecure '-i' option from sample curl commands in README.md. |
||
#28 | 28124 | C. Thomas Tyler | Updated README.md notes. | ||
#27 | 27988 | C. Thomas Tyler | Prepared README.md for coming Helix Installer r21.3 release. | ||
#26 | 27425 | C. Thomas Tyler |
Updated README.md for coming r2021.2 release, driving various changes. Added details on installing a stable version. |
||
#25 | 26977 | C. Thomas Tyler | Merged minor doc changes from main. | ||
#24 | 26971 | C. Thomas Tyler | Updated README for coming release. | ||
#23 | 26966 | C. Thomas Tyler | Removed SuSE from tests for now; may be re-added later. | ||
#22 | 26030 | C. Thomas Tyler | Documentation enhancements, including adding sample generated settings.cfg file. | ||
#21 | 25998 | C. Thomas Tyler | More README.md tweaks prior to release. | ||
#20 | 25997 | C. Thomas Tyler | Updated Version, ReleaseNotes.md, and README.md for release. | ||
#19 | 25855 | C. Thomas Tyler |
Adjusted test suite to test only Ubuntu 16.04 Long Term Support (LTS) release. |
||
#18 | 25821 | C. Thomas Tyler | Updated Version and Release Notes for release. | ||
#17 | 25671 | C. Thomas Tyler |
Dropping Ununtu 18 from test suite. Defauilt shell is 'sh' rather than 'bash', and our Package repository doesn't yet support Ubuntu 18. Support may be re-added later. |
||
#16 | 25500 | C. Thomas Tyler |
Refactored test suite details into a separate file. Added a missing 'chmod +x' step. Removed exported HTML format, opting to rely soley on Markdown format rendering. |
||
#15 | 25288 | C. Thomas Tyler | Fixed typo in 'vagrant' command for test suite. | ||
#14 | 25283 | C. Thomas Tyler | Updated for release. | ||
#13 | 25249 | C. Thomas Tyler | Updated for v3.x. | ||
#12 | 24862 | C. Thomas Tyler |
Updated Road Map. Added Support comments to more clearly indicate the Helix Installer is community supported. Added notes on Test Suite and testing with Vagrant. |
||
#11 | 23873 | C. Thomas Tyler | Added openssl-devel to list of needed packages. | ||
#10 | 23869 | C. Thomas Tyler | Added zlib-devel to list of needed packages. | ||
#9 | 23866 | C. Thomas Tyler | Updated roadmap and fixed a typo. | ||
#8 | 23865 | C. Thomas Tyler | Added rsync to list of packages needed. | ||
#7 | 23864 | C. Thomas Tyler | Added rsync to list of packages needed. | ||
#6 | 23609 | C. Thomas Tyler | Routine merge-down from main. | ||
#5 | 23282 | C. Thomas Tyler |
Updated README page and release notes. Updated Version for release. |
||
#4 | 23011 | C. Thomas Tyler | Routine merge down to dev from main. | ||
#3 | 21827 | C. Thomas Tyler | Helix Installer, Routine merge down to dev from main. | ||
#2 | 19315 | C. Thomas Tyler | Routine Merge Down to dev from main for helix-installer. | ||
#1 | 19232 | C. Thomas Tyler | Populate -b perforce_software-helix-installer-dev. | ||
//guest/perforce_software/helix-installer/main/README.md | |||||
#1 | 19230 | C. Thomas Tyler |
Populate -o //guest/tom_tyler/helix-installer/... //guest/perforce_software/helix-installer/.... |
||
//guest/tom_tyler/helix-installer/main/README.md | |||||
#5 | 16848 | C. Thomas Tyler | Fixed a typo. | ||
#4 | 16672 | C. Thomas Tyler | Added clear step-by-step usage instructions. | ||
#3 | 16669 | C. Thomas Tyler | Updated README.md file for Helix Installer Project. | ||
#2 | 16410 | C. Thomas Tyler | Updated supported versions. | ||
#1 | 15829 | C. Thomas Tyler |
Moved Helix Installer to new Workshop Standard for personal projects. |
||
//guest/tom_tyler/sw/main/hi/README.md | |||||
#1 | 12335 | C. Thomas Tyler | Copied README.me up to main. | ||
//guest/tom_tyler/sw/dev/hi/README.md | |||||
#1 | 12333 | C. Thomas Tyler | Bootstrapped doc file. |