Skip to content

Commit 180e672

Browse files
Waterdripsalexellis
authored andcommitted
Update the swarm lab 1a for more info on login command
The faas-cli login section on swarm was just saying "use the printed command" rather than outlining what each section does like the k8s lab shows. Signed-off-by: Alistair Hey <[email protected]>
1 parent cef4d67 commit 180e672

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

lab1a.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,20 @@ $ cd faas && \
3939
$ ./deploy_stack.sh
4040
```
4141

42-
Watch out for the password and then run the command you are given in the output.
42+
Your gateway URL is: `http://127.0.0.1:8080`
4343

44-
* Run the `faas-cli login` command
44+
Watch out for the password and then run the commands below, or the login command printed to the console.
45+
46+
```shell script
47+
# This exports your password to and environment variable for use in the following commands
48+
export PASSWORD=<password-printed-in-console>
49+
50+
# This command sets the URL for the gateway, used by the faas-cli command
51+
export OPENFAAS_URL=http://127.0.0.1:8080
52+
53+
# This command logs in and saves a file to ~/.openfaas/config.yml
54+
echo -n $PASSWORD | faas-cli login --username admin --password-stdin
55+
```
4556

4657
* Check if the services are up and showing 1/1 for each:
4758

0 commit comments

Comments
 (0)