From 8ea6c716eaef621dfa3503ce7dd9356cebd0f3a8 Mon Sep 17 00:00:00 2001 From: Przemyslaw Rzad Date: Tue, 16 Jul 2019 14:58:26 +0200 Subject: [PATCH] Building containers in deployment (#149) * Build instead of up * Starting the service explicitly. --- deployment/roles/monitor/tasks/jumpbox.yml | 4 ++-- deployment/roles/monitor/tasks/servinstall.yml | 5 ++++- deployment/roles/oracle/tasks/jumpbox.yml | 4 ++-- deployment/roles/oracle/tasks/servinstall.yml | 5 ++++- deployment/roles/ui/tasks/jumpbox.yml | 4 ++-- deployment/roles/ui/tasks/servinstall.yml | 5 ++++- 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/deployment/roles/monitor/tasks/jumpbox.yml b/deployment/roles/monitor/tasks/jumpbox.yml index 8566f2aa..9374257a 100644 --- a/deployment/roles/monitor/tasks/jumpbox.yml +++ b/deployment/roles/monitor/tasks/jumpbox.yml @@ -1,5 +1,5 @@ --- -- name: Launch container - shell: docker-compose up -d +- name: Build the containers + shell: docker-compose build args: chdir: "{{ bridge_path }}/monitor" diff --git a/deployment/roles/monitor/tasks/servinstall.yml b/deployment/roles/monitor/tasks/servinstall.yml index c3ad768f..888d571e 100644 --- a/deployment/roles/monitor/tasks/servinstall.yml +++ b/deployment/roles/monitor/tasks/servinstall.yml @@ -9,9 +9,12 @@ owner: root mode: 755 -- name: "Start/Enable the service" +- name: "Enable the service" service: name: "tokenbridge-monitor" state: started enabled: yes use: service + +- name: Start the service + shell: service tokenbridge-monitor start diff --git a/deployment/roles/oracle/tasks/jumpbox.yml b/deployment/roles/oracle/tasks/jumpbox.yml index f1894559..9bfde795 100644 --- a/deployment/roles/oracle/tasks/jumpbox.yml +++ b/deployment/roles/oracle/tasks/jumpbox.yml @@ -1,5 +1,5 @@ --- -- name: Launch container - shell: docker-compose up -d +- name: Build the containers + shell: docker-compose build args: chdir: "{{ bridge_path }}/oracle" diff --git a/deployment/roles/oracle/tasks/servinstall.yml b/deployment/roles/oracle/tasks/servinstall.yml index ee5a7259..24103ed0 100644 --- a/deployment/roles/oracle/tasks/servinstall.yml +++ b/deployment/roles/oracle/tasks/servinstall.yml @@ -9,9 +9,12 @@ owner: root mode: 755 -- name: "Start/Enable poabridge service" +- name: "Enable the service" service: name: "poabridge" state: started enabled: yes use: service + +- name: Start the service + shell: service poabridge start diff --git a/deployment/roles/ui/tasks/jumpbox.yml b/deployment/roles/ui/tasks/jumpbox.yml index 03806470..947e28a9 100644 --- a/deployment/roles/ui/tasks/jumpbox.yml +++ b/deployment/roles/ui/tasks/jumpbox.yml @@ -1,5 +1,5 @@ --- -- name: Launch container - shell: docker-compose up -d +- name: Build the containers + shell: docker-compose build args: chdir: "{{ bridge_path }}/ui" diff --git a/deployment/roles/ui/tasks/servinstall.yml b/deployment/roles/ui/tasks/servinstall.yml index 664c8e80..e80a694d 100644 --- a/deployment/roles/ui/tasks/servinstall.yml +++ b/deployment/roles/ui/tasks/servinstall.yml @@ -9,9 +9,12 @@ owner: root mode: 755 -- name: "Start/Enable the service" +- name: "Enable the service" service: name: "tokenbridge-ui" state: started enabled: yes use: service + +- name: Start the service + shell: service tokenbridge-ui start