B2B API Sample Scripted Deployment

It is a common requirement to script the deployment of an API, for example, to move source control system (SCS) artifacts into a production environment. You can pattern your own deployments by exploring the Business to Business (B2B) sample scripts that are in the ZIP file. These scripts demonstrate scripted deployment for your Continuous Integration/Continuous Deployment (CI/CD) process. You can use these scripts to deploy B2B, for example, from Server-A and Server-B.
lac42
It is a common requirement to script the deployment of an API, for example, to move source control system (SCS) artifacts into a production environment. You can pattern your own deployments by exploring the Business to Business (B2B) sample scripts that are in the ZIP file. These scripts demonstrate scripted deployment for your Continuous Integration/Continuous Deployment (CI/CD) process. You can use these scripts to deploy B2B, for example, from Server-A and Server-B.
Verify the Prerequisite
Before you deploy the B2B sample, ensure that you are using the single-user demonstration package of 
CA Live API Creator
 that is based on Jetty.
For more information about how to install this version of 
CA Live API Creator
, see Install the Single-User Demonstration Package.
Install the B2B Sample Scripts
  1. Download the sample scripts that are located in the /
    liveapicreator-devops/
     
    sample-scripts/b2b-devops
     directory in GitHub, (Windows) 
    deployProd.cmd
     or (Mac/Unix) 
    deployProd.sh
    .
  2. Extract the ZIP file downloaded to a directory. 
  3. Based on the platform that you are running the scripts, copy the 
    lacadmin
     command-line utility that is located in the 
    /liveapicreator-devops/macos|linux|windows
     directory to the /
    liveapicreator-devops/sample-scripts/b2b-devops
     directory.
Verify the Installation of the B2B Sample Scripts
Verify your installation by issuing the following command from the /
liveapicreator-devops/sample-scripts/b2b-devops
 directory:
(Mac) From Terminal, issue the following command:
lacadmin --version
(Windows) From a command prompt, issue the following command:
lacadmin -v
The installation of the B2B sample scripts is verified.
Deploy the B2B Sample
Script the deployment of the B2B sample by running the sample script based on the platform that you are running the scripts. You have deployed the B2B sample.