build.sh 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #!/bin/bash
  2. # @Contact : liuyuqi.gov@msn.cn
  3. # @Time : 2023/03/19 19:11:52
  4. # @License : (C)Copyright 2022 liuyuqi.
  5. # @Desc : build apk
  6. ###############################################################################
  7. source /etc/profile
  8. export JAVA_HOME=/usr/local/openjdk-11
  9. # export JAVA_HOME=/root/.sdkman/candidates/java/21.0.1-ms/
  10. # source "$HOME/.sdkman/bin/sdkman-init.sh"
  11. # sdk list java
  12. # sdk install java 8.0.392-librca
  13. # sdk install java 11.0.24-librca
  14. # sdk default java 8.0.392-librca
  15. # docker
  16. # echo $DOCKER_HOST
  17. # unset DOCKER_HOST
  18. # sudo usermod -aG docker $USER
  19. # set gopath
  20. # export PATH=$PATH:$GOPATH/bin
  21. # mkdir /workspace/RStudio-container
  22. export PATH=$PATH:$(go env GOPATH)/bin
  23. # nodejs
  24. # rstudio
  25. # -e PASSWORD=rstudio
  26. # docker run --rm -ti -p 8787:8787 -e DISABLE_AUTH=true -e ROOT=true -v /workspace/aa:/workspace/aa rocker/rstudio:4.4.1
  27. # docker run --rm -ti rocker/tidyverse R
  28. # flutter
  29. export PUB_HOSTED_URL=https://pub.flutter-io.cn
  30. export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
  31. # cd /opt/flutter
  32. # git checkout 2.0.5
  33. # git checkout 3.7.9
  34. # git checkout 3.13.8
  35. # flutter doctor
  36. # cd /workspace/flutter_you
  37. # flutter build apk
  38. # flutter build apk --debug
  39. # flutter pub get
  40. # android
  41. # cd /workspace/packagehunter
  42. # chmod +x gradlew
  43. # ./gradlew assembleDebug
  44. # ./gradlew cleanBuildCache
  45. # aapt package -f \
  46. # -M AndroidManifest.xml \
  47. # -I "$ANDROID_HOME/platforms/android-N/android.jar" \
  48. # -S res/ \
  49. # -J gen/ \
  50. # -m \
  51. # java
  52. # mvn clean package -Dmaven.test.skip=true
  53. # node
  54. # cd
  55. # yarn && yarn build
  56. # yarn && yarn dev
  57. # go
  58. # cd
  59. # go build
  60. # python
  61. # pip install -r requirements.txt
  62. # python main.py
  63. # docker
  64. cd /workspace/blog
  65. docker compose -f "docker-compose.debug.yml" down
  66. docker compose -f "docker-compose.debug.yml" up -d --build
  67. docker compose -f "docker-compose.debug.yml" up -d --build node_container
  68. # docker exec -it java_container /bin/sh
  69. docker exec -it node_container /bin/bash
  70. cd /app/qihang.ecom.erp/framework
  71. mvn package && mvn install
  72. cd /app/qihang.ecom.erp/ecerp-api
  73. mvn spring-boot:run