-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d44aa43
commit c957c82
Showing
3 changed files
with
11 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM php:7.0.33-apache | ||
LABEL maintainer="Francesco Bianco <[email protected]>" | ||
|
||
ENV LAYER_BREAK=true | ||
ENV VT_VERSION="7.1.0" \ | ||
DATABASE_PACKAGE="mariadb-server-10.1" \ | ||
PATH="/root/.composer/vendor/bin:$PATH" | ||
|
@@ -16,30 +15,30 @@ RUN apt-get update && \ | |
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \ | ||
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \ | ||
docker-php-ext-install imap exif mysqli pdo pdo_mysql zip gd xml && \ | ||
echo "cron.* /var/log/cron.log" >> /etc/rsyslog.conf && rm -fr /etc/cron.* && mkdir /etc/cron.d && ${LAYER_BREAK} | ||
RUN curl -o composer -sL https://getcomposer.org/composer.phar && \ | ||
echo "cron.* /var/log/cron.log" >> /etc/rsyslog.conf && rm -fr /etc/cron.* && mkdir /etc/cron.d && \ | ||
curl -o composer -sL https://getcomposer.org/composer.phar && \ | ||
php composer global require javanile/http-robot:0.0.2 javanile/mysql-import:0.0.15 javanile/vtiger-cli:0.0.4 && \ | ||
php composer clearcache && rm composer && ${LAYER_BREAK} | ||
RUN curl -sL https://javanile.github.io/symvol/setup.sh?v=0.0.2 | bash - && ${LAYER_BREAK} | ||
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data && \ | ||
php composer clearcache && rm composer && \ | ||
curl -sL https://javanile.github.io/symvol/setup.sh?v=0.0.2 | bash - && \ | ||
usermod -u 1000 www-data && groupmod -g 1000 www-data && \ | ||
echo "ServerName localhost" >> /etc/apache2/apache2.conf && \ | ||
a2enmod ssl && a2enmod rewrite && ${LAYER_BREAK} | ||
RUN cd /usr/src/vtiger && \ | ||
a2enmod ssl && a2enmod rewrite && \ | ||
cd /usr/src/vtiger && \ | ||
curl -o vtiger.tar.gz -L "https://github.com/javanile/vtiger-core/archive/7.1.0.tar.gz" && \ | ||
tar -xzf vtiger.tar.gz && \ | ||
rm vtiger.tar.gz && \ | ||
rm -fr /var/www/html && \ | ||
mv "vtiger-core-7.1.0" /var/www/html && \ | ||
vtiger permissions --fix && \ | ||
mv .symvol /var/www/html && \ | ||
mkdir -p volume /var/lib/vtiger && ${LAYER_BREAK} | ||
RUN apt-get clean && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* | ||
mkdir -p volume /var/lib/vtiger && \ | ||
apt-get clean && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* | ||
|
||
COPY vtiger-*.sh /usr/local/bin/ | ||
COPY vtiger-*.php /usr/src/vtiger/ | ||
|
||
RUN vtiger-install.sh --install-mysql --assert-mysql --dump --remove-mysql && ${LAYER_BREAK} | ||
RUN cd /var/www/html/vtlib/Vtiger/ && \ | ||
RUN vtiger-install.sh --install-mysql --assert-mysql --dump --remove-mysql && \ | ||
cd /var/www/html/vtlib/Vtiger/ && \ | ||
sed -e 's!realpath(!__realpath__(!' -ri Utils.php Deprecated.php && \ | ||
symvol move /var/www/html /usr/src/vtiger/volume | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Empty file.