Skip to content
Snippets Groups Projects
Commit aabaf97f authored by root's avatar root Committed by PICHOU Kyâne
Browse files

add postgres backup

parent 356171ae
No related branches found
No related tags found
1 merge request!5CheckMK stable image
FROM pica-debian
MAINTAINER antoinebarbare@gmail.com
FROM registry.picasoft.net:5000/pica-debian
MAINTAINER antoine@barbare.me
# Install base packages
RUN apt-get update && \
......
FROM pica-debian
FROM registry.picasoft.net:5000/pica-nginx
MAINTAINER antoine@barbare.me
RUN echo "deb http://packages.dotdeb.org jessie all" > /etc/apt/sources.list.d/dotdeb.list && \
wget -O- https://www.dotdeb.org/dotdeb.gpg | apt-key add - && \
apt-get update -y && apt-get install -y php7.0 php7.0-fpm php7.0-gd php7.0-xml nginx supervisor curl tar
RUN mkdir -p /run/nginx && \
mkdir -p /var/www && \
cd /var/www && \
RUN cd /var/www && \
curl -O -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" && \
tar -xzf dokuwiki-stable.tgz -C html --strip-components 1 && \
rm -Rf dokuwiki*
ADD nginx.conf /etc/nginx/nginx.conf
ADD supervisord.conf /etc/supervisord.conf
ADD start.sh /start.sh
RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php/7.0/fpm/php.ini && \
sed -i -e "s|;daemonize\s*=\s*yes|daemonize = no|g" /etc/php/7.0/fpm/php-fpm.conf && \
sed -i -e "s|listen\s*=\s*127\.0\.0\.1:9000|listen = /var/run/php-fpm7.sock|g" /etc/php/7.0/fpm/pool.d/www.conf && \
sed -i -e "s|;listen\.owner\s*=\s*|listen.owner = |g" /etc/php/7.0/fpm/pool.d/www.conf && \
sed -i -e "s|;listen\.group\s*=\s*|listen.group = |g" /etc/php/7.0/fpm/pool.d/www.conf && \
sed -i -e "s|;listen\.mode\s*=\s*|listen.mode = |g" /etc/php/7.0/fpm/pool.d/www.conf && \
chmod +x /start.sh
EXPOSE 80
VOLUME ["/var/www"]
VOLUME ["/var/www/html"]
CMD /start.sh
#!/bin/sh
set -e
chown -R www-data /var/www
exec /usr/bin/supervisord -c /etc/supervisord.conf
[supervisord]
nodaemon=true
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[unix_http_server]
file=/var/run/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:php]
command=/usr/sbin/php-fpm7.0
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
redirect_stderr=true
[program:nginx]
command=/usr/sbin/nginx
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
redirect_stderr=true
FROM pica-apache
MAINTAINER antoinebarbare@gmail.com
FROM registry.picasoft.net:5000/pica-nginx
MAINTAINER antoine@barbare.me
# Install base packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install \
php5-sqlite \
unzip \
wget
RUN apt-get update -y && apt-get install -y php7.0-mbstring php7.0-sqlite3 unzip
WORKDIR /var/www/html
RUN rm -Rf *
RUN cd /var/www && \
curl -O -L "http://kanboard.net/kanboard-latest.zip" && \
unzip kanboard-latest.zip && \
rm -Rf kanboard-latest.zip && \
rm -Rf html && \
mv kanboard html && \
chown -R www-data:www-data /var/www/html
RUN wget http://kanboard.net/kanboard-latest.zip
RUN unzip kanboard-latest.zip
RUN mv kanboard kanboard2
RUN cp -R kanboard2/* .
RUN rm -Rf kanboard2 kanboard-latest.zip
EXPOSE 80
VOLUME ["/var/www","/var/www/html/data"]
RUN chown -R www-data:www-data *
VOLUME /var/www/html/data
CMD ["/run.sh"]
CMD /start.sh
......@@ -21,6 +21,6 @@ RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php/7.0/fpm/php.ini && \
chmod +x /start.sh
EXPOSE 80
VOLUME ["/var/www"]
#VOLUME ["/var/www/","/var/www/html/"]
CMD /start.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment