When the repository code is updated, the script will build and run the EventMesh Dashboard based on the latest version of the code.
cd ~/service git clone https://github.com/apache/eventmesh-dashboard.git cd eventmesh-dashboard/deployment/
Edit credentials:
cp .env.example .env vim .env
Add task to crontab:
crontab -e
0 * * * * bash ~/service/eventmesh-dashboard/deployment/auto-deploy-eventmesh-dashboard.sh
cd eventmesh-dashboard ./mvnw clean package
TODO download mysql-connector-j manually
java -DDB_ADDRESS=$DB_ADDRESS -DDB_USERNAME=$DB_USERNAME -DDB_PASSWORD=$DB_PASSWORD -jar eventmesh-dashboard-console/target/eventmesh-dashboard-console-0.0.1-SNAPSHOT.jar
To be updated
cd eventmesh-dashboard ./gradlew clean bootJar docker build -t yourname/eventmesh-dashboard -f docker/Dockerfile .
docker run -d --name eventmesh-dashboard -p 8080:8080 yourname/eventmesh-dashboard