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 - name: Build the containers
shell: docker-compose up -d shell: docker-compose build
args: args:
chdir: "{{ bridge_path }}/monitor" chdir: "{{ bridge_path }}/monitor"

@ -9,9 +9,12 @@
owner: root owner: root
mode: 755 mode: 755
- name: "Start/Enable the service" - name: "Enable the service"
service: service:
name: "tokenbridge-monitor" name: "tokenbridge-monitor"
state: started state: started
enabled: yes enabled: yes
use: service use: service
- name: Start the service
shell: service tokenbridge-monitor start

@ -1,5 +1,5 @@
--- ---
- name: Launch container - name: Build the containers
shell: docker-compose up -d shell: docker-compose build
args: args:
chdir: "{{ bridge_path }}/oracle" chdir: "{{ bridge_path }}/oracle"

@ -9,9 +9,12 @@
owner: root owner: root
mode: 755 mode: 755
- name: "Start/Enable poabridge service" - name: "Enable the service"
service: service:
name: "poabridge" name: "poabridge"
state: started state: started
enabled: yes enabled: yes
use: service use: service
- name: Start the service
shell: service poabridge start

@ -1,5 +1,5 @@
--- ---
- name: Launch container - name: Build the containers
shell: docker-compose up -d shell: docker-compose build
args: args:
chdir: "{{ bridge_path }}/ui" chdir: "{{ bridge_path }}/ui"

@ -9,9 +9,12 @@
owner: root owner: root
mode: 755 mode: 755
- name: "Start/Enable the service" - name: "Enable the service"
service: service:
name: "tokenbridge-ui" name: "tokenbridge-ui"
state: started state: started
enabled: yes enabled: yes
use: service use: service
- name: Start the service
shell: service tokenbridge-ui start