You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-12Lines changed: 33 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,13 @@
1
1
# Installation
2
2
3
-
## Installation instructions
3
+
## Prerequisites
4
+
5
+
- JDK 1.8
6
+
-[Maven](http://maven.apache.org/) 3.0 and above
7
+
- IvorySQL 5.0
8
+
- Kubernetes 1.23 (Must have default storage class)
4
9
5
-
As an open-source backend project, ivory-cloud requires the local installation of `git`, `jdk`, `maven`, etc., during the development process.
10
+
## Installation instructions
6
11
7
12
Fork the backend repository of the open-source cloud platform to your own GitHub account, then clone it to your local machine, for example:
8
13
@@ -21,30 +26,46 @@ cd ivory-cloud
21
26
## Deployment
22
27
23
28
### Compile and build
29
+
1. Please ensure that all files ending with .sh in the ivory-cloud\cloudnative\src\main\resources\monitor folder and all its subfolders are in UNIX format. If they are not, please run the dos2unix command to convert them to UNIX format.
24
30
25
-
Maven:Maven configuration is required,After configuration, execute the following command:
31
+
2.Maven:Maven configuration is required,After configuration, execute the following command:
26
32
27
33
```
28
34
mvn clean
29
-
mvn install
35
+
mvn package -D maven.test.skip=true
30
36
```
31
-
After the packaging is completed, you can find the `pkg` directory in the root directory of the project. It contains the jar package to be deployed.
37
+
After the packaging is completed, you can find the cloudnative-1.0-SNAPSHOT.jar file at the path ivory-cloud/cloudnative/target.
32
38
### Deploy backend projects
33
-
Install a database such as ivorysql on your server and start it.
34
-
Place the above jar package in your server, then edit [configuration file](./cloudnative/src/main/resources/application-native.yaml)
35
-
Among them, 5432 is the port on which the ivorysql database runs; please modify it according to the actual situation.
39
+
1. Install a database such as ivorysql on your server and start it.
40
+
2. create a directory to store the application files. For example:
41
+
```
42
+
mkdir -p /home/ivory
43
+
```
44
+
4. upload JAR file (cloudnative-1.0-SNAPSHOT.jar) to your server.
45
+
5. create a directory(name must be: config) under /home/ivory to store the application files. For example:
46
+
```
47
+
mkdir -p /home/ivory/config
48
+
```
49
+
6. Please upload below files from the source code path ivory-cloud/cloudnative/src/main/resources to the /home/ivory/config path on your server.
50
+
```
51
+
application.yaml
52
+
application-native.yaml
53
+
spring_pro_logback.xml
54
+
```
55
+
8. then edit /home/ivory/config/application-native.yaml
56
+
Please modify url, username, password parts according to your actual situation.
36
57
```
37
58
datasource:
38
59
druid:
39
60
db-type: com.alibaba.druid.pool.DruidDataSource
40
61
driver-class-name: org.postgresql.Driver
41
-
url: jdbc:postgresql://127.0.0.1:5432/ivory
62
+
url: jdbc:postgresql://127.0.0.1:5432/ivorysql
42
63
username: ivorysql
43
64
password: "ivory@123"
44
65
```
45
-
In the directory where the jar package is located, execute:
0 commit comments