Skip to content

Instantly share code, notes, and snippets.

@brandon-dacrib
Created January 7, 2016 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandon-dacrib/f2fe2cd8f4d8ff45a933 to your computer and use it in GitHub Desktop.
Save brandon-dacrib/f2fe2cd8f4d8ff45a933 to your computer and use it in GitHub Desktop.
FROM debian
CMD ["/bin/bash"]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install ruby-dev gcc make ruby
#RUN apt-get -y install libtool libtool-bin
RUN gem install fpm
RUN apt-get clean
ADD http://dacrib.net/dump/packages/httpd-2.2.31.tar.gz /usr/src/httpd-2.2.31.tar.gz
WORKDIR /usr/src
RUN tar -xf httpd-2.2.31.tar.gz
WORKDIR /usr/src/httpd-2.2.31
RUN apt-get -y install file zlib1g-dev libssl-dev libldap2-dev
RUN ./configure --prefix=/usr/local/apache-2.2.31/ --enable-mods-shared=all --enable-proxy=shared --enable-rewrite=shared --enable-cgi=shared --enable-cgid=shared --enable-so --enable-ssl=shared --enable-deflate=shared --with-mpm=worker --with-ldap --with-auth-ldap --enable-authnz-ldap=shared --enable-ldap=shared
RUN make
RUN make install DESTDIR=/usr/local/apache-2.2.31/
#RUN libtool --finish /usr/local/apache-2.2.31/
WORKDIR /tmp/
RUN fpm -s dir -t deb -n meetup-apache -v 2.2.31 -C /usr/local/apache-2.2.31 -p meetup-apache_2.2.31.deb -m brandon@meetup.com --description "Meetup version of the Apache webserver" -a native --license "http://www.apache.org/licenses/LICENSE-2.0" --vendor "Meetup Systems Engineering" --url "https://httpd.apache.org/"
RUN rm -rf /usr/local/apache-2.2.31/
RUN dpkg -i meetup-apache_2.2.31.deb
RUN dpkg-query -L meetup-apache
RUN apt-cache show meetup-apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment