-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustfile
73 lines (59 loc) · 2.46 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# ======================================================================================================================
# Build
test:
mvn clean install
integration:
mvn clean install -P integration
install:
mvn clean install -DskipTests
build_docker:
mvn clean install -P release -DskipTests
mvn spring-boot:build-image -P release -DskipTests -f backend/servers/explorer-batch/pom.xml
mvn spring-boot:build-image -P release -DskipTests -f backend/servers/explorer-api/pom.xml
mvn spring-boot:build-image -P release -DskipTests -f backend/servers/explorer-web/pom.xml
# ======================================================================================================================
# Run
run_api:
mvn spring-boot:run -Dspring-boot.run.profiles=dev -f backend/servers/explorer-api/pom.xml
run_web_backend:
mvn spring-boot:run -Dspring-boot.run.profiles=dev -f backend/servers/explorer-web/pom.xml
run_web_frontend:
npm run --prefix backend/servers/explorer-web build && npm run --prefix backend/servers/explorer-web watch
run_ngrok:
ngrok http 8080
# ======================================================================================================================
# Release
start_release:
git remote set-url origin [email protected]:royllo/explorer.git
git checkout development
git pull
git status
mvn gitflow:release-start
finish_release:
mvn gitflow:release-finish -DskipTests
# ======================================================================================================================
# Docker
view_batch_server_logs:
docker-compose logs -f royllo-explorer-batch-server
remove_docker_content:
docker stop $(docker ps -qa)
docker rm $(docker ps -qa)
docker rmi -f $(docker images -qa)
docker volume rm $(docker volume ls -q)
docker network rm $(docker network ls -q)
docker system prune -a
# ======================================================================================================================
# Utils
download_dependencies:
mvn dependency:sources dependency:resolve -Dclassifier=javadoc
update_ubuntu:
sudo apt-get update
sudo apt-get -y upgrade
create_review_list:
rm -f review_list.txt
find . -name "*.java" > review_list.txt
find . -name "*.properties" >> review_list.txt
find . -name "*.html" >> review_list.txt
sed -i '/package-info.java/d' review_list.txt
sed -i '/target/d' review_list.txt
sed -i '/node/d' review_list.txt