In my Dockerfile I use environment variables to have my db.
From centos 8 i install php, httpd and composer, then i use the command to get g6k
Something like this :
FROM centos8
ENV APP_LANGUAGE=fr
ENV DB_ENGINE=mysql
ENV DB_HOST=200.20.2.0
ENV DB_PORT=2222
ENV DB_USER=myUser
ENV DB_PASSWORD=myPassword
ENV DB_NAME=myBaseName
RUN yum -y update
RUN yum -y install \
httpd \
php \
all-php-stuff \
&& yum clean all
RUN yum upgrade -y && yum clean all
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/var/www/ --filename=composer
# Install g6k
RUN cd /var/www/ && php -d memory_limit=-1 composer -v create-project eureka2/g6k ./html/
RUN chmod -R 755 /var/www && chown -R apache:apache /var/www
RUN /usr/sbin/httpd -k restart
ENTRYPOINT ["/usr/sbin/httpd", "-D", "FOREGROUND"]
It works fine.
There is just one thing : i can't find a way to not install the demo. It seems that the default is "yes" and that you cannot configure it with an environment variable.
Hi,
I use a Dockerfile for installation.
In my Dockerfile I use environment variables to have my db. From centos 8 i install php, httpd and composer, then i use the command to get g6k
Something like this :
It works fine.
There is just one thing : i can't find a way to not install the demo. It seems that the default is "yes" and that you cannot configure it with an environment variable.
Is it possible ?
Thank you in advance for your answer.