Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
feat: add 0.22.1

See merge request mlaplanche/docker-robert2!29
  • Loading branch information
LaplancheMaxime committed Aug 8, 2023
2 parents 1ab4ec7 + 47fbfaa commit b2d0587
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 7 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ Dockerfile and compose for Robert2 / Loxya (<https://robertmanager.org/>)

## Supported tags

* **`latest`** **`0.20.5`** `0.20.5-php8-apache-buster` | [Dockerfile](/images/0.20.5-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0205-2023-03-28) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.20.5)
* **`latest`** **`0.22.1`** `0.22.1-php8-apache-buster` | [Dockerfile](/images/0.21.2-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0221-2023-08-04) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.22.1)

* **`0.19.3`** `0.19.3-php8-apache-buster` | [Dockerfile](/images/0.19.3-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/0.19.3/CHANGELOG.md#0193-2022-10-28) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.19.3)
* **`0.21.2`** `0.21.2-php8-apache-buster` | [Dockerfile](/images/0.21.2-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0212-2023-05-15) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.21.2)

* **`0.18.1`** `0.18.1-php8-apache-buster` | [Dockerfile](/images/0.18.1-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0181-2022-03-29) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.18.1)
* **`0.20.6`** `0.20.6-php8-apache-buster` | [Dockerfile](/images/0.20.6-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0206-2023-04-14) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.20.6)

* **`0.17.1`** `0.17.1-php8-apache-buster` | [Dockerfile](/images/0.17.1-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0171-2022-01-06) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.17.1)
* **`0.19.3`** `0.19.3-php8-apache-buster` | [Dockerfile](/images/0.19.3-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/0.19.3/CHANGELOG.md#0193-2022-10-28) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.19.3)

* **`0.16.2`** `0.16.2-php8-apache-buster` | [Dockerfile](/images/0.16.2-php8-apache-buster/Dockerfile) | [Official release note](https://github.com/Robert-2/Robert2/blob/master/CHANGELOG.md#0161-2021-11-03) | [Official github release](https://github.com/Robert-2/Robert2/releases/tag/0.16.2)

## What is Robert2 / Loxya

Expand Down
55 changes: 55 additions & 0 deletions images/0.22.1-php8-apache-buster/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM php:8-apache-buster

LABEL maintainer="Maxime LAPLANCHE <maxime.laplanche@outlook.com>"

ENV ROBERT2_VERSION 0.22.1

ENV PHP_INI_DATE_TIMEZONE 'Europe/Paris'
ENV PHP_INI_MEMORY_LIMIT 256M
ENV TZ=Europe/Paris

RUN mkdir -p /usr/src/php/ext/apcu && curl -fsSL https://pecl.php.net/get/apcu | tar xvz -C "/usr/src/php/ext/apcu" --strip 1

RUN apt-get update -y \
&& apt-get dist-upgrade -y \
&& apt-get install -y --no-install-recommends \
libc-client-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libldap2-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
default-mysql-client \
postgresql-client \
unzip \
&& apt-get autoremove -y

RUN docker-php-ext-configure gd --with-freetype --with-jpeg
RUN docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql gd soap zip apcu bcmath gettext
RUN docker-php-ext-configure pgsql -with-pgsql
RUN docker-php-ext-install pdo_pgsql pgsql
RUN mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini
RUN a2enmod rewrite

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN printf '[PHP]\ndate.timezone = "Europe/Paris"\n' > /usr/local/etc/php/conf.d/tzone.ini

RUN curl -fLSso Robert2-${ROBERT2_VERSION}.zip https://github.com/Robert-2/Robert2/releases/download/${ROBERT2_VERSION}/Robert2-${ROBERT2_VERSION}.zip &&\
unzip Robert2-${ROBERT2_VERSION}.zip -d /tmp && \
cp -r /tmp/Robert2-${ROBERT2_VERSION}/. /var/www/html/ && \
rm -rf /tmp/* && \
rm -rf Robert2-${ROBERT2_VERSION}.zip && \
chown -R www-data:www-data /var/www && \
chmod -R 777 /var/www/html/data && \
chmod -R 777 /var/www/html/src/var && \
chmod -R 777 /var/www/html/src/install && \
chmod -R 777 /var/www/html/src/App/Config

RUN rm -rf /var/lib/apt/lists/*

EXPOSE 80

CMD ["apache2-foreground"]
4 changes: 2 additions & 2 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

ROBERT2_VERSIONS=("0.16.2" "0.17.1" "0.18.1" "0.19.3" "0.20.6" "0.21.2")
ROBERT2_LATEST_TAG="0.21.2"
ROBERT2_VERSIONS=("0.21.2" "0.22.1")
ROBERT2_LATEST_TAG="0.22.1"

0 comments on commit b2d0587

Please sign in to comment.