You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58-35Lines changed: 58 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,54 @@
1
-
# Jit Customer Scripts
1
+
# Jit Customer Scripts README
2
+
3
+
The README provided is an extensive guide on how to use the `jit-customer-scripts` project. \
4
+
The Makefile described is composed of commands that ease the installation, configuration, and running of the scripts within the project. \
5
+
Here's a breakdown of the provided README and Makefile:
6
+
7
+
## README Overview
8
+
9
+
-**Introduction**: The README begins with a brief description of the project and its purpose, which is to aid customers in creating teams and updating assets based on a given JSON file.
10
+
-**Project Structure**: An organized visual representation of the project's file structure is provided.
11
+
-**Prerequisites**: Lists necessary software that should be installed before starting, along with instructions for CentOS and Ubuntu to prepare the environment.
12
+
-**Generating API Keys**: Guidance on how to generate the necessary Github Personal Access Token and Jit API Key.
13
+
-**Installation**: Steps on cloning the repository and setting up the project.
14
+
-**Configuration**: Instructions on how to configure the necessary environment variables for the script.
15
+
-**Usage**:
16
+
-**Creating Teams from Github Topics**: Details on how to use the script to create teams and update assets from GitHub topics.
17
+
-**Using External JSON File**: Allows users to directly provide a JSON file containing team details.
18
+
-**Excluding Topics**: Instructions on excluding specific topics when creating teams.
19
+
-**Setting Up Self-Hosted Runners**: Guidance on setting up GitHub self-hosted runners on both CentOS and Ubuntu.
20
+
-**Help**: Instruction on getting help with the Makefile commands.
21
+
-**Development**: A small note about overriding the Jit API endpoint.
22
+
23
+
## Makefile Overview
24
+
25
+
The Makefile consists of several targets to facilitate the installation, configuration, and running of scripts. Here's a breakdown:
26
+
27
+
### sync-teams
28
+
This target has three sub-targets:
29
+
-`install`: Ensures Python 3 is installed, sets up a virtual environment, and installs the required dependencies.
30
+
-`configure`: Prompts the user to input configuration details like GitHub organization name, API client ID, client secret, and GitHub token. The responses are written to a `.env` file.
31
+
-`run`: Activates the virtual environment and runs two Python scripts in succession to generate teams.
32
+
33
+
### self-hosted-runner
34
+
This target and its sub-targets facilitate setting up a GitHub self-hosted runner:
35
+
-`check-root`: Ensures the script isn't run as root.
36
+
-`setup-runner`: Checks the platform (CentOS or Ubuntu) and runs the appropriate setup script.
37
+
-`install-agent`: Installs the GitHub runner agent.
0 commit comments