Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.91 KB

BUILDING.md

File metadata and controls

42 lines (36 loc) · 1.91 KB

Test Azure CycleCloud OpenPBS Project Changes

Test CycleCloud OpenPBS changes by creating new OpenPBS clusters.

Prerequisites

Install the Azure CycleCloud CLI and confirm it is connected to your CycleCloud instance by running the following command. The expected output is CycleCloud is configured properly.

cyclecloud initialize

Install a container runtime like Docker or Podman on your system.

1. Upload to Your Storage Locker

  1. Clone the cyclecloud-pbspro repository and make your desired changes.
  2. From the root of the repository, run the following command to prepare project blobs and generate release.yml.
./build.sh
  1. Run the following command then copy the name of the locker you would like to upload project blobs to.
cyclecloud locker list
  1. Run the following command to upload project blobs to your locker.
cyclecloud project upload "LOCKER_NAME"

Replace LOCKER_NAME with the name of your locker.

2. Edit Your Cluster Template and Deploy a Cluster

  1. Update the openpbs template to point to your changes by running the following commands.
cp templates/openpbs.txt templates/openpbs-test.txt
sed -i -e 's/\(\[*cluster-init[^]]*\)\]/\1:RELEASE_VERSION]/' -e 's/cyclecloud\/pbspro/pbspro/g' templates/openpbs-test.txt

Replace RELEASE_VERSION with the cyclecloud-pbspro release version (ex: 2.0.25)

  1. Import the template by running the following command.
cyclecloud import_template -f templates/openpbs-test.txt -c openpbs OPENPBS_PREVIEW

Replace OPENPBS_PREVIEW with the desired name for your new cluster type.

  1. Using the CycleCloud UI, create a new cluster and select OPENPBS_PREVIEW as the scheduler.