FROM debian:jessie

  1. # inheriting from http://fabien.benetou.fr/SRE/Template-Dockerfile (basically empty, used for example)

RUN apt-get update RUN apt-get upgrade RUN apt-get install -y lighttpd RUN apt-get install -y php5-cgi RUN apt-get install -y wget WORKDIR /var/www RUN wget http://pmwiki.org/pub/pmwiki/pmwiki-latest.tgz RUN tar -zxf pmwiki-latest.tgz

  1. Getting data

RUN wget http://fabien.benetou.fr/pub/archived-version.tar.gz RUN tar -zxf archived-version.tar.gz RUN mv /var/www/home/web/benetou.fr/fabien/* /var/www/html/ RUN wget http://fabien.benetou.fr/pub/benetou.fr.conf RUN mv benetou.fr.conf /etc/lighttpd/conf-enabled RUN lighttpd-enable-mod fastcgi fastcgi-php; exit 0 RUN /etc/init.d/lighttpd start

  1. service restart failed
  2. make available tools to remember what was done in the SRE before killing it
  3. e.g. bash history, modified files in the filesystem, etc

RUN wget http://fabien.benetou.fr/pub/SRE-tools.tar.gz RUN tar -zxf SRE-tools.tar.gz RUN cp SRE-tools/* /usr/bin

  1. usage SRE-shutdown makes an archive making it possible to restart a SRE and obtain the same results

EXPOSE 80 ENTRYPOINT lighttpd -Df /etc/lighttpd/lighttpd.conf