1
0

build.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. # apollo config db info
  3. apollo_config_db_url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8
  4. apollo_config_db_username=root
  5. apollo_config_db_password=
  6. # apollo portal db info
  7. apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8
  8. apollo_portal_db_username=root
  9. apollo_portal_db_password=
  10. # meta server url
  11. dev_meta=http://localhost:8080
  12. fat_meta=http://localhost:8080
  13. uat_meta=http://localhost:8080
  14. pro_meta=http://localhost:8080
  15. META_SERVERS_OPTS="-Ddev_meta=$dev_meta -Dfat_meta=$fat_meta -Duat_meta=$uat_meta -Dpro_meta=$pro_meta"
  16. # =============== Please do not modify the following content =============== #
  17. cd ..
  18. # package config-service and admin-service
  19. echo "==== starting to build config-service and admin-service ===="
  20. mvn clean package -DskipTests -pl apollo-configservice,apollo-adminservice -am -Pgithub -Dapollo_profile=dev -Dspring_datasource_url=$apollo_config_db_url -Dspring_datasource_username=$apollo_config_db_username -Dspring_datasource_password=$apollo_config_db_password
  21. echo "==== building config-service and admin-service finished ===="
  22. echo "==== starting to build portal ===="
  23. mvn clean package -DskipTests -pl apollo-portal -am -Pgithub -Dapollo_profile=dev -Dspring_datasource_url=$apollo_portal_db_url -Dspring_datasource_username=$apollo_portal_db_username -Dspring_datasource_password=$apollo_portal_db_password $META_SERVERS_OPTS
  24. echo "==== building portal finished ===="
  25. echo "==== starting to build client ===="
  26. mvn clean install -DskipTests -pl apollo-client -am -Pgithub $META_SERVERS_OPTS
  27. echo "==== building client finished ===="