The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

43 wiersze
1.9 KiB

  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. # Launch a new bubble from a sage node
  7. #
  8. # Usage: new_bubble.sh config-file
  9. #
  10. # config-file : a JSON file with parameters to indicate how the bubble should be created
  11. # see models/include/new_bubble.json for all parameters
  12. #
  13. # Minimally required JSON properties:
  14. # sageFqdn : fully-qualified domain name (FQDN) of a bubble sage. This must be a valid sage node.
  15. # network : network name of the bubble to create. This network must *not* already exist.
  16. #
  17. # For example:
  18. # {
  19. # "sageFqdn": "bubble-sage.example.com",
  20. # "network": "mynetwork"
  21. # }
  22. #
  23. # Environment variables
  24. #
  25. # BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
  26. # BUBBLE_USER : account to use. Default is root
  27. # BUBBLE_PASS : password for account. Default is root
  28. # BUBBLE_ENV : env file to load. Default is ~/.bubble.env or /home/bubble/current/bubble.env (whichever is found first)
  29. # DEBUG_PORT : if set, this is the port number the client will wait for a debugger to attach before starting
  30. # BUBBLE_INCLUDE : when using the sync-model and run-script commands, this is the directory to find included files
  31. # For sync-model and migrate-model, the default is the current directory.
  32. # For run-script, the default is a directory named "tests" within the current directory
  33. # BUBBLE_SCRIPTS : location of run.sh script. Default is to assume it is in the same directory containing this script
  34. #
  35. SCRIPT="${0}"
  36. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  37. . ${SCRIPT_DIR}/bubble_common
  38. CONFIG_JSON="${1:?no config json provided}"
  39. shift
  40. cat ${CONFIG_JSON} | exec ${SCRIPT_DIR}/bscript ${SCRIPT_DIR}/../scripts/new_bubble.json ${@} --call-include --vars -