initial checkin
diff --git a/containers/observer/Dockerfile b/containers/observer/Dockerfile
index 2b5bd37..7ec6592 100644
--- a/containers/observer/Dockerfile
+++ b/containers/observer/Dockerfile
@@ -5,7 +5,7 @@
openssh-client \
python-crypto \
python-jinja2 \
- python-paramiko
+ python-paramiko \
python-yaml \
python-httplib2 \
supervisor
@@ -21,10 +21,11 @@
git -C /opt/ansible/lib/ansible/modules/core pull && \
git -C /opt/ansible/v2/ansible/modules/core pull
-RUN cp /tmp/xos/containers/observer/conf/ansible-hosts /etc/ansible/hosts
# For Observer
-RUN mkdir -p /usr/local/share /bin
+RUN mkdir -p /usr/local/share /bin /etc/ansible
+
+RUN cp /tmp/xos/containers/observer/conf/ansible-hosts /etc/ansible/hosts
ADD http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-x86_64.tar.bz2 /usr/local/share/
diff --git a/containers/observer/conf/observer.conf b/containers/observer/conf/observer.conf
index 92545eb..48f61dd 100644
--- a/containers/observer/conf/observer.conf
+++ b/containers/observer/conf/observer.conf
@@ -1,2 +1,9 @@
+[supervisord]
+logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
+pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
+nodaemon=true
+
[program:observer]
command=python /opt/xos/xos-observer.py
+stderr_logfile=/var/log/supervisor/observer.err.log
+stdout_logfile=/var/log/supervisor/observer.out.log