Skip to content

Commit e9a753a

Browse files
committed
Add sh highlights
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 0588a89 commit e9a753a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

lab1.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can sign up here: [Docker Hub](https://hub.docker.com)
7272

7373
Open a Terminal or Git Bash window and log into the Docker Hub using the username you signed up for above.
7474

75-
```
75+
```sh
7676
$ docker login
7777
```
7878

@@ -86,7 +86,7 @@ Edit `~/.bashrc` or `~/.bash_profile` - create the file if it doesn't exist.
8686

8787
Now add the following - changing the URL as per the one you saw above.
8888

89-
```
89+
```sh
9090
export OPENFAAS_PREFIX="" # Populate with your Docker Hub username
9191
```
9292

@@ -107,7 +107,7 @@ Start the first lab by picking one of the tracks below:
107107

108108
Pull the most recent OpenFaaS images.
109109

110-
```
110+
```sh
111111
curl -sSL https://raw.githubusercontent.com/openfaas/faas/master/docker-compose.yml | grep image | awk -F " " '{print $NF}' | xargs -L1 docker pull
112112
```
113113

lab1b.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,16 @@ There is a new tool called `k3sup` which can install helm charts, including Open
216216

217217
* Get k3sup
218218

219-
For Windows:
219+
For MacOS / Linux:
220220

221221
```sh
222-
curl -SLsf https://get.k3sup.dev/ | sh
222+
curl -SLsf https://get.k3sup.dev/ | sudo sh
223223
```
224224

225-
For MacOS / Linux:
225+
For Windows:
226226

227227
```sh
228-
curl -SLsf https://get.k3sup.dev/ | sudo sh
228+
curl -SLsf https://get.k3sup.dev/ | sh
229229
```
230230

231231
* Install the OpenFaaS app
@@ -277,7 +277,10 @@ Your URL will be the IP or DNS entry above on port `8080`.
277277
```sh
278278
export OPENFAAS_URL="" # Populate as above
279279

280+
# This command retrieves your password
280281
PASSWORD=$(kubectl get secret -n openfaas basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode; echo)
282+
283+
# This command logs in and saves a file to ~/.openfaas/config.yml
281284
echo -n $PASSWORD | faas-cli login --username admin --password-stdin
282285
```
283286

@@ -293,7 +296,7 @@ Edit `~/.bashrc` or `~/.bash_profile` - create the file if it doesn't exist.
293296

294297
Now add the following - changing the URL as per the one you saw above.
295298

296-
```
299+
```sh
297300
export OPENFAAS_URL="" # populate as above
298301
```
299302

0 commit comments

Comments
 (0)