|
|
||
|---|---|---|
| .github/workflows | ||
| odex-event | ||
| odex25_accounting | ||
| odex25_dms | ||
| scripts | ||
| .gitignore | ||
| README.md | ||
| clone.sh | ||
| pull.sh | ||
README.md
Odex25 Standard Modules
This repository contains general standard modules for all projects.
Cloning and Pulling Branches
You have to Options to configure you git client
- Using SSH keys : See this link --> https://www.youtube.com/watch?v=EoLrCX1VVog
- Using token
GH_TOKEN=<your_token>
echo "echo $GH_TOKEN" > ~/git-askpass.sh
chmod +x ~/git-askpass.sh
export GIT_ASKPASS=~/git-askpass.sh
git config --global core.askPass ~/git-askpass.sh
git config --global user.name 'github-username'
git config --global user.email 'github-username@exp-sa.com'
Clone the Repository
Clone the master branch, use the following command:
git clone -b master --depth=1 https://github.com/expsa/odex25-standard-modules.git STANDARD_MODULES
cd STANDARD_MODULES
chmod +x clone.sh pull.sh
Clone Branches
To clone or pull branches, use the provided scripts:
./clone.sh
This is a Bash script designed to clone multiple branches from a single Git repository into environment-specific directories (test, preprod, master). It intelligently handles existing folders and Git states to ensure clean and organized cloning.
📁 Output Folder Structure
After execution, the script will produce a structure like:
.
├── test/
│ ├── odex25_accounting/
│ ├── odex25_base/
│ └── ...
├── preprod/
│ ├── odex25_accounting/
│ └── ...
├── master/
│ ├── odex25_accounting/
│ └── ...
🛠️ How to Use
./clone.sh [environment]
✅ Without Arguments
Runs a full clone of all defined branches (dev, preprod, master):
./clone.sh
✅ With Environment Filter
You can limit cloning to a specific environment:
Clone only dev branches (go into test/ folder):
./clone.sh test
Clone only preprod branches:
./clone.sh preprod
Clone only master branches:
./clone.sh master
Pull Branches:
- For Test Branches:
./pull.sh test
- For Preprod Branches:
./pull.sh preprod
- For Master Branches:
./pull.sh master
Branches
Development Branches
dev_odex-eventdev_odex25_accountingdev_odex25_basedev_odex25_dmsdev_odex25_fleetdev_odex25_helpdeskdev_odex25_hrdev_odex25_inventorydev_odex25_maintenancedev_odex25_mobiledev_odex25_posdev_odex25_projectdev_odex25_purchasedev_odex25_realstatedev_odex25_salesdev_odex25_surveydev_odex25_transactionsdev_odex25_websitedev_openeducat_erp-14.0.1.0dev_odex25_takafuldev_odex25_benefitdev_odex25_donation
Preproduction Branches
preprod_odex-eventpreprod_odex25_accountingpreprod_odex25_basepreprod_odex25_dmspreprod_odex25_fleetpreprod_odex25_helpdeskpreprod_odex25_hrpreprod_odex25_inventorypreprod_odex25_maintenancepreprod_odex25_mobilepreprod_odex25_pospreprod_odex25_projectpreprod_odex25_purchasepreprod_odex25_realstatepreprod_odex25_salespreprod_odex25_surveypreprod_odex25_transactionspreprod_odex25_websitepreprod_openeducat_erp-14.0.1.0preprod_odex25_takafulpreprod_odex25_benefitpreprod_odex25_donation
Master Branches
master_odex-eventmaster_odex25_accountingmaster_odex25_basemaster_odex25_dmsmaster_odex25_fleetmaster_odex25_helpdeskmaster_odex25_hrmaster_odex25_inventorymaster_odex25_maintenancemaster_odex25_mobilemaster_odex25_posmaster_odex25_projectmaster_odex25_purchasemaster_odex25_realstatemaster_odex25_salesmaster_odex25_surveymaster_odex25_transactionsmaster_odex25_websitemaster_openeducat_erp-14.0.1.0master_odex25_takafulmaster_odex25_benefitmaster_odex25_donation
Addons Path
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_base/odex25_base,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_dms/odex25_dms,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_fleet/odex25_fleet,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_helpdesk/odex25_helpdesk,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_hr/odex25_hr,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_inventory/odex25_inventory,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_maintenance/odex25_maintenance,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_mobile/odex25_mobile,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_pos/odex25_pos,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_project/odex25_project,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_purchase/odex25_purchase,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_realstate/odex25_realstate,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_sales/odex25_sales,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/openeducat_erp-14.0.1.0/openeducat_erp-14.0.1.0,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_accounting/odex25_accounting,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_website/odex25_website,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex-event/odex-event,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_transactions/odex25_transactions,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_survey/odex25_survey,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_benefit/odex25_benefit,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_ensan/odex25_takaful,
path_to_dir/STANDARD_MODULES/FOLDER(test,preprod or master)/odex25_donation/odex25_donation