Skip to content

Commit

Permalink
Update bootstrap instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdi Yedes <mehdi.yedes@gmail.com>
  • Loading branch information
mehyedes committed Dec 26, 2020
1 parent 87f9938 commit af73f32
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

1) [Sign up to DigitalOcean](https://www.digitalocean.com/?refcode=2962aa9e56a1&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=CopyPaste)
2) [Download Terraform](https://www.terraform.io)
3) Clone this gist using the URL from the address bar
3) Download the [cloud-config.tpl](cloud-config.tpl) and [main.tf](main.tf) files.
Or directly from the terminal using `curl`:
```bash
$ curl -SLso main.tf https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/main.tf
$ curl -SLso cloud-config.tpl https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/cloud-config.tpl
```
4) Run `terraform init`
5) Run `terraform apply -var="do_token=$(cat $HOME/digitalocean-access-token)"`
6) View the output for the login command and gateway URL i.e.
Expand Down
2 changes: 1 addition & 1 deletion docs/bootstrap/cloud-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ runcmd:
- systemctl status -l faasd-provider --no-pager
- systemctl status -l faasd --no-pager
- curl -sSLf https://cli.openfaas.com | sh
- sleep 5 && journalctl -u faasd --no-pager
- sleep 5 && journalctl -u faasd --no-pager
8 changes: 7 additions & 1 deletion docs/bootstrap/digitalocean-terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

1) [Sign up to DigitalOcean](https://www.digitalocean.com/?refcode=2962aa9e56a1&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=CopyPaste)
2) [Download Terraform](https://www.terraform.io)
3) Clone this gist using the URL from the address bar
3) Download the [cloud-config.tpl](cloud-config.tpl), [main.tf](main.tf) and [main.tfvars](main.tfvars) files.
Or directly from the terminal using `curl`:
```bash
$ curl -SLso main.tf https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/digitalocean-terraform/main.tf
$ curl -SLso main.tfvars https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/digitalocean-terraform/main.tfvars
$ curl -SLso cloud-config.tpl https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/digitalocean-terraform/cloud-config.tpl
```
4) Run `terraform init`
5) Configure terraform variables as needed by updating the `main.tfvars` file:

Expand Down

0 comments on commit af73f32

Please sign in to comment.