Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soctools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gn4-3-wp8-t3.1 SOC
soctools
Commits
193f2c4c
Commit
193f2c4c
authored
4 years ago
by
Temur Maisuradze
Browse files
Options
Downloads
Patches
Plain Diff
HOWTOS
parent
821cb3e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HOWTOS.md
+28
-2
28 additions, 2 deletions
HOWTOS.md
with
28 additions
and
2 deletions
HOWTOS.md
+
28
−
2
View file @
193f2c4c
...
@@ -13,10 +13,36 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo
...
@@ -13,10 +13,36 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo
`utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2`
`utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2`
Restart services inside docker containers
Update configuration files in docker containers using Ansible
-----------------------------------------
-------------------------------------------------------------
To update configuration files for all docker containers together, run the following command:
ansible-playbook -i inventories soctools.yml -t update-config
To update configuration files only for specific services, run the following commands:
ansible-playbook -i inventories soctools.yml -t update-keycloak-config
ansible-playbook -i inventories soctools.yml -t update-thehive-config
Restart services inside docker containers using Ansible
-------------------------------------------------------
To restart services for all docker containers together, run the following command:
ansible-playbook -i inventories soctools.yml -t restart
To restart services only for specific docker containers, run the following commands:
ansible-playbook -i inventories soctools.yml -t restart-keycloak
ansible-playbook -i inventories soctools.yml -t restart-thehive
Stop services inside docker containers using Ansible
----------------------------------------------------
To stop services for all docker containers together, run the following command:
ansible-playbook -i inventories soctools.yml -t stop
To stop services only for specific docker containers, run the following commands:
ansible-playbook -i inventories soctools.yml -t stop-keycloak
ansible-playbook -i inventories soctools.yml -t stop-thehive
Restart services inside docker containers manually
--------------------------------------------------
To restart services inside docker containers after changes in configuration files:
To restart services inside docker containers after changes in configuration files:
1.
Attache container: docker exec -it container_id_or_name bash (example: docker exec -it soctools-keycloak bash)
1.
Attache container: docker exec -it container_id_or_name bash (example: docker exec -it soctools-keycloak bash)
2.
List services and their statuses: supervisorctl status
2.
List services and their statuses: supervisorctl status
3.
Restart service: supervisorctl restart supervisor_service_name (example: supervisorctl restart keycloak)
3.
Restart service: supervisorctl restart supervisor_service_name (example: supervisorctl restart keycloak)
4.
Detach from container: exit
4.
Detach from container: exit
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment