Skip to content

Instantly share code, notes, and snippets.

@adam-hert
Created November 17, 2015 23:14
Show Gist options
  • Save adam-hert/2021cc023f20d26cb6bd to your computer and use it in GitHub Desktop.
Save adam-hert/2021cc023f20d26cb6bd to your computer and use it in GitHub Desktop.
ubuntu@ip-192-168-0-246:~$ cat supervisord.conf
[supervisord]
nodaemon=true
[program:tracelyzer]
command=/etc/init.d/tracelyzer start -D
[program:apache2]
command=/usr/sbin/apache2 -DFOREGROUND
ubuntu@ip-192-168-0-246:~$ cat Dockerfile
FROM ubuntu
MAINTAINER Adam Hert
RUN apt-get update && sudo apt-get install -y apache2 && \
apt-get install -y wget && \
wget https://files.appneta.com/install_appneta.sh && \
sh ./install_appneta.sh <your site key here> && \
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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment