Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Prerequisites

- JDK 1.8
- JDK 1.8
- [Maven](http://maven.apache.org/) 3.0 and above
- IvorySQL 5.6
- IvorySQL 6.0
- Kubernetes 1.23 (Must have default storage class)

## Installation instructions
Expand All @@ -22,38 +22,47 @@ Enter the project root directory:
cd ivory-cloud
```


## Deployment

### Compile and build
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.

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.
2. Maven:Maven configuration is required,After configuration, execute the following command:

```
mvn clean
mvn package -D maven.test.skip=true
```

After the packaging is completed, you can find the cloudnative-1.0-SNAPSHOT.jar file at the path ivory-cloud/cloudnative/target.
### Deploy backend projects

### Deploy backend projects

1. Install a database such as ivorysql on your server and start it.
2. create a directory to store the application files. For example:

```
mkdir -p /home/ivory
```

4. upload JAR file (cloudnative-1.0-SNAPSHOT.jar) to your server.
5. create a directory(name must be: config) under /home/ivory to store the application files. For example:

```
mkdir -p /home/ivory/config
```

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.

```
application.yaml
application-native.yaml
spring_pro_logback.xml
```

7. then edit /home/ivory/config/application-native.yaml
Please modify url, username, password parts according to your actual situation.
Please modify url, username, password parts according to your actual situation.

```
datasource:
druid:
Expand All @@ -63,6 +72,7 @@ datasource:
username: ivorysql
password: "ivory@123"
```

8. Launch ivory-cloud app
cd /home/ivory/

Expand Down
4 changes: 2 additions & 2 deletions cloudnative/src/main/resources/application-native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ common:
linuxk8sConfigPath: /root/.kube/config
# ivoryPgKernelVersion: 15 #数据库内核版本
# ivoryVersion: 2.3 #ivory版本
ivoryPgKernelVersion: 18 #数据库内核版本
ivoryVersion: 5.6 #ivory版本
ivoryPgKernelVersion: 19 #数据库内核版本
ivoryVersion: 6.0 #ivory版本
logging:
level:
org:
Expand Down
4 changes: 4 additions & 0 deletions ivory-cloud_release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
ivory-cloud RELEASE NOTES
******************v6.0******************
1.IvorySqL6.0适配


******************v5.6******************
1.IvorySqL 5.6适配

Expand Down
Loading