Skip to content

Commit

Permalink
introducint database pacth
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed May 26, 2020
1 parent d44aa43 commit c957c82
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
23 changes: 11 additions & 12 deletions 7.1.0/Dockerfile
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"
Expand All @@ -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

Expand Down
2 changes: 0 additions & 2 deletions vtiger.override.sql

This file was deleted.

Empty file removed vtiger.sql
Empty file.

0 comments on commit c957c82

Please sign in to comment.