diff --git a/Dockerfile b/Dockerfile index ee99681..a12f2e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ CMD ["/bin/bash"] MAINTAINER ProcessMaker CloudOps # Extra -LABEL version="3.2.2" -LABEL description="ProcessMaker 3.2.2 Docker Container - Apache" +LABEL version="3.1.3 Elis" +LABEL description="ProcessMaker 3.1.3 Elis Docker Container - Apache/httpd" # Initial steps RUN yum clean all && yum install epel-release -y && yum update -y @@ -19,6 +19,8 @@ RUN yum install \ nano \ sendmail \ httpd24 \ + mysql \ + mysql-server \ php56 \ php56-opcache \ php56-gd \ @@ -30,8 +32,8 @@ RUN yum install \ -y # Download ProcessMaker Enterprise Edition -RUN wget -O "/tmp/processmaker-3.2.2.tar.gz" \ - "https://artifacts.processmaker.net/official/processmaker-3.2.2.tar.gz" +RUN wget -O "/tmp/processmaker-3.1.3.tar.gz" \ + "https://bitnami.processmaker.com/official/processmaker-3.1.3.tar.gz" # Copy configuration files COPY pmos.conf /etc/httpd/conf.d @@ -44,4 +46,4 @@ EXPOSE 80 # Docker entrypoint COPY docker-entrypoint.sh /bin/ RUN chmod a+x /bin/docker-entrypoint.sh -ENTRYPOINT ["docker-entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a0e181d..cc964b4 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -9,7 +9,6 @@ sed -i '/;date.timezone =/c\date.timezone = America/New_York' /etc/php.ini sed -i '/expose_php = On/c\expose_php = Off' /etc/php.ini # OpCache configurations -sed -i '/;opcache.enable_cli=0/c\opcache.enable_cli=1' /etc/php.d/10-opcache.ini sed -i '/opcache.max_accelerated_files=4000/c\opcache.max_accelerated_files=10000' /etc/php.d/10-opcache.ini sed -i '/;opcache.max_wasted_percentage=5/c\opcache.max_wasted_percentage=5' /etc/php.d/10-opcache.ini sed -i '/;opcache.use_cwd=1/c\opcache.use_cwd=1' /etc/php.d/10-opcache.ini @@ -17,13 +16,14 @@ sed -i '/;opcache.validate_timestamps=1/c\opcache.validate_timestamps=1' /etc/ph sed -i '/;opcache.fast_shutdown=0/c\opcache.fast_shutdown=1' /etc/php.d/10-opcache.ini # Decompress ProcessMaker -cd /tmp && tar -C /opt -xzvf processmaker-3.2.2.tar.gz +cd /tmp && tar -C /opt -xzvf processmaker-3.1.3.tar.gz chown -R apache. /opt/processmaker # Start services cp /etc/hosts ~/hosts.new sed -i "/127.0.0.1/c\127.0.0.1 localhost localhost.localdomain `hostname`" ~/hosts.new cp -f ~/hosts.new /etc/hosts -chkconfig sendmail on && service sendmail start touch /etc/sysconfig/network -chkconfig httpd on && /usr/sbin/httpd -D FOREGROUND \ No newline at end of file +chkconfig sendmail on && service sendmail start +chkconfig mysqld on && service mysqld start +chkconfig httpd on && /usr/sbin/httpd -D FOREGROUND