The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

bscript 1.7 KiB

4 yıl önce
4 yıl önce
Add needed stuff and fixes for bubble restore process (#20) Merge branch 'master' of git.bubblev.org:bubblev/bubble into kris/add_support_for_restore_ui Rename isWaitingRestoring Use == instead of equals on enums Use ctime instead of creationTime in backup objects Fix bin scripts after CR Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-server/src/main/resources/message_templates/en_US/server/post_auth/ResourceMessages.properties # bubble-web Add missing label Update web Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-server/src/main/java/bubble/service/cloud/StandardNetworkService.java # bubble-server/src/main/resources/ansible/roles/algo/tasks/main.yml # bubble-web Update web Use better check if restore is started Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-server/src/main/java/bubble/service/cloud/StandardNetworkService.java Init sage node on init self node if needed Update log message on post copy entities Update web Remove another word from host prefixes Mark restoring node as ready Add ctime to ticks-stats returned to FE Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-web Try resetting progress meter on each new node Add auth/ready ep in skip auth for restore node Add more logs of api exception Update web Remove some bad host prefixes Update web Deploy web if it is included in jar Merge branch 'master' into kris/add_support_for_restore_ui Add support for showing latest backup on FE Merge branch 'master' into kris/add_support_for_restore_ui Update web Use proper flag for waiting restoring bubble Use separate bash to avoid continuing within venv Start restore monitor on instance when needed Save iptables in packer instance Merge branch 'master' into kris/add_support_for_restore_ui Save iptables before corresponding service restart Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-server/src/main/java/bubble/server/BubbleConfiguration.java # bubble-web Fix iptables entries again Echo error to stderr Fix iptable rules creation Add back needed tags in algo related ansible tasks Update web Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-web Add new labels and update web Use network state as restore mode tag Create full jar with web on full patching Update first_time_marker file with correct value Run first time listener for restoring instances also Merge branch 'master' into kris/add_support_for_restore_ui # Conflicts: # bubble-web Add new lib to utils pom Co-authored-by: Jonathan Cobb <jonathan@kyuss.org> Co-authored-by: Kristijan Mitrovic <kmitrovic@itekako.com> Reviewed-on: https://git.bubblev.org/bubblev/bubble/pulls/20
4 yıl önce
4 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. #
  6. # Run a local JSON API script against a remote API server
  7. #
  8. # Usage:
  9. #
  10. # bscript script-file [options] [args]
  11. #
  12. # script-file : a JSON API script
  13. # options : script options, see bubble.main.BubbleScriptOptions (and parent classes) for more info
  14. # args : a JSON object representing arguments to the script.
  15. #
  16. # Environment variables
  17. #
  18. # BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
  19. # BUBBLE_USER : account to use. Default is root
  20. # BUBBLE_PASS : password for account. Default is root
  21. # BUBBLE_INCLUDE : path to look for JSON include files. default value is to assume we are being run from
  22. # bubble repo, bubble-models repo, or bubble-client and use include files from minimal model.
  23. #
  24. SCRIPT="${0}"
  25. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  26. . ${SCRIPT_DIR}/bubble_common
  27. BUBBLE_SERVER=$(cd $(dirname ${0})/.. && pwd)
  28. CANDIDATE_INCLUDES="
  29. ${BUBBLE_SERVER}/src/test/resources/models/minimal/tests
  30. ${BUBBLE_SERVER}/resources/models/minimal/tests
  31. ${SCRIPT_DIR}/models/minimal/tests
  32. "
  33. if [[ -z "${BUBBLE_INCLUDE}" ]] ; then
  34. for include in ${CANDIDATE_INCLUDES} ; do
  35. if [[ -d ${include} ]] ; then
  36. BUBBLE_INCLUDE="$(cd ${include} && pwd)"
  37. break
  38. fi
  39. done
  40. fi
  41. if [[ ! -z "${BUBBLE_INCLUDE}" ]] ; then
  42. BUBBLE_INCLUDE="-I ${BUBBLE_INCLUDE}"
  43. fi
  44. SCRIPT=${1:?no JSON script provided}
  45. shift
  46. ARGS=$(quote_args "$@")
  47. exec ${SCRIPT_DIR}/bubble script -H ${BUBBLE_INCLUDE} ${ARGS} ${SCRIPT}