Building containers in deployment (#149)

* Build instead of up

* Starting the service explicitly.
This commit is contained in:
Przemyslaw Rzad 2019-07-16 14:58:26 +02:00 committed by GitHub
parent 3e09fe890e
commit 8ea6c716ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 9 deletions

@ -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"

@ -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

@ -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"

@ -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

@ -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"

@ -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