fix: support 1.3.0-rc10
This commit is contained in:
parent
38ec62c05c
commit
637937d5f6
7 changed files with 83 additions and 30 deletions
58
Dockerfile
58
Dockerfile
|
|
@ -1,18 +1,16 @@
|
|||
ARG ALPINE_VERSION=3.17
|
||||
|
||||
FROM alpine:${ALPINE_VERSION}
|
||||
LABEL Maintainer="HluthWigg"
|
||||
LABEL Maintainer="lefuturiste"
|
||||
LABEL Description="Paheko on Alpine Linux with Docker"
|
||||
|
||||
# Volume expose
|
||||
VOLUME /var/www
|
||||
# BORDEL DE MERDE, CEST APRES LES FROM POUR AVOIR LA VARIABLE EN BAS
|
||||
ARG PAHEKO_VERSION=1.3.0-rc10
|
||||
|
||||
VOLUME /var/www/paheko/data
|
||||
|
||||
# Setup document root
|
||||
WORKDIR /var/www/
|
||||
|
||||
# Change the version here
|
||||
ENV PAHEKO_VERSION 1.2.6
|
||||
|
||||
# Install packages and remove default server definition
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
nginx \
|
||||
|
|
@ -24,13 +22,12 @@ RUN apk add --no-cache \
|
|||
php81-gd \
|
||||
php81-intl \
|
||||
php81-mbstring \
|
||||
#php81-mysqli \
|
||||
php81-opcache \
|
||||
php81-openssl \
|
||||
php81-phar \
|
||||
php81-session \
|
||||
php81-sqlite3 \
|
||||
#php81-pdo_sqlite \
|
||||
php81-pdo_sqlite \
|
||||
php81-fileinfo \
|
||||
php81-json \
|
||||
php81-openssl \
|
||||
|
|
@ -41,27 +38,30 @@ RUN apk add --no-cache \
|
|||
supervisor \
|
||||
gettext
|
||||
|
||||
# Downloading and installing Garradin
|
||||
RUN curl -L -O https://fossil.kd2.org/garradin/uv/paheko-$PAHEKO_VERSION.tar.gz # download
|
||||
RUN tar xzvf paheko-$PAHEKO_VERSION.tar.gz # extract
|
||||
RUN mv paheko-$PAHEKO_VERSION /var/www/paheko # root of the website
|
||||
RUN rm -r paheko-$PAHEKO_VERSION.tar.gz # cleaning
|
||||
# BUILD the php-gnupg extension
|
||||
RUN apk add --no-cache git make php81-dev build-base gpgme-dev
|
||||
WORKDIR /tmp
|
||||
RUN git clone --recursive https://github.com/php-gnupg/php-gnupg.git && cd php-gnupg \
|
||||
&& phpize && ./configure && make && make install
|
||||
|
||||
|
||||
WORKDIR /var/www/
|
||||
|
||||
# Downloading and installing paheko
|
||||
# https://fossil.kd2.org/paheko/uv/paheko-1.3.0-rc10.tar.gz
|
||||
RUN curl -v -L -O "https://fossil.kd2.org/paheko/uv/paheko-${PAHEKO_VERSION}.tar.gz"
|
||||
RUN tar xf paheko-${PAHEKO_VERSION}.tar.gz
|
||||
RUN rm -rf *.tar.gz
|
||||
RUN mv paheko-${PAHEKO_VERSION} /var/www/paheko
|
||||
RUN echo ${PAHEKO_VERSION} > /paheko_version
|
||||
RUN cat /var/www/paheko/VERSION
|
||||
|
||||
# apply quick patch
|
||||
COPY ./patchs /patchs
|
||||
RUN cd paheko && patch -p1 < /patchs/plugins.patch
|
||||
|
||||
# Download and install plugins
|
||||
RUN cd /var/www/paheko/data/plugins && \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/ouvertures.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/stock_velos.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/reservations.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/webstats.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/dompdf.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/git_documents.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/taima.tar.gz ; \
|
||||
curl -L -O https://fossil.kd2.org/garradin-plugins/uv/caisse.tar.gz ;
|
||||
#RUN curl -L -O https://fossil.kd2.org/garradin-plugins/uv/helloasso.tar.gz
|
||||
#RUN curl -L -O https://fossil.kd2.org/garradin-plugins/uv/dompdf.tar.gz
|
||||
#RUN curl -L -O https://fossil.kd2.org/garradin-plugins/uv/taima.tar.gz
|
||||
#RUN mv helloasso.tar.gz /var/www/paheko/data/plugins/
|
||||
#RUN mv *.tar.gz /var/www/paheko/data/plugins/
|
||||
RUN cd /var/www/paheko/data/plugins && curl -L -O https://fossil.kd2.org/paheko-plugins/uv/helloasso.tar.gz
|
||||
|
||||
# Create symlink so programs depending on `php` still function
|
||||
# RUN ln -s /usr/bin/php81 /usr/bin/php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue