airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata] 04/07: Add docker is running check
Date Wed, 16 Oct 2019 19:44:43 GMT
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 6401c810f13175ab925b4b5bad40d1ac95da78ea
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Thu Aug 8 09:46:41 2019 -0400

    Add docker is running check
    
    Note: commented out since this requires Ansible 2.8 and we're currently
    on 2.3. Once we upgrade to 2.8 we should enable this check.
---
 dev-tools/ansible/roles/django/tasks/main.yml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/dev-tools/ansible/roles/django/tasks/main.yml b/dev-tools/ansible/roles/django/tasks/main.yml
index 85f48cf..811c840 100644
--- a/dev-tools/ansible/roles/django/tasks/main.yml
+++ b/dev-tools/ansible/roles/django/tasks/main.yml
@@ -53,7 +53,21 @@
     force: yes
   run_once: true
 
-# TODO: check if Docker is running (docker_host_info can_talk_to_docker? https://docs.ansible.com/ansible/latest/modules/docker_host_info_module.html#return-values)
+# TODO: check if Docker is running (docker_host_info can_talk_to_docker https://docs.ansible.com/ansible/latest/modules/docker_host_info_module.html#return-values)
+# NOTE: docker_host_info only available from Ansible 2.8
+# - name: check if Docker is running
+#   local_action:
+#     module: docker_host_info
+#   register: docker_result
+#   run_once: true
+#
+# - name: Fail if Docker isn't running
+#   local_action:
+#     module: fail
+#     msg: Docker daemon isn't running or isn't accessible. Start Docker daemon and then
rerun this playbook.
+#   when: not docker_result.can_talk_to_docker
+#   run_once: true
+
 - name: build Docker image for building the JS
   local_action:
     module: docker_image


Mime
View raw message