Prior to subscribing to a cartridge, you have to create a remote Git repository in GitHub to store your artifacts. The Git repository folder structure will vary based on the respective WSO2 cartridge. Therefore, it is very important that you create the Git folder structure accurately.
The Git repository folder structure for the various WSO2 cartridges that are available in WSO2 Private PaaS are as follows:
WSO2 API Manager (AM) cartridge uses an internal Git repository that is provided by WSO2 Private PaaS. Therefore, the tenant does not need to maintain a remote Git repository.
To get the respective Git repository folder structure for WSO2 products follow the instructions below:
- Download the WSO2 product pack that corresponds to the WSO2 application that you wish to deploy.
- Unzip the downloaded binary pack.
Start the downloaded WSO2 product server.
- Create a tenant via the respective WSO2 product management console.
Sign into the respective WSO2 product management console via one of the following URLs. Use
adminas the username and password:
On the Configure tab of the Management Console, click Add New Tenant.
- Enter the required details as follows:
- Domain - The domain name for the organization, which should be a unique name (e.g., abc.com).
- Usage plan for the tenant - The usage plan defines limitations (such as number of users) for the tenant.
- First Name - First name of the tenant admin.
- Last Name - Last name of the tenant admin.
- Admin Username - The username the tenant admin will use to log in. The username must always end with the domain name (e.g., [email protected]).
- Email - The email address of the admin.
- Click Save.
- Navigate to the
Copy the content in the latter mentioned folder recursively to the local Git repository root folder.
You need to copy the folder structure in this manner as there are default configurations that are needed, e.g., In WSO2 ESB, there are module meta files, which are used to configure properties related to modules, such as, Rampart and Rahas.
- Commit the changes and push it to the Git repository.