Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TYPO3 V13 #285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- "10.4"
- "11.5"
- "12.4"
- "13.1"

steps:
- uses: actions/checkout@v2
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/verify-13.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and test TYPO3 13.1 image

on:
push:
paths:
- '13.1/Dockerfile'
- '13.1/docker-compose.yml'
pull_request:
paths:
- '13.1/Dockerfile'
- '13.1/docker-compose.yml'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build and start image
run: |
cd 13.1
docker-compose build
docker-compose up -d

sleep 20

curl -vLf http://localhost
docker-compose down -v
9 changes: 9 additions & 0 deletions .updater.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
versions:
- major: 13
constraint: ~13.1.0
destination: "13.1"
template: ./updater/Dockerfile.tmpl
templateData:
PHP:
Major: 8
Minor: 3
Debian: bookworm
- major: 12
constraint: ~12.4.0
destination: "12.4"
Expand Down
77 changes: 77 additions & 0 deletions 13.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Docker image for TYPO3 CMS
# Copyright (C) 2016-2023 Martin Helmich <martin@helmich.me>
# and contributors <https://github.com/martin-helmich/docker-typo3/graphs/contributors>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# NOTE: This file is automatically generated from a template. Please
# do not make any changes to this file directly, and consult the
# CONTRIBUTING document, first.

FROM php:8.3-apache-bookworm
LABEL maintainer="Martin Helmich <typo3@martin-helmich.de>"

# Install TYPO3
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
wget \
# Configure PHP
libxml2-dev libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libpq-dev \
libzip-dev \
zlib1g-dev \
# Install required 3rd party tools
graphicsmagick && \
# Configure extensions
docker-php-ext-configure gd --with-libdir=/usr/include/ --with-jpeg --with-freetype && \
docker-php-ext-install -j$(nproc) mysqli soap gd zip opcache intl pgsql pdo_pgsql && \
echo 'always_populate_raw_post_data = -1\nmax_execution_time = 240\nmax_input_vars = 1500\nupload_max_filesize = 32M\npost_max_size = 32M' > /usr/local/etc/php/conf.d/typo3.ini && \
# Configure Apache as needed
a2enmod rewrite && \
apt-get clean && \
apt-get -y purge \
libxml2-dev libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/* /usr/src/*

RUN cd /var/www/html && \
wget -O download.tar.gz https://get.typo3.org/13.1.0 && \
echo "5e71740bc21001cc0f19d6f7d2562cc8c09b0ba1a8763dad11edbaa37b9dfe42 download.tar.gz" > download.tar.gz.sum && \
sha256sum -c download.tar.gz.sum && \
tar -xzf download.tar.gz && \
rm download.* && \
ln -s typo3_src-* typo3_src && \
ln -s typo3_src/index.php && \
ln -s typo3_src/typo3 && \
cp typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess .htaccess && \
mkdir typo3temp && \
mkdir typo3conf && \
mkdir fileadmin && \
mkdir uploads && \
touch FIRST_INSTALL && \
chown -R www-data. .

# Configure volumes
VOLUME /var/www/html/fileadmin
VOLUME /var/www/html/typo3conf
VOLUME /var/www/html/typo3temp
VOLUME /var/www/html/uploads
48 changes: 48 additions & 0 deletions 13.1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Docker image for TYPO3 CMS
# Copyright (C) 2016-2020 Martin Helmich <martin@helmich.me>
# and contributors <https://github.com/martin-helmich/docker-typo3/graphs/contributors>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

version: "3"
services:
typo3:
build: .
ports:
- "80:80"
volumes:
- fileadmin:/var/www/html/fileadmin
- typo3conf:/var/www/html/typo3conf
- uploads:/var/www/html/uploads
networks:
- backend
database:
image: mysql:8.0
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
- "MYSQL_USER=${MYSQL_USER:-typo3}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD:-password}"
- "MYSQL_DATABASE=${MYSQL_DATABASE:-typo3}"
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
networks:
- backend
volumes:
database:
fileadmin:
typo3conf:
uploads:
networks:
backend: