Change site key in Dockerfile!
docker build -t apache .
docker run -p 500:80 apache &
curl locahost:500
Receive traces
FROM ubuntu | |
MAINTAINER Adam Hert | |
RUN apt-get update && apt-get install -y apache2 && \ | |
apt-get install -y wget && \ | |
wget https://files.appneta.com/install_appneta.sh && \ | |
sh ./install_appneta.sh <site-key> && \ | |
apt-get install -y libapache2-mod-oboe && \ | |
/etc/init.d/apache2 restart && \ | |
apt-get install -y supervisor | |
# Manually set up the apache environment variables | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_LOG_DIR /var/log/apache2 | |
ENV APACHE_LOCK_DIR /var/lock/apache2 | |
ENV APACHE_PID_FILE /var/run/apache2.pid | |
ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
CMD ["/usr/bin/supervisord"] |
[supervisord] | |
nodaemon=true | |
[program:tracelyzer] | |
command=/etc/init.d/tracelyzer start -D | |
[program:apache2] | |
command=/usr/sbin/apache2 -DFOREGROUND |