Skip to content

Instantly share code, notes, and snippets.

@adam-hert
Created December 9, 2016 17:52
Show Gist options
  • Save adam-hert/e55d024a12168ad9b9dcdcd35bd46527 to your computer and use it in GitHub Desktop.
Save adam-hert/e55d024a12168ad9b9dcdcd35bd46527 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment