apache2-php > Add bookworm and jessie
Some checks failed
gitea/evodocker/pipeline/head There was a failure building this commit

This commit is contained in:
Ludovic Poujol 2024-04-24 17:57:00 +02:00
parent 0c25523f1a
commit 9c524d108b
Signed by: lpoujol
SSH key fingerprint: SHA256:YZbQWfjHONnvIGkFZMs0xRKtqzqGqwtZU+kCOKhZXPA
7 changed files with 194 additions and 0 deletions

View file

@ -120,6 +120,34 @@ pipeline {
}
}
}
stage('Build apache2-php (Bullseye)') {
steps {
script {
def deb = docker.build("evolix/apache2-php:deb11build${env.BUILD_ID}", "-f apache2-php/bullseye/Dockerfile .")
deb.inside {
sh 'echo Test needed'
}
docker.withRegistry('', 'hub.docker') {
deb.push('bullseye')
deb.push('latest')
}
}
}
}
stage('Build apache2-php (Bookworm)') {
steps {
script {
def deb = docker.build("evolix/apache2-php:deb12build${env.BUILD_ID}", "-f apache2-php/bookworm/Dockerfile .")
deb.inside {
sh 'echo Test needed'
}
docker.withRegistry('', 'hub.docker') {
deb.push('bookworm')
deb.push('latest')
}
}
}
}
stage('Build redis (Stretch)') {
steps {

View file

@ -0,0 +1,37 @@
# Official Debian image
FROM debian:bookworm
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php8.2 \
php8.2 \
php8.2-cli \
php8.2-curl \
php8.2-gd \
php8.2-imagick \
php8.2-imap \
php8.2-intl \
php8.2-ldap \
php8.2-mysql \
php8.2-mbstring \
php8.2-ssh2 \
php8.2-xml \
php8.2-zip \
composer \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY apache2-php/bookworm/apache-evolinux-defaults.conf /etc/apache2/conf-available
COPY apache2-php/bookworm/php-evolinux-defaults.ini /etc/php/8.2/apache2/conf.d
RUN a2enconf apache-evolinux-defaults
RUN a2enmod rewrite remoteip headers
RUN echo "export APACHE_ARGUMENTS='-DFOREGROUND'" >>/etc/apache2/envvars
EXPOSE 80
VOLUME /var/www/
CMD ["apache2ctl", "-k", "start"]

View file

@ -0,0 +1,36 @@
ServerTokens Prod
Timeout 10
KeepAliveTimeout 2
MaxKeepAliveRequests 10
#MaxClients 250
MaxRequestWorkers 250
ServerLimit 250
StartServers 50
MinSpareServers 20
MaxSpareServers 30
MaxRequestsPerChild 0
<Directory /home/>
AllowOverride None
Require all granted
</Directory>
<IfModule mod_ssl.c>
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!RC4
</IfModule>
<Files ~ "\.(inc|bak)$">
Require all denied
</Files>
<IfModule mod_status.c>
ExtendedStatus On
<IfModule mod_proxy.c>
ProxyStatus On
</IfModule>
</IfModule>
<IfModule mpm_itk.c>
LimitUIDRange 0 6000
LimitGIDRange 0 6000
</IfModule>

View file

@ -0,0 +1,10 @@
[PHP]
short_open_tag = Off
expose_php = Off
display_errors = Off
log_errors = On
html_errors = Off
allow_url_fopen = Off
opcache.memory_consumption = 128M
opcache.max_accelerated_files = 8000

View file

@ -0,0 +1,37 @@
# Official Debian image
FROM debian:bullseye
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php7.4 \
php7.4 \
php7.4-cli \
php7.4-curl \
php7.4-gd \
php7.4-imagick \
php7.4-imap \
php7.4-intl \
php7.4-ldap \
php7.4-mysql \
php7.4-mbstring \
php7.4-ssh2 \
php7.4-xml \
php7.4-zip \
composer \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY apache2-php/trixie/apache-evolinux-defaults.conf /etc/apache2/conf-available
COPY apache2-php/trixie/php-evolinux-defaults.ini /etc/php/7.4/apache2/conf.d
RUN a2enconf apache-evolinux-defaults
RUN a2enmod rewrite remoteip headers
RUN echo "export APACHE_ARGUMENTS='-DFOREGROUND'" >>/etc/apache2/envvars
EXPOSE 80
VOLUME /var/www/
CMD ["apache2ctl", "-k", "start"]

View file

@ -0,0 +1,36 @@
ServerTokens Prod
Timeout 10
KeepAliveTimeout 2
MaxKeepAliveRequests 10
#MaxClients 250
MaxRequestWorkers 250
ServerLimit 250
StartServers 50
MinSpareServers 20
MaxSpareServers 30
MaxRequestsPerChild 0
<Directory /home/>
AllowOverride None
Require all granted
</Directory>
<IfModule mod_ssl.c>
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!RC4
</IfModule>
<Files ~ "\.(inc|bak)$">
Require all denied
</Files>
<IfModule mod_status.c>
ExtendedStatus On
<IfModule mod_proxy.c>
ProxyStatus On
</IfModule>
</IfModule>
<IfModule mpm_itk.c>
LimitUIDRange 0 6000
LimitGIDRange 0 6000
</IfModule>

View file

@ -0,0 +1,10 @@
[PHP]
short_open_tag = Off
expose_php = Off
display_errors = Off
log_errors = On
html_errors = Off
allow_url_fopen = Off
opcache.memory_consumption = 128M
opcache.max_accelerated_files = 8000