ApplicationService is a Springboot Java back-end implementation based on the Springboot Java back-end, designed to provide stress testing functions for the system.
- Clone the repository:
git clone https://github.com/HIT-ICES/ApplicationService.git
- Navigate to the project directory:
cd applicationservice
- Build the project using Maven:
mvn clean install
- Build the Docker image:
docker build -t <you_image_url> .
- Deploying to Kubernetes: Make sure you have a Kubernetes cluster set up and kubectl configured to communicate with the cluster. Modify the image, namespace and other information in the deployment.yaml configuration file.
kubectl apply -f deployment.yaml
server:
port: 8848
spring:
application:
name: PressureMeasureService
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://hostname/pressure_measure?serverTimezone=GMT%2B8&useSSL=true
username: your database username
password: your database password
mybatis:
mapper-locations: classpath:mapper/*Mapper.xml
type-aliases-package: com.hitices.pressure.repository
configuration:
map-underscore-to-camel-case: true
- Prepare image and run
docker run -p 14448:3306 --name applicationData \
-v /home/zhaozhenxiang/mysql/conf:/etc/mysql \
-v /home/zhaozhenxiang/mysql/logs:/var/log/mysql \
-v /home/zhaozhenxiang/mysql/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=root \
-d mysql:5.5.40
- Execute init.sql to initialize database