summaryrefslogtreecommitdiff
path: root/templates/ci
diff options
context:
space:
mode:
authorckonstanski <ckonstanski@pippiandcarlos.com>2017-12-08 17:15:09 +0000
committerckonstanski <ckonstanski@pippiandcarlos.com>2017-12-08 17:15:09 +0000
commit37de0831718e5a4e54210462f501c97394803008 (patch)
treea6e39938d3572f269378e109e0f1a0225fa1060c /templates/ci
parent621a5c280a71fe3ede8742b9b289ee0e3d2a9875 (diff)
autocommit Fri Dec 8 17:15:09 UTC 2017
Diffstat (limited to 'templates/ci')
-rwxr-xr-xtemplates/ci/openbook.gentoo8
-rwxr-xr-xtemplates/ci/openbook.redhat3
-rwxr-xr-xtemplates/ci/openbook.ubuntu3
-rwxr-xr-xtemplates/ci/openbookctl20
4 files changed, 26 insertions, 8 deletions
diff --git a/templates/ci/openbook.gentoo b/templates/ci/openbook.gentoo
index 430d70d..30f65f8 100755
--- a/templates/ci/openbook.gentoo
+++ b/templates/ci/openbook.gentoo
@@ -1,6 +1,6 @@
#!/sbin/openrc-run
-extra_commands=test_database
+extra_commands="debug test_database"
depend() {
need docker
@@ -12,6 +12,12 @@ start() {
eend $?
}
+debug() {
+ ebegin "Starting Openbook in debug mode"
+ /opt/openbook/openbookctl debug
+ eend $?
+}
+
stop() {
ebegin "Stopping Openbook"
/opt/openbook/openbookctl stop
diff --git a/templates/ci/openbook.redhat b/templates/ci/openbook.redhat
index c4d3040..a240b79 100755
--- a/templates/ci/openbook.redhat
+++ b/templates/ci/openbook.redhat
@@ -17,6 +17,9 @@ case $1 in
start*)
/opt/openbook/openbookctl start
;;
+ debug*)
+ /opt/openbook/openbookctl debug
+ ;;
stop*)
/opt/openbook/openbookctl stop
;;
diff --git a/templates/ci/openbook.ubuntu b/templates/ci/openbook.ubuntu
index 02900fa..0689872 100755
--- a/templates/ci/openbook.ubuntu
+++ b/templates/ci/openbook.ubuntu
@@ -13,6 +13,9 @@ case $1 in
start*)
/opt/openbook/openbookctl start
;;
+ debug*)
+ /opt/openbook/openbookctl debug
+ ;;
stop*)
/opt/openbook/openbookctl stop
;;
diff --git a/templates/ci/openbookctl b/templates/ci/openbookctl
index 0563a16..b59d413 100755
--- a/templates/ci/openbookctl
+++ b/templates/ci/openbookctl
@@ -38,25 +38,25 @@ do_start() {
ensure_openbook_databases_created
{% endif %}
{% if "True" == openbook_install_job_scheduler_server|string() %}
- /opt/openbook/job_scheduler_server/run.sh
+ /opt/openbook/job_scheduler_server/run.sh ${@}
{% endif %}
{% if "True" == openbook_install_workflow_server|string() %}
- /opt/openbook/workflow_server/run.sh
+ /opt/openbook/workflow_server/run.sh ${@}
{% endif %}
{% if "True" == openbook_install_admin_api_server|string() %}
- /opt/openbook/admin_api_server/run.sh
+ /opt/openbook/admin_api_server/run.sh ${@}
{% endif %}
{% if "True" == openbook_install_customer_api_server|string() %}
- /opt/openbook/customer_api_server/run.sh
+ /opt/openbook/customer_api_server/run.sh ${@}
{% endif %}
{% if "True" == openbook_install_admin_web_ui|string() %}
- /opt/openbook/admin_web_ui/run.sh
+ /opt/openbook/admin_web_ui/run.sh ${@}
{% endif %}
{% if "True" == openbook_install_customer_web_ui|string() %}
- /opt/openbook/customer_web_ui/run.sh
+ /opt/openbook/customer_web_ui/run.sh ${@}
{% endif %}
echo
- echo "Openbook started. All components may not be fully initialized and available."
+ echo "Openbook started."
}
do_stop() {
@@ -82,11 +82,14 @@ do_stop() {
docker stop database
{% endif %}
docker container prune -f
+ echo
+ echo "Openbook stopped."
}
do_help() {
echo "Usage:"
echo " $0 start"
+ echo " $0 debug"
echo " $0 stop"
{% if "True" == openbook_install_database|string() %}
echo " $0 test_database"
@@ -97,6 +100,9 @@ case $1 in
start*)
do_start
;;
+ debug*)
+ do_start debug
+ ;;
stop*)
do_stop
;;