Skip to content

Commit 64761dd

Browse files
authored
Merge pull request #16 from jitsecurity/sc-20457-customer-scripts-cleanup-rename-centos-to
renamed centos to amazon linux
2 parents 7f291a1 + f77bd6e commit 64761dd

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ run:
4141
@echo run complete
4242

4343

44-
SELF_HOSTED_DOCKER_CENTOS_SCRIPT := src/scripts/self-hosted-runners/setup-rootless-docker-centos.sh
44+
SELF_HOSTED_DOCKER_AMAZON_SCRIPT := src/scripts/self-hosted-runners/setup-rootless-docker-amazon.sh
4545
SELF_HOSTED_DOCKER_UBUNTU_SCRIPT := src/scripts/self-hosted-runners/setup-rootless-docker-ubuntu.sh
4646
SELF_HOSTED_RUNNER_SCRIPT := src/scripts/self-hosted-runners/install-github-runner-agent.sh
4747

@@ -55,10 +55,10 @@ check-root:
5555
fi
5656

5757
setup-runner:
58-
ifeq ($(filter centos,$(MAKECMDGOALS)),centos)
58+
ifeq ($(filter amazon,$(MAKECMDGOALS)),amazon)
5959
sudo yum install -y jq
60-
chmod +x $(SELF_HOSTED_DOCKER_CENTOS_SCRIPT)
61-
./$(SELF_HOSTED_DOCKER_CENTOS_SCRIPT)
60+
chmod +x $(SELF_HOSTED_DOCKER_AMAZON_SCRIPT)
61+
./$(SELF_HOSTED_DOCKER_AMAZON_SCRIPT)
6262
else ifeq ($(filter ubuntu,$(MAKECMDGOALS)),ubuntu)
6363
chmod +x $(SELF_HOSTED_DOCKER_UBUNTU_SCRIPT)
6464
./$(SELF_HOSTED_DOCKER_UBUNTU_SCRIPT)
@@ -68,8 +68,8 @@ install-agent:
6868
chmod +x $(SELF_HOSTED_RUNNER_SCRIPT)
6969
./$(SELF_HOSTED_RUNNER_SCRIPT) $(runner_token) $(github_org)
7070

71-
centos:
72-
@echo installed on centos
71+
amazon:
72+
@echo installed on amazon
7373

7474
ubuntu:
7575
@echo installed on ubuntu
@@ -81,7 +81,7 @@ help:
8181
@echo " install Install dependencies"
8282
@echo " configure Configure environment variables"
8383
@echo " create-teams Create teams based on input file"
84-
@echo " self-hosted-runner centos runner_token=<runner-token> github_org=<github-organization> Set up self-hosted runner on CentOS"
84+
@echo " self-hosted-runner amazon runner_token=<runner-token> github_org=<github-organization> Set up self-hosted runner on Amazon Linux"
8585
@echo " self-hosted-runner ubuntu runner_token=<runner-token> github_org=<github-organization> Set up self-hosted runner on Ubuntu"
8686
@echo " install-agent Install GitHub runner agent"
8787
@echo " help Show this help message"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ within the project.
1212

1313
To make sure you have all you can run this command:
1414

15-
### Centos distro
15+
### Amazon Linux distro
1616

1717
```shell
1818
sudo yum install -y git make && git clone https://github.com/jitsecurity/jit-customer-scripts.git && cd jit-customer-scripts
@@ -48,7 +48,7 @@ a link to the docs for each one:
4848
- run
4949

5050
2. **self-hosted-runner**
51-
- centos
51+
- amazon
5252
- ubuntu
5353

5454
## Project Structure
@@ -62,7 +62,7 @@ jit-customer-scripts/
6262
│ └── sync_teams
6363
│ └── sync_teams.py
6464
| └── self-hosted-runners
65-
│ └── setup-rootless-docker-centos.sh
65+
│ └── setup-rootless-docker-amazon.sh
6666
│ └── setup-rootless-docker-ubuntu.sh
6767
│ └── ...
6868
├── src/

src/scripts/self-hosted-runners/self-hosted-runner.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
This Command and its sub-targets facilitate setting up a GitHub self-hosted runner on different OS:
44

5-
- `centos`: Setup self hosted runner on CentOS.
5+
- `amazon`: Setup self hosted runner on Amazon Linux.
66
- `ubuntu`: Setup self hosted runner on Ubuntu.
77

88
You need to take the self hosted runners token from the Github Actions page of your repository.
99
`https://github.com/<your-github-org-name>/jit/settings/actions/runners`
1010

11-
## Running on CentOS
11+
## Running on Amazon Linux
1212

1313
```shell
14-
make self-hosted-runner centos runner_token=<runner-token> github_org=<github-organization>
14+
make self-hosted-runner amazon runner_token=<runner-token> github_org=<github-organization>
1515
```
1616

1717
You will be prompted to answer some questions about your runner. \

src/scripts/self-hosted-runners/setup-rootless-docker-centos.sh renamed to src/scripts/self-hosted-runners/setup-rootless-docker-amazon.sh

File renamed without changes.

0 commit comments

Comments
 (0)