Aucune description

ysyyhhh b7d07df223 v init.sql il y a 2 ans
FuzzScene c00d8b8fd8 hide db port il y a 2 ans
client @ 5d72b74d4e c00d8b8fd8 hide db port il y a 2 ans
server @ 808af53440 c00d8b8fd8 hide db port il y a 2 ans
.gitignore e9ace1a6ae init il y a 2 ans
.gitmodules e9ace1a6ae init il y a 2 ans
README-DEPLOY.md c00d8b8fd8 hide db port il y a 2 ans
README.md e9ace1a6ae init il y a 2 ans
deployments.yaml e9ace1a6ae init il y a 2 ans
docker-compose.yml b7d07df223 v init.sql il y a 2 ans
k8s.sh e9ace1a6ae init il y a 2 ans
mdeployments.yaml e9ace1a6ae init il y a 2 ans

README-DEPLOY.md

数据库初始化

mysql账号初始化

create database test;
CREATE USER 'test'@'%' IDENTIFIED BY 'test';
grant all privileges on test.* to 'test'@'%';
use test;
source mysql/springboot.sql;

表初始化

docker-compose 启动

k8s 启动

  1. 需要运行 minikube mount ./mysql/data:/tmp/fuzzs-scene-sim-test/mysql/data 将mysql的数据挂载到minikube中

minikube mount E:\project\mooctest\vehicle-crowdsourcing\FuzzsSceneSimTest\mysql:/home/fuzzs-scene-sim-test/mysql

minikube start --mount-string E:\project\mooctest\vehicle-crowdsourcing\FuzzsSceneSimTest\mysql:/home/fuzzs-scene-sim-test/mysql --mount

  1. kubeclt apply -f mdeployments.yaml