apache2-php > Add bookworm and jessie
Some checks failed
gitea/evodocker/pipeline/head There was a failure building this commit
Some checks failed
gitea/evodocker/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0c25523f1a
commit
9c524d108b
28
.Jenkinsfile
28
.Jenkinsfile
|
@ -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 {
|
||||
|
|
37
apache2-php/bookworm/Dockerfile
Normal file
37
apache2-php/bookworm/Dockerfile
Normal 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"]
|
36
apache2-php/bookworm/apache-evolinux-defaults.conf
Normal file
36
apache2-php/bookworm/apache-evolinux-defaults.conf
Normal 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>
|
10
apache2-php/bookworm/php-evolinux-defaults.ini
Normal file
10
apache2-php/bookworm/php-evolinux-defaults.ini
Normal 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
|
37
apache2-php/bullseye/Dockerfile
Normal file
37
apache2-php/bullseye/Dockerfile
Normal 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"]
|
36
apache2-php/bullseye/apache-evolinux-defaults.conf
Normal file
36
apache2-php/bullseye/apache-evolinux-defaults.conf
Normal 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>
|
10
apache2-php/bullseye/php-evolinux-defaults.ini
Normal file
10
apache2-php/bullseye/php-evolinux-defaults.ini
Normal 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
|
Loading…
Reference in a new issue