Commit b83704c1 authored by David Ivain's avatar David Ivain
Browse files

fichiers config

parent c9cd3734
...@@ -14,6 +14,7 @@ RUN curl -sS https://get.symfony.com/cli/installer | bash ...@@ -14,6 +14,7 @@ RUN curl -sS https://get.symfony.com/cli/installer | bash
RUN export PATH="$HOME/.symfony/bin:$PATH" RUN export PATH="$HOME/.symfony/bin:$PATH"
RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
# alecsia
WORKDIR /var/www/html WORKDIR /var/www/html
RUN wget https://gitlab-fil.univ-lille.fr/mikael.salson/alecsia/-/archive/david/alecsia-david.zip RUN wget https://gitlab-fil.univ-lille.fr/mikael.salson/alecsia/-/archive/david/alecsia-david.zip
RUN unzip alecsia-david.zip RUN unzip alecsia-david.zip
...@@ -24,3 +25,12 @@ RUN mkdir upload ...@@ -24,3 +25,12 @@ RUN mkdir upload
RUN composer install RUN composer install
RUN php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php RUN php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
RUN export LANG=en_US.UTF-8 RUN export LANG=en_US.UTF-8
# teacherbook
WORKDIR /var/www/html
RUN wget https://framagit.org/mikaels/teacherbook/-/archive/master/teacherbook-master.zip
RUN unzip teacherbook-master.zip
RUN mv teacherbook-master teacherbook
WORKDIR /var/www/html/teacherbook
RUN cp ../alecsia/docker/config/config.php config.php
RUN composer install
\ No newline at end of file
<?php
define('DB_HOST', 'database');
define('DB_PORT', '3306');
define('DB_NAME', 'lille1teacherbook');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
parameters: parameters:
database_driver : pdo_mysql database_driver : pdo_mysql
database_host : 172.19.0.3 database_host : database
database_port : ~ database_port : ~
database_name : alecsia_legacy database_name : alecsia_legacy
database_user : root database_user : root
...@@ -18,7 +18,7 @@ parameters: ...@@ -18,7 +18,7 @@ parameters:
secret : ThisTokenIsNotSoSecretChangeIt secret : ThisTokenIsNotSoSecretChangeIt
teacher_mail : Mikael.Salson@univ-lille1.fr teacher_mail : Mikael.Salson@univ-lille1.fr
alecsia.lille1.teacherbook: http://172.19.0.3/teacherbook/index.php alecsia.lille1.teacherbook: http://alecsia/teacherbook/index.php
alecsia.lille1.user.yaml: alecsia.lille1.user.yaml:
alecsia.upload_dir: %kernel.root_dir%/../upload alecsia.upload_dir: %kernel.root_dir%/../upload
......
...@@ -7,25 +7,27 @@ services: ...@@ -7,25 +7,27 @@ services:
build: './alecsia' build: './alecsia'
ports: ports:
- '8000:8000' - '8000:8000'
networks: # networks:
alecsia_net: # alecsia_net:
ipv4_address: 172.19.0.2 # ipv4_address: 172.19.0.2
links:
- "mysql-db:database"
depends_on: depends_on:
- mysql-db - mysql-db
mysql-db: mysql-db:
build: './mysql-db' build: './mysql-db'
ports: ports:
- '80:80' - '80:80'
networks: # networks:
alecsia_net: # alecsia_net:
ipv4_address: 172.19.0.3 # ipv4_address: 172.19.0.3
command: --default-authentication-plugin=mysql_native_password # command: --default-authentication-plugin=mysql_native_password
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
networks: # networks:
alecsia_net: # alecsia_net:
ipam: # ipam:
driver: default # driver: default
config: # config:
- subnet: 172.19.0.0/29 # - subnet: 172.19.0.0/29
\ No newline at end of file \ No newline at end of file
FROM mysql FROM mysql:5.7.29
ARG MYSQL_ROOT_PASSWORD=root ARG MYSQL_ROOT_PASSWORD=root
RUN apt-get update && apt-get install -y wget unzip php curl RUN apt-get update && apt-get install -y wget unzip curl
RUN curl -sS https://getcomposer.org/installer | php RUN curl -sS https://getcomposer.org/installer
RUN mv composer.phar /usr/local/bin/composer RUN mv composer.phar /usr/local/bin/composer
# RUN mkdir /app RUN mkdir /app
WORKDIR /var/www/html WORKDIR /app
RUN wget https://framagit.org/mikaels/teacherbook/-/archive/master/teacherbook-master.zip RUN wget https://framagit.org/mikaels/teacherbook/-/archive/master/teacherbook-master.zip
RUN unzip teacherbook-master.zip RUN unzip teacherbook-master.zip
RUN mv teacherbook-master teacherbook WORKDIR /app/teacherbook-master
WORKDIR /var/www/html/teacherbook # RUN composer install
RUN composer install RUN mysql -u root -p root alecsia_legacy < dump.sql
# RUN mysql -u root -e "CREATE DATABASE alecsia_legacy" && mysql -u root alecsia_legacy < dump.sql RUN cp ../alecsia/docker/config/config.php config.php
RUN cp config.php.example config.php \ No newline at end of file
\ No newline at end of file
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