-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
76 lines (63 loc) · 1.92 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
image:
file: .gitpod.Dockerfile
tasks:
- name: Setup & Services
init: |
go mod download
command: |
# Longer git credential cache
git config --global credential.helper 'cache --timeout=36000'
# Azure credentials
if [ -n "${ZED_WEBHOOK_INGESTOR_AZURE_STATE}" ]; then
echo "$ZED_WEBHOOK_INGESTOR_AZURE_STATE" | base64 -d - | tar xjf - -P
echo "$ZED_WEBHOOK_INGESTOR_CONTAINER_STATE" | base64 -d - | tar xjf - -P
echo "Restored previous Azure & Kubernetes & Docker credentials"
fi
# RabbitMQ
pushd dev.env/webhook-ingestor
docker-compose up -d
popd
gp sync-done setup
exit
- name: Tailscale daemon
command: |
if [ -n "${TAILSCALE_STATE_WEBHOOK_INGESTOR}" ]; then
sudo mkdir -p /var/lib/tailscale
echo "${TAILSCALE_STATE_WEBHOOK_INGESTOR}" | sudo tee /var/lib/tailscale/tailscaled.state > /dev/null
fi
sudo tailscaled
- name: Tailscale
command: |
if [ -n "${TAILSCALE_STATE_WEBHOOK_INGESTOR}" ]; then
sudo -E tailscale up
else
sudo -E tailscale up --hostname "gitpod-webhook-ingestor"
gp env TAILSCALE_STATE_WEBHOOK_INGESTOR="$(sudo cat /var/lib/tailscale/tailscaled.state)"
fi
exit
- name: Warm-up & Reminder
command: |
sudo apt-get update
clear
echo
echo
echo
echo "- Please install the Static Checking tool which is at the bottom of VSCode"
echo "- Browser: Disable the Back button effect"
ports:
- name: SEQ UI & Ingestion
port: 5341
- name: Webhook Ingestor
port: 8080
visibility: public
- name: Webhook Ingestor Admin
port: 8081
vscode:
extensions:
- golang.go
- akosyakov.gitpod-monitor
- ms-kubernetes-tools.vscode-kubernetes-tools
- mhutchie.git-graph
- ms-azuretools.vscode-docker
#
# See https://www.gitpod.io/docs/references/gitpod-yml for reference