1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00
awx/tools/docker-compose
AlanCoding 459c33d272 More consistently provide fields in job_events logger
* Change scheme from using event dict to JobEvent object
* Add processing to grok object fields
* Allow override of provided formatter in case of future issues
2017-07-10 10:34:04 -04:00
..
ansible_tower.egg-info Revert "bump pkg info tower version to 3.1.0" 2017-01-18 14:30:06 -05:00
unit-tests Default image tag for unit test container image. 2017-03-10 11:53:37 -05:00
ansible-tower.egg-link Update docker development workflow to not require make develop 2016-03-02 12:09:42 -05:00
awx-manage Initial qpid development work 2016-08-24 16:23:47 -04:00
Dockerfile Swap out dumb-init for tini 2017-05-26 11:33:14 -04:00
Dockerfile-haproxy Initial Docker Compose workflow for Tower cluster 2016-09-08 10:18:14 -04:00
Dockerfile-logstash output logs to /logstash.conf in our default compose file 2017-03-16 13:20:33 -04:00
Dockerfile-sync Updating docker dev workflow 2016-06-08 12:25:14 -04:00
haproxy.cfg Add some provisions for https into haproxy and the cluster 2017-01-03 13:59:29 -05:00
logstash.conf Refactor log handler and support TCP/UDP communications 2017-04-25 11:07:57 -04:00
nginx.conf update uwsgi/nginx dev configuration 2016-12-12 12:42:20 -05:00
nginx.vh.default.conf Implement alternate ports for nginx 2017-01-23 14:34:15 -05:00
Procfile remove fache cache receiver 2017-06-21 13:45:27 -04:00
proot.repo Initial qpid development work 2016-08-24 16:23:47 -04:00
README More consistently provide fields in job_events logger 2017-07-10 10:34:04 -04:00
start_development.sh add instance groups and queues to cluster tooling 2017-06-22 10:40:58 -04:00
supervisor.conf remove fache cache receiver 2017-06-21 13:45:27 -04:00

docker build --no-cache=true --rm=true -t ansible/tower_devel:latest .
docker run --name tower_test -it --memory="4g" --cpuset="0,1" -v /Users/meyers/ansible/:/tower_devel -p 8013:8013 -p 8080:8080 -p 27017:27017 -p 2222:22 ansible/tower_devel

## How to use the logstash container

POST the following content to `/api/v1/settings/logging/` (this uses
authentication set up inside of the logstash configuration file).

```
{
    "LOG_AGGREGATOR_HOST": "logstash",
    "LOG_AGGREGATOR_PORT": 8085,
    "LOG_AGGREGATOR_TYPE": "logstash",
    "LOG_AGGREGATOR_USERNAME": "awx_logger",
    "LOG_AGGREGATOR_PASSWORD": "workflows",
    "LOG_AGGREGATOR_LOGGERS": [
        "awx",
        "activity_stream",
        "job_events",
        "system_tracking"
    ],
    "LOG_AGGREGATOR_INDIVIDUAL_FACTS": false,
    "LOG_AGGREGATOR_TOWER_UUID": "991ac7e9-6d68-48c8-bbde-7ca1096653c6",
    "LOG_AGGREGATOR_ENABLED": true
}
```

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
```