Commit c0066cac authored by Mikael Salson's avatar Mikael Salson
Browse files

docker/alecsia/Dockerfile: Moving config files

THe path has changed and now they're not copied so that a modification outside the container has an effect immediately
parent e2f551d8
......@@ -24,8 +24,6 @@ RUN chmod +x wait-for-it.sh
RUN rm alecsia-david.zip
RUN mv alecsia-david alecsia
WORKDIR /var/www/html/alecsia
RUN cp ./docker/config/parameters.yml ./app/config/parameters.yml
RUN cp ./docker/config/password.yml ./app/config/password.yml
RUN mkdir upload
RUN composer install
RUN php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
......@@ -35,6 +33,9 @@ RUN sed -i "s/;date.timezone\s=.*/date.timezone = Europe\/Paris/" /usr/local/etc
RUN sed -i '10,17d' web/app_dev.php
RUN mkdir -p app/cache && mkdir -p app/logs
RUN chmod 777 app/cache && chmod 777 app/logs
RUN mkdir /etc/alecsia
RUN ln -sf /etc/alecsia/parameters.yml ./app/config/parameters.yml
RUN ln -sf /etc/alecsia/password.yml ./app/config/password.yml
# teacherbook
WORKDIR /var/www/html
......@@ -43,7 +44,8 @@ RUN unzip teacherbook-master.zip
RUN rm teacherbook-master.zip
RUN mv teacherbook-master teacherbook
WORKDIR /var/www/html/teacherbook
RUN cp ../alecsia/docker/config/config.php config.php
RUN mkdir /etc/teacherbook
RUN ln -sf /etc/teacherbook/config_teacherbook.php config.php
RUN composer install
WORKDIR /var/www/html/alecsia
\ No newline at end of file
......@@ -7,6 +7,8 @@ services:
- ./upload:/var/www/html/alecsia/upload
- ./logs/alecsia:/var/www/html/alecsia/app/logs
- ./logs/apache2:/var/log/apache2
- ./alecsia/conf:/etc/alecsia
- ./config:/etc/teacherbook
ports:
- '8000:8000'
- '8080:80'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment