File tree Expand file tree Collapse file tree 4 files changed +38
-19
lines changed Expand file tree Collapse file tree 4 files changed +38
-19
lines changed Original file line number Diff line number Diff line change 2
2
file : .gitpod.Dockerfile
3
3
4
4
tasks :
5
- # ------------------------------------
6
- # SETUP CQLSH
7
- # ------------------------------------
5
+ # --------------------------------------
6
+ # SETUP CQLSH and Create DB Workshop
7
+ # --------------------------------------
8
8
- name : setup-cqlsh
9
9
env :
10
10
CQLENG_ALLOW_SCHEMA_MANAGEMENT : 1
@@ -65,7 +65,6 @@ github:
65
65
66
66
vscode :
67
67
extensions :
68
- - cool2k.vscode-lombok
69
- - datastax.astra-for-vs-code
68
+ - GabrielBB.vscode-lombok
70
69
- vscjava.vscode-java-pack
71
70
- Pivotal.vscode-boot-dev-pack
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -a
3
+ source /workspace/workshop-spring-reactive/.env
4
+ set +a
5
+ /workspace/workshop-spring-reactive/tools/cqlsh-astra/bin/cqlsh -u token -p ${ASTRA_DB_ADMIN_TOKEN} -b /home/gitpod/.astra/scb_${ASTRA_DB_ID} _${ASTRA_DB_REGION} .zip
Original file line number Diff line number Diff line change 20
20
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
21
21
22
22
<springfox .version>3.0.0</springfox .version>
23
- <astra-sdk .version>0.2.2 </astra-sdk .version>
23
+ <astra-sdk .version>0.3.0 </astra-sdk .version>
24
24
<slf4j .version>1.7.30</slf4j .version>
25
- <cassandra-java-driver .version>4.13 .0</cassandra-java-driver .version>
25
+ <cassandra-java-driver .version>4.14 .0</cassandra-java-driver .version>
26
26
<maven .test.skip>false</maven .test.skip>
27
27
</properties >
28
28
29
29
<dependencies >
30
30
31
- <!-- Reactive REST API -->
32
- <dependency >
33
- <groupId >org.springframework.boot</groupId >
34
- <artifactId >spring-boot-starter-webflux</artifactId >
35
- </dependency >
36
-
37
31
<!-- Api documentation -->
38
32
<dependency >
39
33
<groupId >io.springfox</groupId >
40
34
<artifactId >springfox-boot-starter</artifactId >
41
35
<version >${springfox.version} </version >
42
36
</dependency >
37
+ <!-- Reactive REST API -->
38
+ <dependency >
39
+ <groupId >org.springframework.boot</groupId >
40
+ <artifactId >spring-boot-starter-webflux</artifactId >
41
+ </dependency >
43
42
44
43
<!-- Cassandra -->
45
44
<dependency >
Original file line number Diff line number Diff line change 1
1
server :
2
2
port : 9966
3
+
4
+ spring :
5
+ application :
6
+ name : petclinic
7
+ data :
8
+ cassandra :
9
+ schema-action : create-if-not-exists
3
10
4
11
astra :
5
- application-token : <CHANGE_ME>
6
- database-id : <CHANGE_ME>
7
- database-region : <CHANGE_ME>
8
- keyspace : spring_petclinic
9
- metrics :
10
- enabled : false
12
+ api :
13
+ application-token : ${ASTRA_DB_ADMIN_TOKEN}
14
+ database-id : ${ASTRA_DB_ID}
15
+ database-region : ${ASTRA_DB_REGION}
16
+ cql :
17
+ enabled : true
18
+ download-scb :
19
+ enabled : true
20
+ driver-config :
21
+ basic :
22
+ session-keyspace : spring_petclinic
23
+ advanced :
24
+ connection :
25
+ init-query-timeout : 10s
26
+
You can’t perform that action at this time.
0 commit comments