Hi Lahiru/shameera, Can you please once again review the docker file for airavata pga and send your comments.They are available at github: https://github.com/pankajsaha/dockerfiles. Dockerfile should be present at the root of the airavata-php-gateway source tree structure.
also you can see it here at attachment. Thanks Pankaj
FROM ubuntu:latest #---------- file Author / Maintainer MAINTAINER GSoC Pankaj Saha #---------- update the repository sources list RUN apt-get update #---------- installing prerequisites for PGA gateway RUN apt-get install apache2 -y RUN apt-get install php5 -y #---------- installing necessary php extensions RUN apt-get install unzip -y RUN apt-get install curl -y RUN apt-get install openssl -y RUN apt-get install php5-mcrypt -y #--------- installing composer RUN curl -sS https://getcomposer.org/installer | php RUN mv composer.phar /usr/local/bin/composer #--------- activate mod_rewrite RUN a2enmod rewrite #--------- modifying the 000default file COPY ./ /var/www/airavata-php-gateway WORKDIR /etc/apache2/sites-available/ RUN sed -i 's/<\/VirtualHost>/<Directory "\/var\/www"> \n AllowOverride All \n <\/Directory> \n <\/VirtualHost>/g' 000-default.conf RUN sed -i 's/DocumentRoot \/var\/www\/html/DocumentRoot \/var\/www/g' 000-default.conf WORKDIR /etc/php5/mods-available/ RUN sed -i 's/extension=mcrypt.so/extension=\/usr\/lib\/php5\/20121212\/mcrypt.so/g' mcrypt.ini WORKDIR / RUN php5enmod mcrypt #--------- making storage folder writable RUN chmod -R 777 /var/www/airavata-php-gateway/app/storage #-------- starting command #CMD service apache2 restart CMD ["sh", "-c", "service apache2 restart ; /bin/bash"] #--------- exposing apache to default port EXPOSE 80
