File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ You can sign up here: [Docker Hub](https://hub.docker.com)
72
72
73
73
Open a Terminal or Git Bash window and log into the Docker Hub using the username you signed up for above.
74
74
75
- ```
75
+ ``` sh
76
76
$ docker login
77
77
```
78
78
@@ -86,7 +86,7 @@ Edit `~/.bashrc` or `~/.bash_profile` - create the file if it doesn't exist.
86
86
87
87
Now add the following - changing the URL as per the one you saw above.
88
88
89
- ```
89
+ ``` sh
90
90
export OPENFAAS_PREFIX=" " # Populate with your Docker Hub username
91
91
```
92
92
@@ -107,7 +107,7 @@ Start the first lab by picking one of the tracks below:
107
107
108
108
Pull the most recent OpenFaaS images.
109
109
110
- ```
110
+ ``` sh
111
111
curl -sSL https://raw.githubusercontent.com/openfaas/faas/master/docker-compose.yml | grep image | awk -F " " ' {print $NF}' | xargs -L1 docker pull
112
112
```
113
113
Original file line number Diff line number Diff line change @@ -216,16 +216,16 @@ There is a new tool called `k3sup` which can install helm charts, including Open
216
216
217
217
* Get k3sup
218
218
219
- For Windows :
219
+ For MacOS / Linux :
220
220
221
221
``` sh
222
- curl -SLsf https://get.k3sup.dev/ | sh
222
+ curl -SLsf https://get.k3sup.dev/ | sudo sh
223
223
```
224
224
225
- For MacOS / Linux :
225
+ For Windows :
226
226
227
227
``` sh
228
- curl -SLsf https://get.k3sup.dev/ | sudo sh
228
+ curl -SLsf https://get.k3sup.dev/ | sh
229
229
```
230
230
231
231
* Install the OpenFaaS app
@@ -277,7 +277,10 @@ Your URL will be the IP or DNS entry above on port `8080`.
277
277
``` sh
278
278
export OPENFAAS_URL=" " # Populate as above
279
279
280
+ # This command retrieves your password
280
281
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
281
284
echo -n $PASSWORD | faas-cli login --username admin --password-stdin
282
285
```
283
286
@@ -293,7 +296,7 @@ Edit `~/.bashrc` or `~/.bash_profile` - create the file if it doesn't exist.
293
296
294
297
Now add the following - changing the URL as per the one you saw above.
295
298
296
- ```
299
+ ``` sh
297
300
export OPENFAAS_URL=" " # populate as above
298
301
```
299
302
You can’t perform that action at this time.
0 commit comments