1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00
awx/tools/docker-compose
chris meyers cc6413c44c
use ansible nightly
* ansible:devel now has ansible-galaxy collection support
2019-08-12 22:14:31 -04:00
..
awx.egg-info add plugin for cyberark aim 2019-04-02 11:23:20 -04:00
unit-tests remove the old callback plugin import paths and callback-specific tests 2019-04-12 16:11:23 -04:00
ansible_nightly.repo use ansible nightly 2019-08-12 22:14:31 -04:00
awx-manage Mass rename from ansible_(awx|tower) -> (awx|tower) 2017-07-26 13:33:26 -04:00
awx.egg-link Mass rename from ansible_(awx|tower) -> (awx|tower) 2017-07-26 13:33:26 -04:00
bootstrap_development.sh Improve dev environment init process 2019-05-10 10:14:51 -04:00
Dockerfile use ansible nightly 2019-08-12 22:14:31 -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
entrypoint.sh Improve dev environment init process 2019-05-10 10:14:51 -04:00
haproxy.cfg replace celery task decorators with a kombu-based publisher 2018-10-11 10:53:30 -04:00
logstash.conf Refactor log handler and support TCP/UDP communications 2017-04-25 11:07:57 -04:00
nginx.conf Fix permissions when running dev container as non-root user 2018-10-24 10:30:04 -04:00
nginx.vh.default.conf Update Content Security Policy to allow websockets 2019-07-05 16:12:27 -04:00
proot.repo Initial qpid development work 2016-08-24 16:23:47 -04:00
README remove /api/v1 and deprecated credential fields 2019-06-06 12:23:00 -04:00
start_development.sh Install latest tini from RPM 2019-06-03 16:03:51 -04:00
start_tests.sh Changes to enable tests in k8s 2019-05-28 13:22:15 -04:00
supervisor.conf Fix bug in dev supervisor reparenting processes 2019-05-10 07:46:53 -04:00

docker build --no-cache=true --rm=true -t ansible/awx_devel:latest .
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 use the logstash container

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

```
{
    "LOG_AGGREGATOR_HOST": "http://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
}
```

> Note: HTTP must be specified in the `LOG_AGGREGATOR_HOST` if you are using the docker development environment.  

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