-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod-yb.yml
93 lines (91 loc) · 2.31 KB
/
.gitpod-yb.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
image: gitpod/workspace-yugabytedb
tasks:
- name: 1a-ybdb
env:
HOST_LB: "127.0.0.1"
HOST_LB2: "127.0.0.2"
HOST_LB3: "127.0.0.3"
command: |
mkdir -p ${GITPOD_REPO_ROOT}/ybdb
yugabyted start --base_dir=${GITPOD_REPO_ROOT}/ybdb/ybd1 --advertise_address=$HOST_LB --cloud_location=ybcloud.ap-south-1.ap-south-1a --fault_tolerance=zone
yugabyted start --base_dir=${GITPOD_REPO_ROOT}/ybdb/ybd2 --advertise_address=$HOST_LB2 --join=$HOST_LB --cloud_location=ybcloud.ap-south-1.ap-south-1b --fault_tolerance=zone
yugabyted start --base_dir=${GITPOD_REPO_ROOT}/ybdb/ybd3 --advertise_address=$HOST_LB3 --join=$HOST_LB --cloud_location=ybcloud.ap-south-1.ap-south-1c --fault_tolerance=zone
yugabyted configure --base_dir=${GITPOD_REPO_ROOT}/ybdb/ybd1 --fault_tolerance=zone
- name: 1b-ysqlsh
command: |
gp ports await 5433 && sleep 5
ysqlsh
- name: 2a-install-jvm
env:
JAVA_VERSION: 17.0.8-librca
init: |
echo y | sdk install java $JAVA_VERSION || true
gp sync-done jvm-17
- name: 2b-spring-boot
env:
SPRING_PROFILES_ACTIVE: ysql
before:
cd springboot
init: |
gp sync-await jvm-17
gradle build -x test
command: |
gp ports await 5433
gradle bootRun
- name: 2c-quarkus
env:
QUARKUS_PROFILE: ysql
before:
cd quarkus
init: |
gp sync-await jvm-17
gradle quarkusBuild -x test
command: |
gp ports await 5433
gradle quarkusDev
- name: 2d-micronaut
env:
MICRONAUT_ENVIRONMENTS: ysql
before:
cd micronaut
init: |
gp sync-await jvm-17
gradle build -x test
command: |
gp await-port 5433
gradle run
# exposed ports
ports:
- port: 8080
name: spring-boot
onOpen: notify
- port: 8085
name: quarkus
onOpen: notify
- port: 8090
name: micronaut
onOpen: notify
- port: 7000
name: yb-master-web
onOpen: ignore
- port: 9000
name: yb-tserver-web
onOpen: ignore
- port: 7100
name: yb-master-rpc
onOpen: ignore
- port: 9100
name: yb-tserver-rpc
onOpen: ignore
- port: 5433
name: ysql
onOpen: ignore
- port: 13000
name: ysql-api
onOpen: ignore
- port: 9042
name: ycql
onOpen: ignore
- port: 12000
name: ycql-api
onOpen: ignore