-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Robert2/Loxya 0.18.1 support Closes #2 See merge request mlaplanche/docker-robert2!16
- Loading branch information
Showing
6 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM php:8-apache-buster | ||
|
||
LABEL maintainer="Maxime LAPLANCHE <maxime.laplanche@outlook.com>" | ||
|
||
ENV ROBERT2_VERSION 0.18.1 | ||
|
||
ENV PHP_INI_DATE_TIMEZONE 'UTC' | ||
ENV PHP_INI_MEMORY_LIMIT 256M | ||
|
||
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 \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql gd soap zip \ | ||
&& docker-php-ext-configure pgsql -with-pgsql \ | ||
&& docker-php-ext-install pdo_pgsql pgsql \ | ||
&& mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ | ||
&& a2enmod rewrite | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
source "${BASE_DIR}/versions.sh" | ||
source "${BASE_DIR}versions.sh" | ||
|
||
export ROBERT2_VERSION=0.17.1 | ||
export ROBERT2_VERSION=0.18.1 | ||
|
||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters