-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
39 lines (37 loc) · 2.03 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
tasks:
# - init: | # runs during prebuild
# sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
# curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
# sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
# sudo apt-get update && sudo apt-get install terraform
- command: | # Seems like gitpod has a bug so we just install here
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install -y google-cloud-sdk
gcloud auth activate-service-account [email protected] --key-file="credentials.json"
gcloud config set project dspj-315716
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform
sudo apt-get update
sudo apt-get install python3
cd infrastructure && terraform init
# Function Development
- command: |
cd /workspace
curl -sSL https://cli.openfaas.com | sudo sh
cd /workspace/syncmesh/functions
faas template pull && faas-cli template store pull golang-http && faas-cli template store pull golang-middleware
faas-cli build -f syncmesh-fn-local.yml
export OPENFAAS_URL=http://35.193.158.133:8080
sudo echo $DEFAULT_PASSWORD | faas-cli login -s
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
# ports:
# - port: 3000
# onOpen: open-preview
vscode:
extensions:
- ms-toolsai.jupyter
- ms-python.python
- golang.go