-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
123 lines (120 loc) · 3.46 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
image: gitpod/workspace-yugabytedb-preview
tasks:
- name: 1a-yb-ep
env:
DATA_PATH: ybdb
command: |
mkdir -p ${GITPOD_REPO_ROOT}/${DATA_PATH}
yugabyted start --base_dir=${GITPOD_REPO_ROOT}/${DATA_PATH} --advertise_address=$HOST --cloud_location=ybcloud.pandora.az1 --background=true
- name: 1aa-ysql-shell
before: |
gp ports await 5433 && sleep 2
ysqlsh -h $(hostname -i) -f ./dsql/init-ysql.sql
gp sync-done ysql-init
command: |
ysqlsh -h $(hostname -i)
- name: 1ab-ycql-shell
before: |
gp ports await 9042
ycqlsh $(hostname -i) -e "CREATE KEYSPACE ALERTS"
command: |
ycqlsh $(hostname -i) -k alerts
- name: 1b-import-deps
env:
KAFKA_VERSION: "3.5.1"
JAVA_VERSION: "17.0.8"
before: |
mkdir -p ${GITPOD_REPO_ROOT}/kafka
curl -sSLo ./kafka.tar.gz https://dlcdn.apache.org/kafka/${KAFKA_VERSION}/kafka_2.13-${KAFKA_VERSION}.tgz
tar -xvf kafka.tar.gz -C ${GITPOD_REPO_ROOT}/kafka --strip-components=1
chmod +x ${GITPOD_REPO_ROOT}/kafka/bin/*
rm ./kafka.tar.gz
gp sync-done import-deps-mb
echo y | sdk install java ${JAVA_VERSION}-librca || true
gp sync-done import-deps-jr
exit
- name: 1ba-zookeeper-ep
command: |
gp sync-await import-deps-mb
${GITPOD_REPO_ROOT}/kafka/bin/zookeeper-server-start.sh ${GITPOD_REPO_ROOT}/kafka/config/zookeeper.properties
- name: 1bb-kafka-ep
command: |
gp ports await 2181
${GITPOD_REPO_ROOT}/kafka/bin/kafka-server-start.sh ${GITPOD_REPO_ROOT}/kafka/config/server.properties
- name: 2aa-supplier
before: |
cd flightschedule
gp sync-await import-deps-jr
mvn package -DskipTests
command: |
gp sync-await ysql-init && gp ports await 9092
export YB_STREAM_ID=$(yb-admin -master_addresses $HOST:7100 create_change_data_stream ysql.yugabyte | awk '{print $4};{$1=$1}')
java -jar target/*.jar
- name: 2ab-processor
before: |
cd flightops
gp sync-await import-deps-jr
mvn package -DskipTests
command: |
gp ports await 9092
java -jar target/*.jar
- name: 2ac-consumer
before: |
cd flightwatch
gp sync-await import-deps-jr
mvn package -DskipTests
command: |
gp ports await 9092
java -jar target/*.jar
- name: cdc-stream
env:
SCRIPT_PATH: scripts
before: |
sudo apt-get install pv -y
curl -ssLo ${GITPOD_REPO_ROOT}/${SCRIPT_PATH}/pscript https://raw.githubusercontent.com/paxtonhare/demo-magic/master/demo-magic.sh
chmod +x ${GITPOD_REPO_ROOT}/${SCRIPT_PATH}/pscript
chmod +x ${GITPOD_REPO_ROOT}/${SCRIPT_PATH}/prompt.sh
cd ${GITPOD_REPO_ROOT}/${SCRIPT_PATH}
command: |
gp ports await 8070
bash prompt.sh
ports:
- port: 7000
name: yb-master-web
onOpen: ignore
- port: 9000
name: yb-tserver-web
onOpen: ignore
- port: 8070
name: sb-supplier
onOpen: ignore
- port: 8080
name: sb-processor
onOpen: ignore
- port: 8090
name: sb-consumer
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
- port: 2181
name: zookeeper
onOpen: ignore
- port: 9092
name: kafka
onOpen: ignore