Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
⬆️ Update to php7.1 and mysql 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
apertureless committed Oct 5, 2017
1 parent 272aad4 commit 526ecaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docker-compose-rancher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ suitecrm:
- ./config.php:/var/www/html/config.php

suitecrmdata:
image: mysql:5.6
image: mysql:5.7
volumes:
- /var/lib/mysql
ports:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
DB_MANAGER: MysqlManager

mysql:
image: mysql:5.6
image: mysql:5.7
container_name: mysql
volumes:
- mysqldata:/var/lib/mysql
Expand Down
16 changes: 8 additions & 8 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:5.6-apache
FROM php:7.1.10-apache

ENV DOWNLOAD_URL https://github.com/salesagility/SuiteCRM/archive/7.9.6.zip
ENV DOWNLOAD_FILE 7.9.6.zip
Expand All @@ -8,9 +8,9 @@ ENV WWW_USER www-data
ENV WWW_GROUP www-data

RUN apt-get update && apt-get upgrade -y && \
apt-get install -y libcurl4-gnutls-dev libpng-dev libssl-dev libc-client2007e-dev libkrb5-dev unzip cron re2c python tree wget && \
apt-get install -y libcurl4-gnutls-dev libpng-dev libmcrypt-dev libssl-dev libc-client2007e-dev libkrb5-dev unzip cron re2c python tree wget && \
docker-php-ext-configure imap --with-imap-ssl --with-kerberos && \
docker-php-ext-install mysql curl gd zip mbstring imap && \
docker-php-ext-install pdo_mysql mysqli curl gd zip mbstring mcrypt imap && \
rm -rf /var/lib/apt/lists/*

RUN apt-get clean
Expand All @@ -25,11 +25,11 @@ RUN cp -R ${EXTRACT_FOLDER}/* ${WWW_FOLDER}/
RUN chown -R ${WWW_USER}:${WWW_GROUP} ${WWW_FOLDER}/*
RUN chown -R ${WWW_USER}:${WWW_GROUP} ${WWW_FOLDER}

ADD php.ini /usr/local/etc/php/php.ini
ADD config_override.php.pyt /usr/local/src/config_override.php.pyt
ADD envtemplate.py /usr/local/bin/envtemplate.py
ADD init.sh /usr/local/bin/init.sh
ADD config.php ${WWW_FOLDER}
COPY php.ini /usr/local/etc/php/php.ini
COPY config_override.php.pyt /usr/local/src/config_override.php.pyt
COPY envtemplate.py /usr/local/bin/envtemplate.py
COPY init.sh /usr/local/bin/init.sh
COPY config.php ${WWW_FOLDER}
RUN chown -R ${WWW_USER}:${WWW_GROUP} ${WWW_FOLDER}/config.php
RUN chmod 766 ${WWW_FOLDER}/config.php

Expand Down

0 comments on commit 526ecaf

Please sign in to comment.