mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Update ELK Stack container files
This commit is contained in:
@@ -2,12 +2,16 @@
|
|||||||
|
|
||||||
## How to start the Dev container
|
## How to start the Dev container
|
||||||
|
|
||||||
In the root directory of your awx clone, run the following to build your docker image:
|
In the root directory of your awx clone, run the following to build your docker image.
|
||||||
|
This step takes a while, but once your image is built, you don't need to do this again
|
||||||
|
unless you make changes to the Dockerfile or any of the files used by the Dockerfile.
|
||||||
|
|
||||||
```
|
```
|
||||||
make docker-compose-build
|
make docker-compose-build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Note: By default, this image will be tagged with your branch name.
|
||||||
|
|
||||||
Copy over your local settings
|
Copy over your local settings
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -26,6 +30,8 @@ Run the container
|
|||||||
make docker-compose
|
make docker-compose
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Note: You may need to add `COMPOSE_TAG=<yourbranch>` at the end of this to use the correct image for your branch.
|
||||||
|
|
||||||
The app should now be accessible in your browser at `https://localhost:8043/#/home`
|
The app should now be accessible in your browser at `https://localhost:8043/#/home`
|
||||||
|
|
||||||
|
|
||||||
@@ -74,3 +80,7 @@ An example of how to view the most recent logs from the container:
|
|||||||
```
|
```
|
||||||
docker exec -i -t $(docker ps -aqf "name=tools_logstash_1") tail -n 50 /logstash.log
|
docker exec -i -t $(docker ps -aqf "name=tools_logstash_1") tail -n 50 /logstash.log
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### How to add logstash plugins
|
||||||
|
|
||||||
|
Add any plugins you need in `tools/elastic/logstash/Dockerfile` before running the container.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ done by getting via bash in the running Docker machine. Example:
|
|||||||
```bash
|
```bash
|
||||||
docker-machine ssh default sudo sysctl -w vm.max_map_count=262144
|
docker-machine ssh default sudo sysctl -w vm.max_map_count=262144
|
||||||
```
|
```
|
||||||
|
> Note: If you are running docker natively on linux, you need only run `sysctl -w vm.max_map_count=262144`
|
||||||
|
|
||||||
After this, the containers can be started up with commands like:
|
After this, the containers can be started up with commands like:
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
# Primary Tower Development Container
|
# Primary AWX Development Container
|
||||||
tower:
|
awx:
|
||||||
links:
|
links:
|
||||||
- logstash
|
- logstash
|
||||||
|
|||||||
Reference in New Issue
Block a user