-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from Constellation-Labs/feature/adding-custom-…
…playbooks-local-execution Adding custom Dockerfile to metagraph-base-image
- Loading branch information
Showing
19 changed files
with
236 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
infra/ansible/local/playbooks/destroy/containers/nodes.ansible.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
- name: Destroy Containers and Network | ||
hosts: localhost | ||
vars: | ||
nodes: "{{ nodes | from_json }}" | ||
infra_path: "{{ infra_path }}" | ||
|
||
tasks: | ||
- name: Destroy Containers | ||
block: | ||
- name: Destroy Containers | ||
docker_container: | ||
name: "{{ item.name }}" | ||
state: absent | ||
loop: "{{ nodes }}" | ||
loop_control: | ||
label: "{{ item.name }}" | ||
|
||
- name: Destroy Container Grafana | ||
block: | ||
- name: Destroy container grafana | ||
docker_container: | ||
name: grafana | ||
state: absent | ||
|
||
- name: Destroy Container Prometheus | ||
block: | ||
- name: Destroy container prometheus | ||
docker_container: | ||
name: prometheus | ||
state: absent | ||
|
||
- name: Remove Genesis Files | ||
file: | ||
path: "{{ item }}" | ||
state: absent | ||
loop: | ||
- "{{ infra_path }}/docker/shared/genesis/genesis.address" | ||
- "{{ infra_path }}/docker/shared/genesis/genesis.snapshot" | ||
|
||
- name: Destroy Network custom-network | ||
block: | ||
- name: Remove network custom-network | ||
docker_network: | ||
name: custom-network | ||
state: absent |
39 changes: 0 additions & 39 deletions
39
infra/ansible/local/playbooks/start/containers/dependencies.ansible.yml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
infra/ansible/local/playbooks/stop/containers/nodes.ansible.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
- name: Stop Containers | ||
hosts: localhost | ||
vars: | ||
nodes: "{{ nodes | from_json }}" | ||
infra_path: "{{ infra_path }}" | ||
|
||
tasks: | ||
- name: Stop Nodes | ||
block: | ||
- name: Stop Nodes | ||
docker_container: | ||
name: "{{ item.name }}" | ||
state: stopped | ||
loop: "{{ nodes }}" | ||
loop_control: | ||
label: "{{ item.name }}" | ||
|
||
- name: Stop Container Grafana | ||
block: | ||
- name: Stop container grafana | ||
docker_container: | ||
name: grafana | ||
state: stopped | ||
ignore_errors: true | ||
|
||
- name: Stop Container Prometheus | ||
block: | ||
- name: Stop container prometheus | ||
docker_container: | ||
name: prometheus | ||
state: stopped | ||
ignore_errors: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.