First you can't use pure PHP docker image due to env variable not readable
from PHP. Please use [1] with out coping php.ini.
seems like (from errors) some permission issue, please debug and see.



[1]
https://github.com/wso2/msf4j/blob/master/samples/petstore/microservices/frontend-admin/container/Dockerfile

On Sat, Feb 13, 2016 at 12:29 AM, Lahiru Manohara <[email protected]> wrote:

> Hi all,
>
> I tried this [1] sugarcrm sample run as Docker container and I followed
> following steps.
>
> First I created a docker file with required libraries which is specified
> in here[2]
>
> FROM php:5.6-apache
> MAINTAINER "Lahiru Manohara"
> ENV STRATOS_MYSQL_HOST 10.100.7.115
> ENV STRATOS_MYSQL_USER root
> ENV STRATOS_MYSQL_PASSWORD root
> RUN apt-get update && apt-get upgrade -y && \
>     apt-get install -y libcurl4-gnutls-dev libpng-dev unzip cron re2c
> php5-imap python
> RUN docker-php-ext-install mysql curl gd zip mbstring mysqli
> COPY www/  /var/www/html/
>
> When i was trying run sugarcrm application, I am getting following error.
>
> *Warning*: include(cache/modules/Home/language/en_us.lang.php): failed to
> open stream: No such file or directory in
> */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(): Failed opening
> 'cache/modules/Home/language/en_us.lang.php' for inclusion
> (include_path='/var/www/html:/var/www/html/include/..:.:/usr/local/lib/php')
> in */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(cache/modules/Home/language/en_us.lang.php): failed to
> open stream: No such file or directory in
> */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(): Failed opening
> 'cache/modules/Home/language/en_us.lang.php' for inclusion
> (include_path='/var/www/html:/var/www/html/include/..:.:/usr/local/lib/php')
> in */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(cache/modules/Calendar/language/en_us.lang.php):
> failed to open stream: No such file or directory in
> */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(): Failed opening
> 'cache/modules/Calendar/language/en_us.lang.php' for inclusion
> (include_path='/var/www/html:/var/www/html/include/..:.:/usr/local/lib/php')
> in */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(cache/modules/Calendar/language/en_us.lang.php):
> failed to open stream: No such file or directory in
> */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Warning*: include(): Failed opening
> 'cache/modules/Calendar/language/en_us.lang.php' for inclusion
> (include_path='/var/www/html:/var/www/html/include/..:.:/usr/local/lib/php')
> in */var/www/html/include/SugarObjects/LanguageManager.php* on line *111*
>
> *Fatal error*: sugar_file_put_contents_atomic() : fatal rename failure
> '/tmp/temp1dJwVX' -> 'cache/modules/Emails/Emailvardefs.php' in
> */var/www/html/include/utils/sugar_file_utils.php* on line *187*
>
>
> [1].https://github.com/lakwarus/sugarcrm
> [2].https://github.com/Spantree/docker-sugarcrm/blob/develop/Dockerfile
> --
> Best regards,
>
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to