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.
 
 
 
 

40 satır
1.8 KiB

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