Skip to content
Snippets Groups Projects
Commit fd716ec4 authored by ale's avatar ale
Browse files

Merge branch 'bookworm' into 'master'

Build on apache2-php-base:bookworm and php 8.2

See merge request !287
parents 5860f55e 9986797c
No related branches found
No related tags found
1 merge request!287Build on apache2-php-base:bookworm and php 8.2
Pipeline #57646 passed
......@@ -3,20 +3,13 @@ include: "https://git.autistici.org/pipelines/containers/raw/master/common.yml"
# test the newly built container before releasing it.
test:
stage: container-test
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/debian:stable
tags: [docker-in-docker]
services:
- name: ${IMAGE_TAG}
alias: noblogs
- name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/mysql:latest
alias: mysql
image: registry.git.autistici.org/pipelines/images/test/float-podman-runner:master
tags: [podman]
variables:
APACHE_PORT: 8080
SITE_URL: "http://noblogs:8080"
MYSQL_DATABASE: noblogstest
MYSQL_ROOT_PASSWORD: changeme
PHP_FPM_USER: www-data
SITE_URL: "http://localhost:8080"
before_script:
- echo -n "$CI_JOB_TOKEN" | podman login -u gitlab-ci-token --password-stdin $CI_REGISTRY
script:
- apt -q update
- env DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install curl
- "curl -H 'Host: noblogs.org' -v ${SITE_URL}"
- with-container --expose=8080 $IMAGE_TAG ./docker/test.sh
......@@ -9,7 +9,7 @@ ADD . /build
WORKDIR /build
RUN /build/install.sh
FROM registry.git.autistici.org/ai3/docker/apache2-php-base:master
FROM registry.git.autistici.org/ai3/docker/apache2-php-base:bookworm
COPY --from=build /build/app/ /opt/noblogs/www
......
......@@ -78,7 +78,14 @@ a2ensite ${APACHE_SITES}
# The file is named 00modsecurity.conf so it is loaded first.
mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/00modsecurity.conf
# Patch the /etc/modsecurity/00modsecurity.conf file shipped
# with the packages because it fails with a SyntaxError as
# soon as it sees the first SecAuditLog directive.
sed -e 's,^SecAuditLog .*$,SecAuditLog /dev/null,' -i \
/etc/modsecurity/00modsecurity.conf
# This needs to be writable for mod security to be able to start.
# Useless because the float container is read-only anyway.
install -d -m 1777 /var/log/apache2
# Ensure that the mount points exist.
......
[www]
user = ${PHP_FPM_USER}
listen = /run/php/php7.4-fpm.sock
listen = /run/php/php8.2-fpm.sock
pm = dynamic
pm.max_children = 75
pm.start_servers = 10
pm.min_spare_servers = 10
pm.max_spare_servers = 20
pm.max_requests = 1000
pm.max_requests = 10000
pm.status_path = /status
......
#!/bin/sh
exec curl -H 'Host: noblogs.org' -v -s ${SITE_URL}/
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