mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
Improve docs for using the logstash container
This commit is contained in:
@@ -1,8 +1,50 @@
|
|||||||
docker build --no-cache=true --rm=true -t ansible/awx_devel:latest .
|
# Docker Compose for Dev container
|
||||||
docker run --name awx_test -it --memory="4g" --cpuset="0,1" -v /Users/meyers/ansible/:/awx_devel -p 8013:8013 -p 8080:8080 -p 27017:27017 -p 2222:22 ansible/awx_devel
|
|
||||||
|
## How to start the Dev container
|
||||||
|
|
||||||
|
In the root directory of your awx clone, run the following to build your docker image:
|
||||||
|
|
||||||
|
```
|
||||||
|
make docker-compose-build
|
||||||
|
```
|
||||||
|
|
||||||
|
Copy over your local settings
|
||||||
|
|
||||||
|
```
|
||||||
|
cp awx/settings/local_settings.py.docker_compose awx/settings/local_settings.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Build the UI
|
||||||
|
|
||||||
|
```
|
||||||
|
make ui-devel
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the container
|
||||||
|
|
||||||
|
```
|
||||||
|
make docker-compose
|
||||||
|
```
|
||||||
|
|
||||||
|
The app should now be accessible in your browser at `https://localhost:8043/#/home`
|
||||||
|
|
||||||
|
|
||||||
## How to use the logstash container
|
## How to use the logstash container
|
||||||
|
|
||||||
|
#### Modify the docker-compose.yml
|
||||||
|
|
||||||
|
Uncomment the following lines in the `docker-compose.yml`
|
||||||
|
|
||||||
|
```
|
||||||
|
#- logstash
|
||||||
|
...
|
||||||
|
|
||||||
|
#logstash:
|
||||||
|
# build:
|
||||||
|
# context: ./docker-compose
|
||||||
|
# dockerfile: Dockerfile-logstash
|
||||||
|
```
|
||||||
|
|
||||||
POST the following content to `/api/v2/settings/logging/` (this uses
|
POST the following content to `/api/v2/settings/logging/` (this uses
|
||||||
authentication set up inside of the logstash configuration file).
|
authentication set up inside of the logstash configuration file).
|
||||||
|
|
||||||
Reference in New Issue
Block a user