From 63494c94b7a8e79fa1100b5f091058f724cd26c1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 19 May 2020 17:00:09 -0400 Subject: [PATCH] Fix rsyslog in the dev env by using a local dir volume We broke this in the image refactor. --- tools/docker-compose.yml | 1 + tools/rsyslog/.dir_placeholder | 1 + 2 files changed, 2 insertions(+) create mode 100644 tools/rsyslog/.dir_placeholder diff --git a/tools/docker-compose.yml b/tools/docker-compose.yml index 6a39ed5f13..a96c835c02 100644 --- a/tools/docker-compose.yml +++ b/tools/docker-compose.yml @@ -34,6 +34,7 @@ services: - "../awx/projects/:/var/lib/awx/projects/" - "./redis/redis_socket_standalone:/var/run/redis/" - "./memcached/:/var/run/memcached" + - "./rsyslog/:/var/lib/awx/rsyslog" privileged: true tty: true # A useful container that simply passes through log messages to the console diff --git a/tools/rsyslog/.dir_placeholder b/tools/rsyslog/.dir_placeholder new file mode 100644 index 0000000000..e9e20b6e0f --- /dev/null +++ b/tools/rsyslog/.dir_placeholder @@ -0,0 +1 @@ +This dir must pre-exist and be owned by the user you are launching awx dev env as. If the dir does not exist before launching the awx dev environment then docker will create the dir and it will be owned by root. Since we start our awx dev environment with user: ${CURRENT_UID} the rsyslog process will be unable to create a config file in a directory owned by root.