diff --git a/.travis.yml b/.travis.yml index b450281..6f9fef5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ env: - TYPO3_VERSION=7.6 - TYPO3_VERSION=8.7 - TYPO3_VERSION=9.1 + - TYPO3_VERSION=9.2 script: - cd $TYPO3_VERSION diff --git a/9.2/Dockerfile b/9.2/Dockerfile new file mode 100644 index 0000000..8887916 --- /dev/null +++ b/9.2/Dockerfile @@ -0,0 +1,48 @@ +FROM php:7.2-apache +LABEL maintainer="Martin Helmich " + +# Install TYPO3 +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + wget \ +# Configure PHP + libxml2-dev libfreetype6-dev \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libpng-dev \ + zlib1g-dev \ +# Install required 3rd party tools + graphicsmagick && \ +# Configure extensions + docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \ + docker-php-ext-install -j$(nproc) mysqli soap gd zip opcache intl && \ + 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 \ + libpng12-dev \ + zlib1g-dev && \ + rm -rf /var/lib/apt/lists/* /usr/src/* + +RUN cd /var/www/html && \ + wget -O - https://get.typo3.org/9.2 | tar -xzf - && \ + ln -s typo3_src-* typo3_src && \ + ln -s typo3_src/index.php && \ + ln -s typo3_src/typo3 && \ + ln -s typo3_src/_.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 diff --git a/9.2/docker-compose.yml b/9.2/docker-compose.yml new file mode 100644 index 0000000..9053e60 --- /dev/null +++ b/9.2/docker-compose.yml @@ -0,0 +1,31 @@ +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:5.7 + command: + - --character-set-server=utf8 + - --collation-server=utf8_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: diff --git a/Makefile b/Makefile index 4cc5a8e..bd3e4e0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TYPOVER=6.2 7.6 8.7 9.1 +TYPOVER=6.2 7.6 8.7 9.1 9.2 DOCKERFILES=$(foreach subdir, $(TYPOVER), $(subdir)/Dockerfile) DEPENDS=Dockerfile6-7.in Makefile @@ -16,3 +16,7 @@ all: $(DOCKERFILES) 9.1/Dockerfile: Dockerfile8-9.in sed -e 's/PHPVER/7.2/' -e 's/TYPOVER/9.1/' $< > $@ +9.2/Dockerfile: Dockerfile8-9.in + sed -e 's/PHPVER/7.2/' -e 's/TYPOVER/9.2/' $< > $@ + + diff --git a/README.md b/README.md index 9fcc227..ca42b89 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,8 @@ Available tags This repository offers the following image tags: - `latest` maps to the latest available LTS version (currently, latest `8.7.*`) -- `9.1` and `9` for the latest available version from the `9.*` respectively `9.1.*` branch. +- `9.2` and `9` for the latest available version from the `9.*` respectively `9.2.*` branch. +- `9.1` for the latest available version from the `9.1.*` branch. - `8.7` and `8` for the latest available version from the `8.*` respectively `8.7.*` branch. - `7.6` and `7` for the latest available version from the `7.*` respectively `7.6.*` branch. - `6.2` and `6` for the latest available version from the `6.*` respectively `6.2.*` branch.