github.com/misfo/deis@v1.0.1-0.20141111224634-e0eee0392b8a/store/gateway/Dockerfile.template (about) 1 #FROM is generated dynamically by the Makefile 2 3 # install Apache and RADOS gateway 4 RUN curl -sSL https://raw.github.com/ceph/ceph/master/keys/autobuild.asc | apt-key add - 5 RUN echo deb http://gitbuilder.ceph.com/apache2-deb-trusty-x86_64-basic/ref/master trusty main > /etc/apt/sources.list.d/ceph-apache.list 6 RUN echo deb http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb-trusty-x86_64-basic/ref/master trusty main > /etc/apt/sources.list.d/ceph-fastcgi.list 7 8 RUN apt-get update && apt-get install -yq apache2 libapache2-mod-fastcgi radosgw radosgw-agent 9 10 # enable required Apache modules 11 RUN a2enmod rewrite 12 RUN a2enmod fastcgi 13 14 # change the default port 15 RUN sed -i 's/80/8888/' /etc/apache2/ports.conf 16 17 # set the ServerName 18 RUN echo "ServerName deis-store-gateway" > /etc/apache2/conf-available/servername.conf 19 RUN a2enconf servername.conf 20 21 # create gateway site, and disable the default site 22 ADD s3gw.fcgi /var/www/s3gw.fcgi 23 ADD rgw.conf /etc/apache2/sites-available/rgw.conf 24 RUN a2ensite rgw.conf 25 RUN a2dissite 000-default.conf 26 27 WORKDIR /app 28 EXPOSE 8888 29 CMD ["/app/bin/boot"] 30 ADD bin/boot /app/bin/boot