|
34 | 34 | Add on Image Version |
35 | 35 |
|
36 | 36 | usage: python3 manage_project_structure.py [-h] -u BASE_URL -t TOKEN_FILE [-pg PROJECT_GROUP] -p PROJECT_NAME -pv VERSION_NAME |
37 | | - [-sp SUBPROJECT_LIST] [-nv] [-rm] [--clone-from CLONE_FROM] [--dry-run] |
| 37 | + [-sp SUBPROJECT_LIST | -ssf SUBPROJECT_SPEC_FILE] [-nv] [-rm] [--clone-from CLONE_FROM] |
| 38 | + [--dry-run] [-str STRING_TO_PUT_IN_FRONT_OF_SUBPROJECT_NAME] |
38 | 39 |
|
39 | 40 | options: |
40 | 41 | -h, --help show this help message and exit |
|
51 | 52 | -sp SUBPROJECT_LIST, --subproject-list SUBPROJECT_LIST |
52 | 53 | List of subprojects to generate with subproject:container:tag |
53 | 54 | -ssf SUBPROJECT_SPEC_FILE, --subproject-spec-file SUBPROJECT_SPEC_FILE |
54 | | - Excel file containing subproject specification |
| 55 | + Excel or txt file containing subproject specification |
55 | 56 | -nv, --no-verify Disable TLS certificate verification |
56 | 57 | -rm, --remove Remove project structure with all subprojects (DANGEROUS!) |
57 | 58 | --clone-from CLONE_FROM |
58 | 59 | Main project version to use as template for cloning |
59 | 60 | --dry-run Create structure only, do not execute scans |
| 61 | + -str STRING_TO_PUT_IN_FRONT_OF_SUBPROJECT_NAME, --string-to-put-in-front-of-subproject-name STRING_TO_PUT_IN_FRONT_OF_SUBPROJECT_NAME |
60 | 62 |
|
61 | 63 | Subprojects ae specified as subproject:[container]:[tag] |
62 | 64 | if container name omited it will be set to subproject |
|
67 | 69 | Container Name, Image ID, Version, Project Name |
68 | 70 | and subsequent rows containing data |
69 | 71 |
|
| 72 | +Sublrojects could be specified in a text file with -ssf --subproject-spec-file parameter |
| 73 | +Each line will have to contain full image specification. |
| 74 | +Specification will be parsed and image name prefixed by -str parameter will be used as a subproject name |
| 75 | +In this mode any image that is not residing on ciena.com repository will be skipped. |
| 76 | +If -str parameter is empty, Project Name will be used instead. |
| 77 | +
|
70 | 78 | Container image name scanned will be written into project version nickname field |
71 | 79 |
|
72 | 80 | |
|
0 commit comments