eureka2 / G6K

Generator of calculation simulator (calculator)
MIT License
20 stars 19 forks source link

How not to install the demo when using Docker ? #25

Open bageg opened 4 years ago

bageg commented 4 years ago

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 :

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.

Is it possible ?

Thank you in advance for your answer.