Skip to content

Commit 500477f

Browse files
committed
System Script
1 parent 3e9e257 commit 500477f

File tree

2 files changed

+101
-4
lines changed

2 files changed

+101
-4
lines changed

docs/prerequisites.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ Here is a course for learning (or brushing up) on working from the linux command
3333
Using `wget`:
3434

3535
```
36-
wget -O - https://cloudnative101.dev/scripts/setup/system-check.sh | sh
36+
wget -O - https://cloudbootcamp.dev/scripts/system-check.sh | sh
3737
```
3838

3939
Using `curl`:
4040

4141
```
42-
curl -s https://cloudnative101.dev/scripts/setup/system-check.sh | sh
42+
curl -s https://cloudbootcamp.dev/scripts/system-check.sh | sh
4343
```
4444

4545
After the script is run, make sure to install any missing tools.
@@ -167,12 +167,12 @@ Here is a course for learning (or brushing up) on working from the linux command
167167

168168
Using wget:
169169
```
170-
wget -O - https://cloudnative101.dev/scripts/setup/system-check.sh | sh
170+
wget -O - https://cloudbootcamp.dev/scripts/system-check.sh | sh
171171
```
172172

173173
Using curl:
174174
```
175-
curl -s https://cloudnative101.dev/scripts/setup/system-check.sh | sh
175+
curl -s https://cloudbootcamp.dev/scripts/system-check.sh | sh
176176
```
177177

178178
After the script is run, make sure to install any missing tools.

docs/scripts/system-check.sh

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
#!/bin/bash
2+
3+
echo 'Running System Checks'
4+
5+
if hash ibmcloud 2>/dev/null
6+
then
7+
printf '\xE2\x9C\x85 IBM Cloud CLI \n'
8+
else
9+
printf '\xE2\x9D\x8C IBM Cloud CLI \n \n'
10+
11+
printf 'Download the IBM Cloud CLI using the links below: \n'
12+
printf 'For All Users: https://cloud.ibm.com/docs/cli/reference/ibmcloud?topic=cloud-cli-install-ibmcloud-cli \n \n '
13+
fi
14+
15+
if hash git 2>/dev/null
16+
then
17+
printf '\xE2\x9C\x85 Git CLI \n'
18+
else
19+
printf '\xE2\x9D\x8C Git CLI \n \n'
20+
21+
printf 'Download the Git CLI using the links below: \n'
22+
printf 'For All Users: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git \n \n'
23+
fi
24+
25+
if hash crc 2>/dev/null
26+
then
27+
printf '\xE2\x9C\x85 CRC \n'
28+
else
29+
printf '\xE2\x9D\x8C CRC \n \n'
30+
31+
printf '* A RedHat Account is Required * \n'
32+
printf 'Download CRC using the links below: \n'
33+
printf 'For All Users: https://cloud.redhat.com/openshift/install/crc/installer-provisioned \n \n'
34+
fi
35+
36+
if hash minikube 2>/dev/null
37+
then
38+
printf '\xE2\x9C\x85 Minikube \n'
39+
else
40+
printf '\xE2\x9D\x8C Minikube \n \n'
41+
42+
printf 'Download Minikube using the links below: \n'
43+
printf 'For All Users: https://kubernetes.io/docs/tasks/tools/install-minikube/ \n \n'
44+
fi
45+
46+
if hash docker 2>/dev/null
47+
then
48+
printf '\xE2\x9C\x85 Docker CLI \n'
49+
else
50+
printf '\xE2\x9D\x8C Docker CLI \n \n'
51+
52+
printf 'Download the Docker CLI using the links below: \n'
53+
printf 'For Mac: https://docs.docker.com/docker-for-mac/install/ \n'
54+
printf 'For Linux Users: https://docs.docker.com/engine/install/ubuntu/ \n'
55+
printf 'For Windows: https://docs.docker.com/docker-for-windows/install/ \n \n'
56+
57+
fi
58+
59+
if hash kubectl 2>/dev/null
60+
then
61+
printf '\xE2\x9C\x85 Kubernetes CLI \n'
62+
else
63+
printf '\xE2\x9D\x8C Kubernetes CLI \n \n'
64+
65+
printf 'Download the Kubernetes CLI using the links below: \n'
66+
printf 'For All Users: https://kubernetes.io/docs/tasks/tools/install-kubectl/ \n \n'
67+
fi
68+
69+
if hash oc 2>/dev/null
70+
then
71+
printf '\xE2\x9C\x85 Openshift CLI \n'
72+
else
73+
printf '\xE2\x9D\x8C Openshift CLI \n \n'
74+
75+
printf 'Download the Openshift CLI using the links below: \n'
76+
printf 'For All Users: https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/ \n \n'
77+
fi
78+
79+
if hash tkn 2>/dev/null
80+
then
81+
printf '\xE2\x9C\x85 Tekton CLI \n'
82+
else
83+
printf '\xE2\x9D\x8C Tekton CLI \n \n'
84+
85+
printf 'Download the Tekton CLI using the links below: \n'
86+
printf 'For All Users: https://github.com/tektoncd/cli#installing-tkn \n \n'
87+
fi
88+
89+
if hash argocd 2>/dev/null
90+
then
91+
printf '\xE2\x9C\x85 Argo CLI \n'
92+
else
93+
printf '\xE2\x9D\x8C Argo CLI \n \n'
94+
95+
printf 'Download the Argo CLI using the links below: \n'
96+
printf 'For All Users: https://argoproj.github.io/argo-cd/cli_installation/ \n \n'
97+
fi

0 commit comments

Comments
 (0)